No description, website, or topics provided.
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README
jquery.maplink.js

README

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
});