[Test] 5.1.0 mejora mouse
by Francisco
HTML
<link rel="stylesheet" href="http://mapea4-sigc.juntadeandalucia.es/assets/css/mapea-5.1.0.ol.min.css">
<script src="http://mapea4-sigc.juntadeandalucia.es/js/mapea-5.1.0.ol.min.js"></script>
<script src="http://mapea4-sigc.juntadeandalucia.es/js/configuration-5.1.0.js"></script>
<div id="map"></div>
CSS
html,
body {
margin: 0;
padding: 0;
height: 100%;
overflow: hidden;
}
JavaScript
const mapajs = M.map({
container: 'map',
//controls: ['layerswitcher','scale','scaleline'],
wmcfile: ['mapa', 'satelite']
});
const campamentos = new M.layer.GeoJSON({
name: "Campamentos",
url: "http://geostematicos-sigc.juntadeandalucia.es/geoserver/sepim/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=sepim:campamentos&outputFormat=application/json&",
extract: true
});
campamentos.setStyle(new M.style.Cluster());
mapajs.addControls(new M.control.Mouse({
srs: 'EPSG:4326',
label: 'EPSG:4326',
precision: 2
}));
mapajs.addLayers(campamentos);