Hi,

I've created some encoded polygons using Mark McClure's
PolylineEncoder.js. I've just tried to create a static map api image
with the polygons on and one of the polygons isn't showing.

Looking at the url my code generated I noticed that the missing
polygon includes two | (pipe) characters within the encode string
which are used as seperators by the api. I'm wondering if it's the
pipe symbol causing the polygon to not appear? The encoded string
works fine when creating using GPolygon.fromEncoded()

here's the url (without api key), it's the second polygon that's
missing:

http://maps.google.com/maps/api/staticmap?maptype=hybrid&size=500x450&sensor=false&key=MAPAPIKEYHERE&markers=color:red|51.0152,-3.096&path=weight:4|color:0xffeb7dff|fillcolor:0xBDC3B84c|enc:gxkvhl{{q...@cdxm@e...@co?igi@ee}a}cqdpeyc...@dmxfo?vfmdicabc@ncyhha...@obpgbjca@d...@baqcpb}hl@ucl...@ylo?&path=weight:4|color:0xCE9FFFe5|fillcolor:0xBDC3B84c|enc:cxkvHli|q...@nhldhin@h...@d@n...@x@`...@v@v...@p^hdp@tBSfAUhB~@|a...@yd@q...@rbnblf@?fatb\\jaga`bayam...@qs@san...@mkbgbleaqiobd@e...@kb]ucrmcg@h...@maieu@`...@q@e...@kdmbvbxdao@d...@yb&path=weight:4|color:0xff7fbeff|fillcolor:0xBDC3B84c|enc:ivjvhju...@rvzte@z...@bhadn@i...@fztb{auqbs@c...@uwa_@tka...@aci@w_f...@uamtojb]tbi@p...@pj@b...@r@e...@`c|AfM&path=weight:4|color:0x00F0FFe5|fillcolor:0xBDC3B84c|enc:q_kvhpw}q_ajfg...@hawavag~ajbbj@x...@j@lmbaydnasfhc`ifa...@scisb@ccbb...@}@}...@[e}cuecwadaub_@

Cheers,

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