Skip to content

Instantly share code, notes, and snippets.

@parzibyte

parzibyte/mapa.js

Created Dec 27, 2019
Embed
What would you like to do?
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