> Hey, Im trying to pass my markers array from one map to another map on the > nextpage.
Without the context of your page, we'll have to make some guesses. This is why the posting guidelines ask for a link. > packed += escape(markersArray[i]); Let's guess that markersArray is an array of API marker objects. 'packed' will not represent them accurately as a bunch of strings (have you inspected 'packed? I can't because I can't access your page ...) I rather think it will just tell you that it is an object. > echo $markers[$i]; Okay, so you have php outputting some string values. You know they are strings because you can only get strings from the output of an echo. > markersArray[i].setMap(map); These are strings ; they don't have a setMap method. You can't pass javascript objects like this using GET/POST and php ; what you can do is pass a bunch of strings representing key values of your markers, and then have your second page examine these strings and use them to reconstruct new marker objects. -- 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.
