On Aug 23, 11:14 am, Mark <[email protected]> wrote:
> Hi All
> I'm stuck; I'd like my app to
>
> 1.  Read in an xml file from my db containing the co-ordinates and
> other information for several routes (I've got this working)
> 2.  Render these routes on the map as polylines (I've also got this
> working).
> 3.  Add an event such that when the user clicks on a polyline, an info
> window pops up about that route (with basically some text information
> from the db)
>
> Part 3 I can't figure out how to do.

You want something like this?
http://www.geocodezip.com/v3_GenericMapBrowser.asp?filename=I5Polyline.xml
(under development)

  -- Larry



>
> One problem is that the MouseEvent fired from a mouseover or click
> event just contains the LatLng of the mouse.  Do I have to search
> through all my routes to find the matching one?  That sounds like too
> much work.  Also, there's no certainty that the co-ords fired will
> actually be one of the polyline's points (it might be on a straight
> line between two points).
>
> Even if I can find a reference to the polyline object, I need at least
> to be able to associate an ID with the route.  Ideally, I'd prefer to
> be able to stuff all the text information into the polyline (maybe
> subclassing polyline somehow?)
>
> Any suggestions welcome
> Thanks
> Mark

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Reply via email to