Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
GeoJSON is a geospatial data interchange format based on JavaScript Object Notation (JSON)
0
votes
openlayers 3 GeJSON display issue
I had to repeat the folder where my html was, in first place (i.e. before the rest of the path)
2- I work with Chrome and forgot to disable web-internet-security, parameter preventing GeoJson to be displayed …
1
vote
2
answers
196
views
openlayers 3 GeJSON display issue
I am following this tutorial and I can't display the GeoJSON file mentionned 7day-M2.5.json. I copied and pasted the same code ; there is no error message in debug tools. … fill: new ol.style.Fill({color: 'white'})
})
})
})
],
The problem seems to be the json file because of "this" : in ol.js window, "this" is the reference to the GeoJSON …
1
vote
OpenLayers cannot close popup
I got it : I just deleted onPopupClose from popup definition in function monpopup(event). Now white cross does its job
2
votes
1
answer
500
views
OpenLayers cannot close popup
I have a map with points from GeoJSON file.
I created a default style and a select style for these points.
I created a popup with attributes from GeoJSON when clicking on a point. …
1
vote
1
answer
56
views
Creating clusters directly from a GeoJSON APIRest response in OpenLayers?
Using a APIRest, I fetch a PostGIS endpoint and get a response in GeoJSON format. … Then this is used to create a source and a layer :
....
const response = await myfetch.json()
const opeGeoJsonFormat = new GeoJSON({
dataProjection: "EPSG:2154",
featureProjection: "EPSG:3857",
})
.. …
1
vote
1
answer
214
views
Get GeoJSON feature from a promise response in OpenLayers?
.`)
.then(rep => rep.json())
.then(ope => {
//ope in GeoJSON format//
})
I try to convert the response in a GeoJSON format to be able to get the feature with getFeatures method …
1
vote
1
answer
154
views
Create layer from an array of geometries in OpenLayers?
PostgreSQL view, I get a response and extract the geometries in an array of object result.
.then(rep => rep.json())
.then(tableauObjOpe => {
for (const ope of tableauObjOpe) {
result.push(new GeoJSON …
1
vote
2
answers
2k
views
Openlayers 3 display in Firefox and Chrome
I'm experiencing some issues with displaying OSM and GeoJSON.
With Firefox v30 I see my GeoJSON data, but OSM is invisible.
With Chrome v35 I see OSM, not my GeoJSON...
What is the explanation? …
0
votes
Openlayers 3 display in Firefox and Chrome
I found it. It was a security property of Chrome:
XMLHttpRequest cannot load file:///C:/Users/.../emprise.json. Cross origin requests are only supported for HTTP.
I have to launch Chrome using a …