Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

google maps API v3 - how to draw dynamic polygons/polylines?

Tags:

I have 4 days of experience with Google Maps Javascript API and i find their documentation and information sharing confusing at best.

Does anyone have experience or knowledge on how to draw polygons/polylines on a google map (using Javascript API V3) similar to this example? (which i found on this blogPost from 2008)

So far as my research can tell me the example uses the Javascript API V2 directly or uses the GeometryControl utility library from V2 (which can be found here for reference). I cannot seem to find if the Javascript API V3 has any way of allowing such interface.

I will be continuing my research but would appreciate any helpful comment or link or suggestion. Even if you point me in the correct direction for further research. :)

like image 841
David 'the bald ginger' Avatar asked Aug 03 '10 08:08

David 'the bald ginger'


1 Answers

After much research i came across this example. Which, after discovering it and googling it, seems the general answer to questions like mine. This is very basic but correct according to the V3 API.

Using the code in this example i am successfully building a prototype that i need. The code is basic but i have found that it can be extended to better fit my specifications, which is good.

The link provided in my comment to plexer's answer would be the best solution but the person developing it states that it is still under development and thus not stable enough for use in release applications.

like image 74
David 'the bald ginger' Avatar answered Oct 19 '22 01:10

David 'the bald ginger'