Posts

Showing posts with the label longitude

GMap Location Pointer based on Longitude and Latitude

Image
In this post, i am going to share how to display gmap pointer based on longitude and latitude. Here is the code, <!DOCTYPE html> <html> <head>   <meta http-equiv="content-type" content="text/html; charset=UTF-8">   <title> GMap location </title>   <script type='text/javascript' src="http://maps.google.com/maps/api/js?sensor=false&.js"></script>   <style type='text/css'>     #map_canvas{         width: 600px;         height: 500px;     }   </style>   </head> <body> <div id="map_canvas"></div> <script type='text/javascript'>//<![CDATA[ var map; var global_markers = [];    var markers = [[37.09024, -95.712891, 'trialhead0'], [-14.235004, -51.92528, 'trialhead1'], [-38.416097, -63.616672, 'trialhead2']]; var infowindow = new google.map...