0
votes
1answer
9 views

Error XMLHttpRequest cannot load openlayers geocode

I'll make a page for viewing routes with openlayers, postgresql / postgis and pgrouting. The part of the seat is already ok, I'm using OSM data. The image below is to illustrate what I'm doing now: a ...
0
votes
0answers
34 views

No 'Access-Control-Allow-Origin' header is present on the requested resource. Using Geoserver + Openlayers [duplicate]

This is my code to open a WFS layer from geoserver: <!DOCTYPE html> <html lang='en'> <head> <meta charset='utf-8' /> <title>My OpenLayers Map</title> ...
0
votes
1answer
259 views

Read GeoJSON with openlayers

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 ...
0
votes
1answer
757 views

OpenLayers doesn't proxy WMS requests to Geoserver

I had an issue with WMS requests from OpenLayers to Geoserver via Proxy.php. My OL version is 2.12 and my Geoserver is 2.4.0. I set the variable OpenLayers.ProxyHost as shown in OL documentation, but ...
1
vote
0answers
32 views

Handling loading time for WMSGetFeatureInfo [closed]

I've got this code for a WMSGetFeatureInfo on Hover event: info.events.register("getfeatureinfo", this, function (evt){ ('#rastervalue').val(...)... }); my request to Geoserver takes ...
1
vote
1answer
344 views

OpenLayers: cache WFS Request for Vector Layer

In our mobile application, we'd like to use the map offline. Actually, we don't care about tiles, but we want the user to be able to see some Vector layers. Here is a piece of code: ...
4
votes
2answers
99 views

How do I parse getStyle request?

I am having problem parsing http://localhost:8080/geoserver/wms?request=GetStyles&layers=topp%3Astates&service=wms&version=1.1.1 getStyle response from geoserver of layer topp:states. ...
1
vote
0answers
475 views

Add wfs layer to openlayers map

(UPDATE QUESTION) Hi guys. I have a problem with WFS request, mine is follow: var wfs = new OpenLayers.Layer.Vector("WFS",{ strategies: [new OpenLayers.Strategy.Fixed()], ...
2
votes
0answers
348 views

OpenLayers BBOX sending double requests

I've implemented a openlayers bbox strategy on a vector layer. I have my server return a nice jsonp object wrapped in the callback given by the request. The problem is that during normal use of the ...
2
votes
3answers
4k views

OpenLayers WFS protocol: work with filters if the protocol is defined out of layer constructor

follow question:wfs-load-feature-check the scenario is: i am trying to load a WFS layer, since it takes a while to load all features, I want to give user a notice while waiting for response. the ...
5
votes
3answers
5k views

OpenLayers load WFS vector layer: how to check whether all features are returned from server?

My app takes several seconds to return all features of a WFS layer from server, I am wondering whether there is a way to check whether all features are returned in coding, so that we can add a ...