Author: jennica | Posted on: 5/28/2010 7:24:17 AM | Views : 253


Google Maps API
<script type="text/javascript"> function initialize() { var strLat = 59.33; var strLng = 18.05; var map = new GMap2(document.getElementById("map_canvas")); map.setMapType(G_HYBRID_MAP); map.setCenter(new GLatLng(strLat, strLng), 7); var strHtml = PageMethods.GetImage(); var point = new GLatLng(strLat, strLng); map.openInfoWindowHtml(point, strHtml); } </script>
Above: My script inserted into the body of a contentpage of master (dont want it loading on EVERY page of the website when i only have a map on one of the sides). Some functions stoped working when changing it to a content page (I used litterals for the lat n lng but they stoped working) so I can imagine it has something to do with that but as i want to keep it ...

Go to the complete details ...