I suggest you go through Mike Williams original custom map code again.
view source:
http://econym.org.uk/gmap/example_custommap1.htm
(credit to Mike Williams)
var copyright = new GCopyright(1,
new GLatLngBounds(new GLatLng(31551,50899),new GLatLng
(31554,50903) ),
3, "BICA floor plan");
what are these figures? 31551,50899??
GLatLng is expecting to be in Latitude and Longitude (Decimal Degrees)
Like Mike Williams Code is
// ====== Create a copyright entry =====
var copyright = new GCopyright(1,
new GLatLngBounds(new GLatLng(53.8136257,-3.0981445),new
GLatLng(53.8654855,-2.9663944) ),
14, "Ordnance Survey");
The other issue is
CustomGetTileUrl=function(a,b){
return "tiles/"+a.x+"_"+a.y+"_"+(17-b)+".jpg"
}
gets adjacent tiles (jpg)
your code blocks the function with //
// == Write our own getTileUrl function ========
// In this case the tiles are names like 8053_5274_3.jpg
CustomGetTileUrl=function(a,b){
//return "aaa/"+(17-b) +"_" + a.x+"_"+a.y+".jpg" <<// out
//return "aaa/"+ b +"_" + a.x+"_"+a.y+".jpg";
return "aaa/6_31551_50901.jpg";
Mapperz
http://mapperz.blogspot.com/
On Aug 13, 9:45 pm, hassy33 <[email protected]> wrote:
> Hi everyone,
>
> I am hoping that someone could help with this as I have been searching
> forever for a solution without really finding it.
>
> I am trying to make a custom map for a floor plan. After reading
> several posts, tutorials and even a book about Google Maps, I figured
> out how to do some part of it.
>
> First, my floorplan image was designed and I create the tiles using
> the script available on the Mapki help page. (http://mapki.com/wiki/
> Automatic_Tile_Cutter)
>
> I generated my tiles based on the zoom levels and latitudes and
> longitudes given to the script.
>
> I also got an API key for my server and it seems to work, since I am
> not getting any js alert message from Google saying that it is not
> working with the right host.
>
> The only thing is I do not get anything on my custom map. I am
> strongly suscipous that my getTileUrl function is not working
> properly... but I have no idea what to do or how to tweak it.
>
> Can anyone help me out with this???
>
> My custom map can be found in the following
> location:http://www.linkkings.com/hkbica/custommap.htm
>
> You can view the source of that html page to see my function code.
>
> My tile images can be found athttp://www.linkkings.com/hkbica/aaa/
>
> I hope this helps.
> Let me know if tehre is anything else you need to help me.
>
> Thanks.
> hk
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---