Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

multiple paths don't work for me #151

Closed
markshapiro opened this issue Jan 22, 2018 · 1 comment
Closed

multiple paths don't work for me #151

markshapiro opened this issue Jan 22, 2018 · 1 comment

Comments

@markshapiro
Copy link

markshapiro commented Jan 22, 2018

currently if I specify 2 paths:

 path: [
    {   points: ['52.52,13.4050', '52.53,13.4050', '52.53,13.4150', '52.52,13.4050'],  },
    {  points: ['52.52,13.4250', '52.53,13.4250', '52.53,13.4350', '52.52,13.4250'],  },
  ],

it joins the the encoded paths with | and passes in single "path" parameter (&path=<encoded_path_1>|<encoded_path_2>)
this shows the whole world map instead of polygons, but passing both encodings in separate path parameters shows them both polygons correctly.
for example try the current library result url:
https://maps.googleapis.com/maps/api/staticmap?size=500x500&path=enc%3A_yp_IgdypAo%7D%40%3F%3Fo%7D%40n%7D%40%3F%3Fn%7D%40%7Cenc%3A_yp_Iga%7DpAo%7D%40%3F%3Fo%7D%40n%7D%40%3F%3Fn%7D%40&key=
VS separated in 2 path parameters:
https://maps.googleapis.com/maps/api/staticmap?size=500x500&path=enc%3A_yp_IgdypAo%7D%40%3F%3Fo%7D%40n%7D%40%3F%3Fn%7D%40&path=enc%3A_yp_Iga%7DpAo%7D%40%3F%3Fo%7D%40n%7D%40%3F%3Fn%7D%40&key=

it starts working when change code by removing the 2nd join:

@markshapiro
Copy link
Author

already is here #149

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant