[Google Maps API v3] Re: convert from tile coordinates to lat/lng

2018-10-17 Thread Aaron Edwards
Man, it would be great if people would post their code solution, and not just say thanks: _getWmsTileBoundingBox(tileCoordinates, gmap) { let tileSize = 256; // first convert tile coordinates to pixel coordinates for NW and SE corners of tile let nwPixelX = tileCoordin

Re: [Google Maps API v3] Re: convert from tile coordinates to lat/lng

2011-11-10 Thread Jeremy Geerdes
Here are the formulae you'll need. https://groups.google.com/group/Google-Maps-API/browse_thread/thread/348098f70725fc96/7a0aba451045ed94?lnk=gst&q=author%3Ajgeerdes#7a0aba451045ed94 Jeremy R. Geerdes Generally Cool Guy Des Moines, IA For more information or a project quote: jrgeer...@gmail.com

[Google Maps API v3] Re: convert from tile coordinates to lat/lng

2011-11-10 Thread BigLittleFlan
Hi, I've got the exact same problem you were having, would you be able to post the code you used to solve this? Thanks -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group. To view this discussion on the web visit https://groups.

[Google Maps API v3] Re: convert from tile coordinates to lat/lng

2010-12-06 Thread spiderplant0
Thanks Martin, thats just what I was looking for. -- 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...@googlegroups.com. To unsubscribe from this group, send email to google

[Google Maps API v3] Re: convert from tile coordinates to lat/lng

2010-12-06 Thread Martin
http://code.google.com/apis/maps/documentation/javascript/maptypes.html#WorldCoordinates Check out the World Coordinates and Pixel Coordinates sections. pixelCoordinate = worldCoordinate * (2 to the power of zoomLevel) So you want to convert your tile coordinates into two pixel coordinates, pixe

[Google Maps API v3] Re: convert from tile coordinates to lat/lng

2010-12-06 Thread spiderplant0
I'll clarify the question. I need to convert tile coords plus zoom into lat/lng. I can easily convert tile coords plus zoom into and world coordinates as the maths is simple. However what is not trivial is the conversion between world coordinates and lat/lng. Does google maps include a function to

[Google Maps API v3] Re: convert from tile coordinates to lat/lng

2010-12-06 Thread spiderplant0
er, not sure how this helps. Are you saying it cant be done? Or is my question not clear? -- 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...@googlegroups.com. To unsubscrib

[Google Maps API v3] Re: convert from tile coordinates to lat/lng

2010-12-05 Thread Esa
The projection conversion methods of API are based on World Coordinates. Those are pixel coordinates in 256 x 256 space (Zoom level 0). Coordinates are floating point numbers. -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group. To p