View Single Post

  #2 (permalink)  
Old 03-23-2004
Anonymous Anonymous is offline
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
Getting clickable maps isn't a function of what you're getting back from
the web service but what type of object you're putting the returned image
into. For a clickable map use a 'ImageButton' and for non-clickable use
the 'Image' (for web apps). With the ImageButton object you can determine
click coordinates which you can then convert to a lat/long (using the
ConvertToLatLong method of the web service or doing it on the client side
using the methods demonstrated in the 'PointConversion' demo app included
in the SDK). Once in a lat/long form you can then recenter the map and
zoom on that point similar to what you see on the MSN Maps & Directions
site.

The only thing that the web service can do is return the 'hot area'
coordinates of icons if you specify that in the pushpins array that you
pass as part of the MapSpecification to the GETMAP method.

Steven Pushee

This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use. © 2003 Microsoft Corporation. All rights
reserved
Reply With Quote