Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var maplace = new Maplace({
- map_div: '#mappanel',
- controls_type: 'dropdown',
- controls_title: 'Select a point:',
- controls_position: google.maps.ControlPosition.TOP_LEFT
- });
- function loadMap() {
- $.ajax({
- url: 'includes/ajax_getmap.php',
- type: 'POST',
- cache: false,
- timeout: 5000,
- data: { date: $('#dateselect').val() },
- dataType: 'json',
- success: function(data) {
- maplace.SetLocations(data.locations, true);
- },
- error: function(XMLHttpRequest, textStatus, errorThrown) {
- alert(errorThrown)
- }
- });
- }
- {"locations":[
- {"lat":52.1,"lon":11.3,"title":"Title 1","html":"<h3>Content 1</h3>","zoom":8},
- {"lat":51.2,"lon":22.2,"title":"Title 2","html":"<h3>Content 2</h3>","zoom":8},
- {"lat":49.4,"lon":35.9,"title":"Title 3","html":"<h3>Content 3</h3>","zoom":8},
- {"lat":47.8,"lon":15.6,"title":"Title 4","html":"<h3>Content D2</h3>","zoom":8}
- ]}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement