I generated a GeoJSON a projected table in EPSG: 4326 domeu postgis
SELECT ST_AsGeoJSON(geom)FROM "onibus"
I put in the www folder on my server I'm running geoserver locally my pages are also in the folder wwww Is giving 3 errors:
Uncaught TypeError: Cannot read property 'wrapDateLine' of null OpenLayers.js:197XMLHttpRequest cannot load file:///C:/Program%20Files/GeoServer%202.4.5/data_dir/www/featureCollection.geojson. Received an invalid response. Origin 'null' is therefore not allowed access. mapGeoJson.html:1Uncaught TypeError: Cannot read property 'projection' of null mapGeoJson.html:28This is my code:
My OpenLayers Map
Can anyone help me troubleshoot errors .. I am new to OL and did not understand how to solve
أكثر...
SELECT ST_AsGeoJSON(geom)FROM "onibus"
I put in the www folder on my server I'm running geoserver locally my pages are also in the folder wwww Is giving 3 errors:
Uncaught TypeError: Cannot read property 'wrapDateLine' of null OpenLayers.js:197XMLHttpRequest cannot load file:///C:/Program%20Files/GeoServer%202.4.5/data_dir/www/featureCollection.geojson. Received an invalid response. Origin 'null' is therefore not allowed access. mapGeoJson.html:1Uncaught TypeError: Cannot read property 'projection' of null mapGeoJson.html:28This is my code:
My OpenLayers Map
Can anyone help me troubleshoot errors .. I am new to OL and did not understand how to solve
أكثر...