You are on page 1of 2

Google Maps API

Some keywords: Data Visualization(http://www.morethanamap.com/demos/visualization/flights), Location-specific Information(http://www.w3schools.com/html/html5_geolocation.asp)

1. var india=new google.maps.LatLng(21.7679,78.8718) ; 2. map_type:google.maps.MapTypeId.ROADMAP


3. var map=new google.maps.Map(document.getElementById("map_container"), myOptions);

4. var mark_agartala=new google.maps.Marker({ position:agartala, map:map, icon:'images/red_ball.png', title:"NIT Agartala" }); 5. var info_agartala = new google.maps.InfoWindow({ content: '<h1>Ghanshyam</h1>' }); 6. google.maps.event.addListener(mark_agartala, 'click', function (){ info_agartala.open(map, mark_agartala); }); 7. google.maps.event.addListener(map, 'click', function(event) { toMarker(event.latLng); //function to be called when map is clicked. });

The sensor parameter of the URL must be included, and indicates whether this application uses a sensor (such as a GPS locator) to determine the user's location. We've left this example as a variable set_to_true_or_false to emphasize that you must set this value to either true or false explicitly.

What is a sensor? (copied from windows help and support)


Sensors are hardware components that can provide your computer with information about your computer's location, surroundings, and more. Programs on your computer can access information from sensors, and then store or use it to help you with everyday tasks or to improve your computer experience. There are two types of sensors:

Sensors that are built in to your computer Sensors that are connected to your computer by a wired or wireless connection

Some examples of sensors include a location sensor, such as a GPS receiver, that can detect your computer's current location. A program could then use that location to provide you with information about nearby restaurants or driving directions to your next destination. A light sensor installed on your computer could detect the light in your surroundings, and then adjust the screen brightness to match it. For more information about how sensors may affect your privacy, see How does a sensor affect my privacy?

Location sensor- a sensor that can detect the current location of your computer. Such
as GPS receiver.

GPS receiver- a device that can determine your exact location on earth. A GPS receiver
uses a satellite system called the Global Positioning System (GPS) to find your location.

You might also like