mirror of
https://github.com/medialab-prado/datamad2017.git
synced 2025-06-07 14:01:29 +02:00
Cambiando mapa por OpenStreetMap
This commit is contained in:
parent
ce3fdac6e1
commit
3ffecc3949
8 changed files with 50 additions and 34 deletions
|
@ -266,6 +266,26 @@
|
|||
}
|
||||
});
|
||||
|
||||
//Openstreetmap with leaflet
|
||||
|
||||
var map = L.map('canvas-map-osm', {
|
||||
center: [40.41161,-3.69406],
|
||||
zoomControl: false,
|
||||
scrollWheelZoom: false,
|
||||
zoom: 18,
|
||||
minZoom: 18,
|
||||
maxZoom: 18,
|
||||
dragging: false
|
||||
});
|
||||
|
||||
L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', {
|
||||
attribution: '© <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'
|
||||
}).addTo(map);
|
||||
|
||||
L.marker([40.41082,-3.69366]).addTo(map)
|
||||
.bindPopup('Medialb-Prado')
|
||||
.openPopup();
|
||||
|
||||
//Google plus
|
||||
function initGooglePlus() {
|
||||
var po = document.createElement('script');
|
||||
|
@ -283,7 +303,7 @@
|
|||
|
||||
//Google maps
|
||||
if (typeof googleMaps !== 'undefined') {
|
||||
var map, autocomplete, directionsDisplay, geocoder, polyline, origin;
|
||||
var trap, autocomplete, directionsDisplay, geocoder, polyline, origin;
|
||||
var markers = [];
|
||||
var directionsService = new google.maps.DirectionsService();
|
||||
var MY_MAPTYPE_ID = 'custom_style';
|
||||
|
|
24
js/scripts.min.js
vendored
24
js/scripts.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue