4

I'm not sure if this is best way of approaching this, so I will explain where I'm coming from first.

I want to load data onto my webpage containing a map based off a lat/long point. The only way I know how to do this is to constantly be getting the a lat/lng point in the displayed map. Obviously this isn't very efficient since I either need to keep track of this point, or constantly be polling it. Each time I had the updated this point, I'd have to do some sort of processing to determine it's map location, which would add even more inefficiency. When I had that, I could then proceed to load my data.

My idea was that if I could pull down an id of map tiles of a particular region at a set zoom level, then I wouldn't need to do the crazy/complicated lat/lng processing. But, my stumbling block is that I don't know of any way this is possible.

3
  • So are you trying to find a map tile or a particular latitude/longitude point? Either way, you should not have to poll continuously unless you are looking at a moving target.
    – jvangeld
    May 18, 2011 at 19:57
  • I might understand better now. Are you trying to load a map for an area that the user chooses?
    – jvangeld
    May 18, 2011 at 20:00
  • Looking for some identifier for a map tile. If there are two tiles with some street intersection in each for example, I want to be able to do action X for the first tile, or action Y for the second.
    – Steven
    May 18, 2011 at 20:02

2 Answers 2

4

So you want the Quadtile?

Google Map APi (v3) Quadtree visualized

enter image description here

http://koti.mbnet.fi/ojalesa/quadtree/quadtree_intro.htm

Credit to Esa

2
  • 1
    Wow, that is awesome. Would vote you up but I got no rep!
    – Steven
    May 25, 2011 at 21:18
  • 1
    There you go...
    – Steven
    May 26, 2011 at 3:13
0

It sounds like you're trying to pull tiles outside of the legitimate API methods. You will likely get your access cut off if you do this. Anyway...

http://khm1.google.com/kh/v=85&x=19063&s=&y=24812&z=16&s=G

That's the URL from one Google map tile. You can find these by examining the browser activity in Safari or with the Firefox Firebug add-on.

1
  • 1
    Well the tiles are already going to be displayed on the page in whichever container I'm using so I won't have to do any extra work (pull tiles). I'm looking for a way to get an identifier of the centermost tile (if possible) displayed in the container.
    – Steven
    May 18, 2011 at 21:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.