<div dir="ltr"><div><div>Buen dia amigos, tengo un GeoJson de puntos en un repositorio de GitHub. Con OpenLayers 2.11 como cliente el código que sigue funcionaba bien.<br> <br>Al cambiar por OpenLayers 2.13.1 (como cdn y en local) dejó de funcionar.<br><br>var urlIngenios = '<a href="https://raw.githubusercontent.com/transporte17/repo01/master/ingenios.geojson">https://raw.githubusercontent.com/transporte17/repo01/master/ingenios.geojson</a>';<br><br>var ingeniosAzucareros = new OpenLayers.Layer.Vector("Ingenios Azucareros", {<br>                strategies: [new OpenLayers.Strategy.BBOX()],<br>                projection: WGS84,<br>                visibility: true,<br>                protocol: new OpenLayers.Protocol.HTTP({<br>                         url: urlIngenios,<br>                         format: new OpenLayers.Format.GeoJSON()<br>                 })<br>        });<br>map.addLayer(ingeniosAzucareros);<br><br><br>Hice una prueba con OL3, sorpresa ... ha vuelto a funcionar!!!.<br><br><br>var urlIngenios = '<a href="https://raw.githubusercontent.com/transporte17/repo01/master/ingenios.geojson">https://raw.githubusercontent.com/transporte17/repo01/master/ingenios.geojson</a>';<br><br>var ingeniosAzucareros = new ol.layer.Vector({<br>    source: new ol.source.Vector({<br>                url: urlIngenios <br>                format: new ol.format.GeoJSON()<br>    })<br>});<br><br>mapa.addLayer(ingeniosAzucareros);<br> <br><br>La duda como hacer que me cargué los puntos con OL 2.13.1 ?. Por ahora no puedo migrar todo a ol3 y tampoco quiero volver a ol2 2.11 :(<br></div><div><br></div><div>Gracias de antemano.<br></div>Saludos<br></div>Javier Díaz<br></div>