Skip to content

Instantly share code, notes, and snippets.

@ti-ka
Last active December 3, 2015 20:11
Show Gist options
  • Save ti-ka/d2a270bf834d330c85a8 to your computer and use it in GitHub Desktop.
Save ti-ka/d2a270bf834d330c85a8 to your computer and use it in GitHub Desktop.
// Run javascript after DOM is initialized
$(document).ready(function() {
var options = {
latitude: 30.5044,
longitude: -90.4656,
zoom: 16,
type: 'ROADMAP',
scrollwheel: false,
marker: {
latitude: 30.5044,
longitude: -90.4656,
icon: 'assets/library/mapit/demo/images/marker_red.png',
title: 'The Hotel',
open: false,
center: true
},
address: '<h2>The Hotel</h2><p>Address 1, Area - County<br />Athens 123 45, Greece</p><p>Tel.: +30 210 123 4567<br />Fax: +30 210 123 4567</p>',
styles: 'GRAYSCALE',
locations: [
[37.999252, 23.733353, 'assets/library/mapit/demo/images/marker_blue.png', 'Cinema Aello 5+1', 'Panagi Tsaldari 140, Athina, Greece', false, '1'],
[37.996547, 23.732001, 'assets/library/mapit/demo/images/marker_blue.png', 'Cinema Ilion', 'Τροίας 34, Αθήνα, Greece', false, '1'],
[37.959408, 23.713982, 'assets/library/mapit/demo/images/marker_blue.png', 'Cinema Calipso', 'Megalou Alexandrou ke Kalipsous, Kallithea, Greece', false, '1'],
[37.977563, 23.714041, 'assets/library/mapit/demo/images/marker_green.png', 'Technopolis', 'Πειραιώς 100, Αθήνα, Greece', false, '2'],
[37.971436, 23.736695, 'assets/library/mapit/demo/images/marker_green.png', 'Zappeion', 'Greece', false, '2'],
[37.975030, 23.747751, 'assets/library/mapit/demo/images/marker_green.png', 'Εθνική Πινακοθήκη Μουσείο Αλεξάνδρου Σούτζου', 'Μιχαλακοπούλου 1, Αθήνα, Greece', false, '2'],
[37.976104, 23.7141811, 'assets/library/mapit/demo/images/marker_green.png', 'Benaki Museum', 'Koumpari 1, Athens, Greece', false, '2']
],
origins: [
['37.936294', '23.947394'],
['37.975669', '23.733868']
]
};
$('#map_canvas').mapit(options);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment