Skip to content

gabfusi/gMap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

gMap

A quick and rough JS Object to control a Google Map.

Usage

If you already have an array of points:

MAP.load({
    selector:'#map',
    toDraw: [{
		    lat: 5.39829,
		    lng: 12.35873,
		    id: i
		}, 
		...
	],
    icon: '<MARKER_IMAGE>',
    initialZoom:10,
    mapType:'ROADMAP',
    sensor: true
});

If you don't have an array of points, you can use the geocoding service provided by google:

MAP.load({
    selector:'#map',
    toGeocode: [{
		    address: 'Piazza della Vittoria, Genova',
		    html: 'My house!'
		}, 
		...
	],
    icon: '<MARKER_IMAGE>',
    initialZoom:10,
    mapType:'ROADMAP',
    sensor: true
});

About

A simple wrapper for Google Map Api v3

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published