first commit
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
/* ------------------------------------------------------------------------------
|
||||
*
|
||||
* # 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);
|
||||
|
||||
});
|
||||
@@ -0,0 +1,42 @@
|
||||
/* ------------------------------------------------------------------------------
|
||||
*
|
||||
* # Fusion table
|
||||
*
|
||||
* 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 chicago = new google.maps.LatLng(41.850036, -87.6800523);
|
||||
|
||||
// Options
|
||||
var mapOptions = {
|
||||
center: chicago,
|
||||
zoom: 12
|
||||
};
|
||||
|
||||
// Apply options
|
||||
var map = new google.maps.Map($('.map-layer-fusion-tables')[0], mapOptions);
|
||||
|
||||
// Add layers
|
||||
var layer = new google.maps.FusionTablesLayer({
|
||||
query: {
|
||||
select: '\'Geocodable address\'',
|
||||
from: '1mZ53Z70NsChnBMm-qEYmSDOvLXgrreLTkQUvvg'
|
||||
}
|
||||
});
|
||||
layer.setMap(map);
|
||||
}
|
||||
|
||||
// Load map
|
||||
google.maps.event.addDomListener(window, 'load', initialize);
|
||||
|
||||
});
|
||||
@@ -0,0 +1,37 @@
|
||||
/* ------------------------------------------------------------------------------
|
||||
*
|
||||
* # Traffic 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(40.4122142, -3.7059725);
|
||||
|
||||
// Options
|
||||
var mapOptions = {
|
||||
zoom: 12,
|
||||
center: myLatlng
|
||||
}
|
||||
|
||||
// Apply options
|
||||
var map = new google.maps.Map($('.map-layer-traffic')[0], mapOptions);
|
||||
|
||||
// Add layers
|
||||
var trafficLayer = new google.maps.TrafficLayer();
|
||||
trafficLayer.setMap(map);
|
||||
}
|
||||
|
||||
// Load map
|
||||
google.maps.event.addDomListener(window, 'load', initialize);
|
||||
|
||||
});
|
||||
@@ -0,0 +1,37 @@
|
||||
/* ------------------------------------------------------------------------------
|
||||
*
|
||||
* # Transit 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(51.501904,-0.115871);
|
||||
|
||||
// Options
|
||||
var mapOptions = {
|
||||
zoom: 14,
|
||||
center: myLatlng
|
||||
}
|
||||
|
||||
// Apply options
|
||||
var map = new google.maps.Map($('.map-layer-transit')[0], mapOptions);
|
||||
|
||||
// Add layers
|
||||
var transitLayer = new google.maps.TransitLayer();
|
||||
transitLayer.setMap(map);
|
||||
}
|
||||
|
||||
// Load map
|
||||
google.maps.event.addDomListener(window, 'load', initialize);
|
||||
|
||||
});
|
||||
Reference in New Issue
Block a user