On Feb 21, 3:55 pm, MotoJohn <[email protected]> wrote: > > Anyone have any tool links out there for positioning and scaling? >
I don't have Photoshop, but the general principle is simple enough and it should be the same with any tile cutter script. The pixel coordinates grow from left to right and from top to bottom, so start from the NW corner of your image. You could use the code in this example: http://code.google.com/apis/maps/documentation/v3/examples/map-coordinates.html That gives you both the pixel and tile coordinates. Then, all you need to do is to find out where in the first tile, (top left tile), your image begins, and to do that you take the modulus of the pixel values, so firstTileX = pixelX % 256 firstTileY = pixelY % 256 Once you got to the end of the first tile, everything is +=256. So for example, if firstTileX = 75 then the first vertical cut on the image would be at 256 - 75 = 181 and every subsequent cut at 256 pixels more than the last one. The same would apply for Y coordinates and the horizontal cuts. -- Marcelo - http://maps.forum.nu -- > On Feb 21, 12:40 am, Chad Killingsworth > > > > <[email protected]> wrote: > > You are correct - the image is huge. What you want is an ImageMapType > > overlay. Here's the > > example:http://code.google.com/apis/maps/documentation/v3/overlays.html#Image... > > > You will need to cut your image into tiles to use this. There are > > several tile cutting scripts available depending on what programs you > > have to work with. I've personally used the ones available > > athttp://mapki.com/wiki/Automatic_Tile_Cutter > > > Chad Killingsworth > > > On Feb 20, 11:19 am, MotoJohn <[email protected]> wrote: > > > > I am trying to create a trail map with a large image overlay > > > (seehttp://www.mapsjkfl.co.cc/map_v3.html). It works perfect on a > > > computer, > > > but when viewing on an Android device, the overlay never appears. I > > > suspect that it's due to the size of the image I'm overlaying. I > > > believe the proper way to do this would be to cut the image into > > > smaller pieces and overlay each one individually, but I have no idea > > > how to properly size & align each one. (It took me way too long just > > > to get this one sized & aligned correctly!) > > > > Though it shouldn't matter, I originally programmed this with the V2 > > > API, but it was suggested that I convert it to v3 for a hand-held > > > device. Results were about the same though :( > > > > 1. Am I correct that this is why it won't show up properly on an > > > Android device (image too large)? > > > 2. Is there an easy way to figure out offsets and sizing if I divide > > > the image into smaller pieces? > > > 3. Is there an alternative/better way to do this in the first place? > > > > Ultimately my goal is to use this map in combination with the GPS > > > functions on the hand-held device to be able to track where I am... > > > Any assistance to get me moving in the right direction is greatly > > > appreciated! -- 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 [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-js-api-v3?hl=en.
