Note that there are some explanatory texts on larger screens.

plurals
  1. POStatic map with encoded polygon not displaying
    primarykey
    data
    text
    <p>I'm having a difficult time figuring out why this static map isn't displaying.. I'm using encoded lines and polygons. The lines display ok but not the polygon. I put the encoded polygon string into google's <a href="https://developers.google.com/maps/documentation/utilities/polylineutility" rel="nofollow">Interactive decoder</a> and it works fine.</p> <p>Encoded Polygon</p> <pre><code>wl}vFlm{zN?gNfKIM}L|h@OSlB`Bj@l@h@nEGD{D|CNXrO`CHDdFaCHMxCkKNGgNyX{@?zOk^ </code></pre> <p>This url is:</p> <pre><code>http://maps.googleapis.com/maps/api/staticmap?size=400x400&amp;path=weight:3|color:0x000000|enc:a||vFze|zN|E}cA&amp;path=weight:3|color:0x000000|enc:qj{vFny{zNyTaO}QtWoE|W&amp;path=weight:3|fillcolor:0x0000FF|color:0x0000FF|enc:wl}vFlm{zN?gNfKIM}L|h@OSlB`Bj@l@h@nEGD{D|CNXrO`CHDdFaCHMxCkKNGgNyX{@?zOk^&amp;maptype=hybrid&amp;sensor=false </code></pre> <p>I also tried url encoding the polygon string with no luck.</p> <pre><code>http://maps.googleapis.com/maps/api/staticmap?size=400x400&amp;path=weight:3|color:0x000000|enc:a%7C%7CvFze%7CzN%7CE%7DcA&amp;path=weight:3|color:0x000000|enc:qj%7BvFny%7BzNyTaO%7DQtWoE%7CW&amp;path=weight:3|fillcolor:0x0000FF|color:0x0000FF|enc:wl%7DvFlm%7BzN%3FgNfKIM%7DL%7Ch%40OSlB%60Bj%40l%40h%40nEGD%7BD%7CCNXrO%60CHDdFaCHMxCkKNGgNyX%7B%40%3FzOk%5E&amp;maptype=hybrid&amp;sensor=false </code></pre> <p>They were encoded using:</p> <pre><code>points_array = mapOverlays[i].getPath(); enc = google.maps.geometry.encoding.encodePath(points_array); </code></pre> <p>Was hoping someone more knowledgeable than I could spot why this isn't displaying for me.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload