Are you having problems with the conversion from lat/lng to Pixel X,Y and
Tile X,Y?  If so let me know and I can offer some help.

On Wed, Oct 13, 2010 at 4:20 PM, spyro.boy <[email protected]> wrote:

> alright so, since posting I've tried my hand at this and the code
> seems different. I'll just re-establish things in a clearer way.
>
> I've generated a set of 256x256 tiles from a very large image (approx.
> 7000x3000) . the file naming convention is tile-ZOOM-X-Y.png. getting
> the google maps api to display these tiles as a base map wasn't
> difficult.
>
> the things I'm trying to accomplish now is figuring out how to center
> the map based on a pixel coordinate of the original image (i.e. the
> 7000x3000 unsplit image) mapped to the tiled google map.
>
> a second thing I'd like to figure out is how to stop the map from
> going into areas that tiles don't exist. if this has to be controlled
> by a constant, that's fine. i.e. if I have 50 tiles width-wise, I
> don't want it to move past the 50th tile, or past the 0th tile. same
> with the vertical.
>
> I've put a conditional in the getTileUrl that just checks if coord.x
> (or y) is less than 0, but internally the google map still thinks it's
> in the negative range. I can't imagine moving back into the the
> positives will do any good with that conditional in place.
>
> I've read the API reference and the tutorials and none of it seems
> very clear to me.
>
> --
> 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]<google-maps-js-api-v3%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-maps-js-api-v3?hl=en.
>
>

-- 
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.

Reply via email to