hpneo / gmaps

the easiest way to use Google Maps
https://hpneo.dev/gmaps/
7.04k stars 1.29k forks source link

array_flat #560

Open AntonDevil opened 6 years ago

AntonDevil commented 6 years ago

Why do you use array_flat for drawPolygon (gmaps.js:1265)?

Google maps correctly accepts multidimensional array of polygons to draw on map. https://developers.google.com/maps/documentation/javascript/reference#PolygonOptions See paths parameter doc

Also, you can check my example https://pastebin.com/SkxKyqjE it will require gmaps.js and wicket.js

Try to load this page with and without array_flat call in drawPolygon and you'll notice the difference