String,

Thanks again for the analysis.  I really appreciate the 2nd pair of
eyes.
I'll take a closer look at the script.  Just wasn't sure if it was the
tiles or not since it cut all the other levels correctly.

Adam

On Dec 19, 5:20 pm, String <[email protected]> wrote:
> Adam,
>
> You have fixed the projection, but you still have a problem with your
> tiles, I'm afraid. Look at the "halfway" tile, whose lower right (SE)
> corner is at the intersection of the equator and the prime meridian.
>
> For zoom 1, it's 1_0_0.png, which is correct.
> For zoom 2, it's 2_1_1.png, which is correct.
> For zoom 3, it's 3_3_3.png, which is correct.
> For zoom 4, it's 4_7_7.png, which is correct.
> For zoom 5, it's 5_15_15.png, which is correct.
> For zoom 6, it's 6_32_32.png, which is incorrect.
>
> Notice the pattern there? It's broken at zoom level 6. Something is
> wrong with your tile cutter code.
>
> If it were me, I'd dig into the tile cutter at this point and find the
> bug. If you're up for that, great! If not, you'll have to contact the
> author of the code and ask for help, or hope that someone else on this
> forum has experience with that code and can offer some advice. I've
> taken it as far as I can, I'm afraid.
>
> String
>
> On Dec 19, 11:04 pm, adameepoo <[email protected]> wrote:
>
> > Thanks for taking a look.  I tried generating new tiles with a
> > mercator projection and the map still does the same thing.  The last
> > zoom level (6) is offset about half a tile to the top left.
>
> > The source i used is 
> > here:http://upload.wikimedia.org/wikipedia/commons/f/f7/Normal_Mercator_ma...
> > The map is at the same place:http://dev.hwangonline.com/
>
> > Any ideas?
>
> > Thanks,
> > Adam
>
> > On Dec 19, 3:16 am, String <[email protected]> wrote:
>
> > > Hi,
>
> > > It's the tiles. An easy way to see this is with the Web Developer
> > > toolbar in FF; select Outline > Custom Elements and enter "img", which
> > > will draw lines around all images on the page - including GMaps tiles.
>
> > > I would think that the root of your problem is that your source map
> > > image is the wrong map projection - I can tell by looking at it that
> > > it's equirectangular, while GMaps uses Mercator. The easiest place to
> > > see this is in the shape of Greenland. In order to use this image with
> > > the GMaps API, you'll need to reproject it, and that will require some
> > > work. I do my reprojections manually in PHP; perhaps someone else on
> > > the group can chime in if they know an easier, non-programming-based
> > > approach.
>
> > > HTH,
>
> > > String
> > > --
> > > Sterling Udell
> > > Author, Beginning Google Maps 
> > > Mashupshttp://www.apress.com/book/view/9781430216209
>
> > > On Dec 19, 6:08 am, adameepoo <[email protected]> wrote:
>
> > > > i have a custom map that can zoom from 2 - 6.  the map works perfectly
> > > > until you zoom from level 5 to level 6, the map shifts up about half a
> > > > tile
>
> > > > im not sure if its the tiles, but they were cut with the mapki auto
> > > > tile cutter photoshop script, which i've tried a few times now and
> > > > always get the same results.
>
> > > > i've tried searching the web and this group, but honestly dont even
> > > > know what to call this problem or how to even describe it really.  if
> > > > anybody has any thoughts or insight, it'd be greatly appreciated.
>
> > > > the map is at:  http://dev.hwangonline.com/
>
> > > > thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to