Search the Community
Showing results for tags 'google maps api'.
-
Hi all, Hope you are well. Thank you for having a look at my post. I searched google and cannot find much help on what Im looking for. I would like to draw a textarea on google maps which can be edited, just like you can add/edit polygon, polyline , circle, rectangle using the google maps drawing tools. Is this possible? Please point me in the right direction. This is the closest thing I can find but I need to be able to draw and edit them like with google maps drawing tools, http://www.geocodezip.com/ParkerPalmSprings.html Thank you. Kind regards, Imran
- 1 reply
-
- google maps api
- google maps overlay
-
(and 1 more)
Tagged with:
-
Hi all, Thank you for viewing my post. In my application I allow users to draw shapes on google maps using google maps api v3. I dont know how to store the polygons in MySQL? Im new to google maps api and dont have a clue. Please help. I was thinking should I store each point seperately in a database field or store the whole polygon as json? This is what I have so far. I have created a json object that stores all the verticles in a list. I was thinking of saving this whole json in one database field? This is the code used to contruct the array: var vertices = selectedShape.getPath(); // MVCArray var pointsArray = []; //list of polyline points for (var i =0; i < vertices.getLength(); i++) { var xy = vertices.getAt(i); //LatLang for a polyline var item = { "lat" : xy.lat(), "lng":xy.lng()}; pointsArray.push(item); } var polygon = {"points" : pointsArray}; This is the constructed json result: {"points": [ {"lat": 51.51814351604911, "lng": -0.14479637145996094 }, { "lat": 51.51830374452608, "lng": -0.13861656188964844}, { "lat": 51.516194024429446, "lng": -0.13968944549560547} ]} Should I have the whole thing in one field? Is it better to save each vertices (lat and lng) in a seperate row, so for the above polygon there will be 3 rows? Kind regards, Imran
- 7 replies
-
- google maps api
- polygon
-
(and 2 more)
Tagged with: