On Jan 20, 5:42 pm, Andrew Leach <[email protected]>
wrote:

> It's the double-backslash. You don't need to escape the backslash in
> URLs. I corrected that and I get all four polygons and a marker.

Thanks for all your help, that's sorted it.

I've got some php and javascript code in a Joomla component to create
polygons by clicking on a map and then encode them using Mark
McClure's PolylineEncoder.js. I didn't realise that the encoded string
that's saved in the database has the backslash escaped (for javascript
strings?), this works fine when passed back to my google map
javascript code but causes a problem in the static maps url.

I'll have to unencode it before saving to the database and reencode it
when passing it back to the javascript.

Once again thanks,

Alan.
-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API" 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-api?hl=en.


Reply via email to