Skip to content

fpaula/jquery.maplink

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 

Repository files navigation

PRE-REQUISITE

Maplink JS API


OPTIONS

+============================================+
| property       | data type | default value |
+============================================+
| latitude       | float     | -23.5505233   |
| longitude      | float     | -46.6342982   |
| zoom           | integer   | 10            |
| infoWindowHtml | string    | ''            |
| showMarker     | boolean   | true          |
| markers        | array     | null          |
+============================================+

OTHER METHODS

$('#mydiv').addMarker(marker)
$('#mydiv').removeAllMarkers()


MARKER STRUCTURE

icon
	image
	dimensions
		x
		y
html
latitude
longitude
title
type


EXAMPLES

Show map:
$('#mydiv').maplink({
	latitude: -23.555117,
	longitude: -46.6646338,
	zoom: 16,
	infoWindowHtml: '<span>my html</span>'
});

Show map with markers:
var myMarkersArray = [{
	icon: {
		image: 'restaurant_icon.png',
		dimensions: {x: 18, y: 18}
	},
	html: '<span>All Taj Restaurant</span>',
	latitude: '-23.5421413',
	longitude: '-46.6834911',
	title: 'All Taj',
	type: 'Japanese Restaurant'
}]

$('#mydiv').maplink({
	latitude: latitude,
	longitude: longitude,
	zoom: 11,
	showMarker: false,
	markers: myMarkersArray
});

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published