Top wrote: > I am a web developer in a small country. and i have an idea > to send my geographic information to show in google maps. > > The information is location of news in my country. It's will be look > like panoramio layer but users can read news when they click on > photos. This layer will display only on my websites and others > websites if they want. > > What i need is an Glayer id (like .com.wikipedia.en) for developing > and some documents that say how to make Glayer services.
GLayers cannot be made by yourself; there is a list of layers provided by Google. Here is the relevant quotation from the reference: | GLayer: Creates a layer using the given unique Layer ID. | http://spreadsheets.google.com/pub?key=p9pdwsai2hDN-cAocTLhnag | contains a list of the currently supported layers. But you can create your own customized map with photos and corresponding news subjects. Example for Thailand: -------------------------------------------------------------------- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <head> <title>News in Thailand</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <script type="text/javascript" src="http://maps.google.com/maps?file=api&v=2.x&key=XXXX"> </script> <script type="text/javascript" src="http://www.google.com/uds/api?file=uds.js&v=1.0"> </script> <script type="text/javascript" src="http://www.google.com/uds/solutions/localsearch/ gmlocalsearch.js"> </script> <script type="text/javascript"> function initialize() { if (GBrowserIsCompatible()) { function createMarker(photo, latlng, myhtml) { var marker = new GMarker(latlng, photo); GEvent.addListener(marker,"click", function() { marker.value = myhtml; map.openInfoWindowHtml(latlng, myhtml); }); return marker; } var map = new GMap2(document.getElementById("map_canvas")); map.setCenter(new GLatLng(15, 102), 5); map.addControl(new GLargeMapControl()); var photo1 = new GIcon(); photo1.image = 'http://216.92.6.95/app_pics/small/XcPnI5G2srnWhsj.jpg'; photo1.iconSize = new GSize(70,45); photo1.iconAnchor = new GPoint(0,0); map.addOverlay(createMarker(photo1, new GLatLng(16,102), 'News Item 1')); var photo2 = new GIcon(); photo2.image = 'http://216.92.6.95/app_pics/small/IlHRKXYQsxTQHfm.jpg'; photo2.iconSize = new GSize(70,45); photo2.iconAnchor = new GPoint(0,0); map.addOverlay(createMarker(photo2, new GLatLng(13,105), 'News Item 2')); var photo3 = new GIcon(); photo3.image = 'http://216.92.6.95/app_pics/small/LCHQY9pmbRq4fz6.jpg'; photo3.iconSize = new GSize(70,45); photo3.iconAnchor = new GPoint(0,0); map.addOverlay(createMarker(photo3, new GLatLng(10,104), 'News 3 <b><i>all HTML</i></b>')); } } GSearch.setOnLoadCallback(initialize); </script> </head> <body onload="initialize()" onunload="GUnload()"> <div id="map_canvas" style="width: 600px; height: 400px;"></div> </body> </html> -------------------------------------------------------------------- And then replace XXXXX with your actual key. You could also imitate the behaviour of a GLayer by setting an image in the right upper corner that shows/hides the pictures and their event listeners. Hope this helps, -- Bart --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
