[Google Maps API v3] Re: How to convert coordinates

2018-01-02 Thread 'Rob' via Google Maps JavaScript API v3
Hi Artur, Your d="M462..." string is basically a set of instructions to move a virtual "pen" to draw a series of straight-line sections to make up a polygon. The "M" and "L" parts of the string are commands which tell the "pen" where to go and what to do; so M462 399 instructs the "pen" to Mo

[Google Maps API v3] Re: Draw Polygons on Google Maps

2018-01-02 Thread 'Rob' via Google Maps JavaScript API v3
This is certainly possible, but I would not recommend it, for the simple reason that many thousands of points could be generated in this way in just a couple of seconds. You could use something like this (not tested) : var aPolyPts = [];// Global var userDrawnPoly = new google.maps.Polylin

[Google Maps API v3] Re: Zoom in when radius is changed in editable circle

2018-01-02 Thread 'Rob' via Google Maps JavaScript API v3
Hi Chandan, You mention that the fitbounds(...) worked for " particular radius change", and I presume you mean that it worked only sometimes, and not always. My guess is that it only worked when that radius was INCREASED, thus necessitating a zoom out. If I'm right, then the trick is to always