Hello All

I am using following code to display map. I am facing 2 issues

1. My control (zoom control, and 3 button i.e. Map, Satelite and
HYbrid buttons are not displaying
2. I generrated key, and added, but I am getting error "The google
Maps API ket used on this web site was registered for a different web
site...."

I generated key using  domain name syntax l

https://subdomain.domain.com/folder1/myfolder

I also try to generate with https also i.e.
http://subdomain.domain.com/folder1/myfolder

Can any one tell me whats wrong I am missing here?


*--------------------------------------------------
var longitude =0;longitude=getQueryVariable("long");
var latitude =0;latitude =getQueryVariable("lat");

var map = new GMap2(document.getElementById("map"), {size:new
GSize(600,440)});
var map = new GMap2(document.getElementById("map"));
    map.setCenter(new GLatLng(latitude, longitude), 13);
        var topRight = new GControlPosition(G_ANCHOR_TOP_RIGHT, new
GSize(10,10));
        var bottomRight = new GControlPosition(G_ANCHOR_BOTTOM_RIGHT,
new GSize(10,10));
        var mapTypeControl = new GMapTypeControl();
        map.addControl(mapTypeControl, topRight);
        map.addControl(new GLargeMapControl());

var marker = new GMarker(new GLatLng(latitude, longitude));
map.addOverlay(marker);
*--------------------------------------------------
--~--~---------~--~----~------------~-------~--~----~
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