gmaps - Basic Maps

Basic maps examples include maps events and markers maps.

Basic Map

You must define container ID, latitude and longitude of the map's center.

You also can define zoom, width and height. By default, zoom is 15. Width an height in a CSS class will replace these values.

Map types are defined in the mapType property. Allowed values are: roadmap (default), satellite, hybrid and terrain.

Map Events

Click or drag this map to see attached events. You can check the list of map events here.

Markers

Latitude and Longitude are required. You can also attach additional information with details, which will be passed to Event object (e) in the events previously defined.