Welcome Guest, Not a member yet? Register   Sign In
Google Maps - Passing Data via jQuery
#1

[eluser]Otaku Coder[/eluser]
Hi,

I'm developing a googlemaps mashup but I'm trying to figure out how to pass marker data to the map. So far I have a model which returns the required marker data and uses the JSON helper library to encode the output in JSON format. However, I don't know how to get that data into my map. I am familiar with the maps API so I know I just need to call 'gmap.addOverlay(marker)' once I've run eval on the data.

My guess is that I need a jQuery function to read my PHP variable passed to the view, and then call my 'createMarker' javascript function, but as I'm still learning the intricacies of AJAX and jQuery I'm unsure how I'm meant to do this.

Apologies if my post is a bit confusing, I haven't had my morning coffee yet!!! Any help or advice would be appreciated.


Messages In This Thread
Google Maps - Passing Data via jQuery - by El Forum - 03-17-2009, 03:34 AM
Google Maps - Passing Data via jQuery - by El Forum - 03-17-2009, 10:27 AM
Google Maps - Passing Data via jQuery - by El Forum - 03-17-2009, 01:29 PM
Google Maps - Passing Data via jQuery - by El Forum - 03-17-2009, 03:45 PM
Google Maps - Passing Data via jQuery - by El Forum - 03-17-2009, 03:52 PM
Google Maps - Passing Data via jQuery - by El Forum - 03-17-2009, 04:25 PM
Google Maps - Passing Data via jQuery - by El Forum - 03-17-2009, 04:54 PM
Google Maps - Passing Data via jQuery - by El Forum - 03-17-2009, 04:57 PM
Google Maps - Passing Data via jQuery - by El Forum - 03-17-2009, 05:52 PM



Theme © iAndrew 2016 - Forum software by © MyBB