Monday, August 02, 2010

Google maps - Part 3 - How to create a marker on google maps?

Markers are indicators on google map to denote the places of interest. This post will explain you how to place a marker on google map.

The marker object resides in the google.maps.Marker namespace and takes a single argument, options. Options is an object literal called Marker options that can have several properties of which two are required:

map [Map]
Map is a reference to the map where you want to add the marker.

position [LatLng]
This property indicates the position of the marker and is of type google.maps.LatLng

No comments:

Post a Comment