Created
December 27, 2019 17:59
-
-
Save parzibyte/b2c949e5822b12a2135fbb5d5843df9f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const LATITUD_CENTRO = 19.413793, | |
LONGITUD_CENTRO = -99.128145, | |
ZOOM = 15; | |
const mapa = new ol.Map({ | |
target: 'mapa', // el id del elemento en donde se monta | |
layers: [ | |
new ol.layer.Tile({ | |
source: new ol.source.OSM() | |
}) | |
], | |
view: new ol.View({ | |
center: ol.proj.fromLonLat([LONGITUD_CENTRO, LATITUD_CENTRO]), | |
zoom: ZOOM, | |
}) | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment