I generate a key for http://rainrays.com > > i implement this key with map. off line working fine but online i > receive a message by JavaScript alert , This site need a different > google map API KEY, generate another key for this site .
> using http://code.google.com/apis/maps/. I generate again a key forhttp:// > rainrays.com. He give me same key . and this key not > generating map. > file name map.php .this file will open on popup window file path http://rainrays.com/map?mem_id=11<http://rainrays.com/map?mem_id=117> 9 *Code of Page* <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"" http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>Map, the location of rainrays member</title> <meta http-equiv="Content-Type" content ="text/html; charset=utf-8"> <style type="text/css"> body{margin-left: 0px;margin-right: 0px;margin-top: 0px;margin-bottom: 0px;background-color: #6e6e6e;}.highlight{ background: #ffffff;} .highlight_important{background: #FFFF33;}</style> <script src=" http://maps.google.com/maps?file=api&v=2&key=ABQIAAAAbTvNBqA4b_QjqCW0NTbdQhSaAZBp4FW23eG-ENqP7ed2COkgWhRPqLBYn2hvhNwiCXAje3556LanoA" type="text/javascript"></script> <script type="text/javascript"> //<![CDATA[var iconBlue = new GIcon(); iconBlue.image = 'http://labs.google.com/ridefinder/images/mm_20_blue.png'; iconBlue.shadow = 'http://labs.google.com/ridefinder/images/mm_20_shadow.png';iconBlue.iconSize = new GSize(12, 20);iconBlue.shadowSize = new GSize(22, 20);iconBlue.iconAnchor = new GPoint(6, 20);iconBlue.infoWindowAnchor = new GPoint(5, 1); var iconRed = new GIcon(); iconRed.image = ' http://labs.google.com/ridefinder/images/mm_20_red.png'; iconRed.shadow = ' http://labs.google.com/ridefinder/images/mm_20_shadow.png'; iconRed.iconSize = new GSize(12, 20); iconRed.shadowSize = new GSize(22, 20);iconRed.iconAnchor = new GPoint(6, 20);iconRed.infoWindowAnchor = new GPoint(5, 1); var customIcons = []; customIcons["Male"] = iconBlue; customIcons["Female"] = iconRed; function load() { if (GBrowserIsCompatible()) { var map = new GMap2(document.getElementById("map")); map.addControl(new GSmallMapControl()); map.addControl(new GMapTypeControl());map.setCenter(new GLatLng(29.615290, 78.337173), 13); GDownloadUrl("phpsqlajax_genxml.php?id=119", function(data) { var xml = GXml.parse(data); var markers = xml.documentElement.getElementsByTagName("marker"); for (var i = 0; i < markers.length; i++) { var name = markers[i].getAttribute("name"); var address = markers[i].getAttribute("address"); var type = markers[i].getAttribute("type"); var point = new GLatLng(parseFloat(markers[i].getAttribute("lat")),parseFloat(markers[i].getAttribute("lng")));var marker = createMarker(point, name, address, type);map.addOverlay(marker);}});}} function createMarker(point, name, address, type) { var marker = new GMarker(point, customIcons[type]); var html = "<b>" + name + "</b> <br/>" + address;GEvent.addListener(marker, 'click', function() {marker.openInfoWindowHtml(html);});return marker;}//]]> </script></head> <body onload="load()" onunload="GUnload()"> <div id="map" style="width: 400px; height: 300px; color:#666666"></div> </body> </html> -- 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.
