Hello,
I just create a custom map, but won't work.
Can somebody tell me what is wrong?

This is the link to my map: http://www.vatradornei.net/gmap/map.html
And here are my tiled images: http://www.vatradornei.net/gmap/images

I realy dont know where im wrong.. Any help will be apreciated.
Sorry for my english.

=== HTML Source ===

<head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8"/
>
    <title>Google Maps</title>
    <script src="http://maps.google.com/maps?
file=api&amp;v=2&amp;key=ABQIAAAAwb5SLYqEGhpljb6rPfYcNhQgB8a9vuXSSrhph0CPrqVil1V4rxQl_u3er-3D6QSGWK05rokc2d1vSw"
type="text/javascript"></script>

</head>

<body onunload="GUnload();">
    <div id="map" style="width: 800px; height: 600px"></div>

    <script type="text/javascript">
    //<![CDATA[

        map = new GMap(document.getElementById("map"));
        var copyright = new GCopyright(1, new GLatLngBounds(new GLatLng(-90,
-180),new GLatLng(90, 180) ), 0, "VatraDornei.net");
        var copyrightCollection = new GCopyrightCollection('Map Data:');

        CustomGetTileUrl=function(a,b){
                return "http://www.vatradornei.net/gmap/images/"+a.x+"_"+a.y
+"_"+(17-15)+".jpg";
        }
        var tilelayers = [new GTileLayer(copyrightCollection,1,3)];
        tilelayers[0].getTileUrl = CustomGetTileUrl;
        var custommap = new GMapType(tilelayers, new GMercatorProjection(15),
"VD");
        map.addMapType(custommap);

        map.setCenter(new GLatLng(79.1, -135),2,custommap);
        map.addControl(new GLargeMapControl());

        var omap=new GOverviewMapControl(new GSize(200,200));
        map.addControl(omap);
        omap.hide(true);

    //]]>
    </script>

</body>

=========

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