You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
789 B
37 lines
789 B
/* ------------------------------------------------------------------------------ |
|
* |
|
* # Bicycle layer |
|
* |
|
* Specific JS code additions for maps_google_layers.html page |
|
* |
|
* Version: 1.0 |
|
* Latest update: Aug 1, 2015 |
|
* |
|
* ---------------------------------------------------------------------------- */ |
|
|
|
$(function() { |
|
|
|
// Initialize |
|
function initialize() { |
|
|
|
// Set coordinates |
|
var myLatlng = new google.maps.LatLng(47.377455, 8.536715); |
|
|
|
// Options |
|
var mapOptions = { |
|
zoom: 14, |
|
center: myLatlng |
|
}; |
|
|
|
// Apply options |
|
var map = new google.maps.Map($('.map-layer-bicycling')[0], mapOptions); |
|
|
|
// Add layers |
|
var bikeLayer = new google.maps.BicyclingLayer(); |
|
bikeLayer.setMap(map); |
|
} |
|
|
|
// Load map |
|
google.maps.event.addDomListener(window, 'load', initialize); |
|
|
|
});
|
|
|