[Test] GeoJSON IECA

by Francisco

HTML

<script src="http://mapea4-sigc.juntadeandalucia.es/js/mapea.ol.min.js"></script>
<link rel="stylesheet" href="http://mapea4-sigc.juntadeandalucia.es/assets/css/mapea.ol.min.css">
<script src="http://mapea4-sigc.juntadeandalucia.es/js/configuration.js"></script>
<div id="map"></div>

CSS

html,
body,
#map {
  padding: 0;
  margin: 0;
  width: 100%;
  height: 100%;
}

JavaScript

var mapajs = M.map({
	container:"map",
  wmcfiles:["callejero"]
  });

//GeoJSON servido
mapajs.addLayers(new M.layer.GeoJSON({name: "Provincias", url: "http://www.ieca.junta-andalucia.es/geoserver-ieca/topp/wfs?service=WFS&request=GetFeature&version=1.1.0&typename=topp:secc_2014_01&srsname=EPSG:25830&outputformat=application/json"}));