[Google Maps API v3] Re: We need a Map.getScale() method

2016-09-19 Thread Andrew Leach
On Monday, 22 February 2016 22:41:53 UTC, Totardo Tobing wrote: > > Hi, anyone one how many Kilometer 1 px does? My calculation is 1Px = > 11.627 Km at maximum zoom. But this is not correct > > If you look at the Group posts in this topic at https://groups.google.com/forum/#!topic/google-maps-js-

[Google Maps API v3] Re: We need a Map.getScale() method

2016-09-18 Thread Homing Tam
hi, which scale are you referring to for "maximum zoom"? On Tuesday, February 23, 2016 at 6:41:53 AM UTC+8, Totardo Tobing wrote: > > Hi, anyone one how many Kilometer 1 px does? My calculation is 1Px = > 11.627 Km at maximum zoom. But this is not correct > > Pada Kamis, 25 Agustus 2011 17.55.55

[Google Maps API v3] Re: We need a Map.getScale() method

2016-02-22 Thread Totardo Tobing
Hi, anyone one how many Kilometer 1 px does? My calculation is 1Px = 11.627 Km at maximum zoom. But this is not correct Pada Kamis, 25 Agustus 2011 17.55.55 UTC+7, louis-rémi Babé menulis: > > Hi, > > It is currently possible to display a scale control, but there is no way > to access the scale

[Google Maps API v3] Re: We need a Map.getScale() method

2011-08-25 Thread Joseph Elfelt
Chris, Thanks for the correction and info. -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group. To post to this group, send email to google-maps-js-api-v3@googlegroups.com. To unsubscribe from this group, send email to google-maps-

Re: [Google Maps API v3] Re: We need a Map.getScale() method

2011-08-25 Thread Chris Broadfoot
This won't be accurate, because the resolution of a map with the mercator projection (like Google maps) is dependent on the latitude. It's possible to calculate using this formula: 156543.03392 * Math.cos(latLng.lat() * Math.PI / 180) / Math.pow(2, zoom) This is based on the assumption that the

[Google Maps API v3] Re: We need a Map.getScale() method

2011-08-25 Thread Joseph Elfelt
Someone worked out the following values. // An array holds values for meters_per_pixel based on the zoom level masu.meters_per_pixel_ary = []; masu.meters_per_pixel_ary[0] = 156543.03392; masu.meters_per_pixel_ary[1] = 78271.51696; masu.meters_per_pixel_ary[2] = 39135