Hello,
I'm new to the custom map types and I'm trying to display a custom map
image.
I have an image of a map (rectangular image 600x460), which doesn't really
fit the real world proportions (hand made).
I have a few issues I'd really appreciate your help with:
1. On zoom level 0, I thought that there was supposed to be only 1 map
tile, but I get 4 calls to getTileUrl (with -1,-1; -1,1;1,-1;0,0). Why?
2. If I only have 1 tile for zoom level 0, how can I make it appear in
the center of the map canvas? (When I use 256x256 the image appears
centered, does it only work when the image is square?).
3. I saw that when I use images larger than 256x256 the lat-lng values
are repeating themselves inside the map image. Is this correct? How can I
modify it to fit larger images? (assuming my image would be 600x600, would I
still get repetitive lat-lng on it?)
4. Where can I find code samples of adding boundaries to the image map?
My basic code:
*var centerPosition = new google.maps.LatLng(32.4, 34.7);*
*var myOptions = {*
* center : centerPosition,*
* zoom : 0,*
* mapTypeControlOptions : {*
* mapTypeIds : ["customMapType"]*
* }*
*};*
*
*
*map = new google.maps.Map(document.getElementById("map_canvas"),
myOptions);*
*map.mapTypes.set('customMapType', customMapType);*
*map.setMapTypeId('customMapType');*
*
*
*...*
<div id="map_canvas" style="width: 600px; height: 470px;"></div>
Thanks for the help,
Lieden
--
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.