Tag Info

Hot answers tagged

9

Assuming your are using OpenLayers.Protocol.WFS, then you have something like this and you can provide a callback when you call the read operation on the protocol: The call back has an OpenLayers.Protocol.Response object. This object has an error property that will let you know of any errors. var protocol = new OpenLayers.Protocol.WFS({ ...


6

Fiddler allow you to capture HTTP traffic acting as a proxy between you and network. So to capture WMS/WFS requests from any software I believe you have just to run Fiddler as usual. The same way you have done it with MapInfo - no additional configuring is required. PS I have tested it with ArcGIS Server - successfully capturing REST traffic. EDIT1: You ...


3

If your goal is to know WHEN all features have been added to your wfsLayer so you can hide your "please wait" message, then you could do as neil says and add it all in the vector layer constructor. Then just register the featuresadded event which will be triggered when the features have been added. Example: wfsLayer.events.on({ featuresadded: ...


2

A working solution is similar to what @seruva19 suggested. The trick is to add a boolean value to the filter as an alternative to the previous filter: FILTER "(mycolumn='%myvalue%') or %allvars%" where the validation forces the value to be TRUE VALIDATION ... "allvals" "^TRUE$" END and the default of allvals is set to FALSE METADATA ... ...


2

I'm not sure, but this trick may work: Add FILTER to validation block of the layer's description, like this: LAYER ... VALIDATION 'FILTER' '.' END ... When you want to show all of the data in your layer, add the following string to your URL request : &map.layer[mylayer]=FILTER+("[mycolumn]"+~*+".") I hope this will help.


2

It seems the problem is in the line breaks from Geoserver XML indent. It works when I do something like below OpenLayers.Request.GET({ url: "http://localhost:8080/geoserver/wms", params: { request: "GetStyles", layers: "topp:states", service: "wms", version: "1.1.1" }, success: function (data, statut, xhr) { ...


1

One option is to store the features in the mobile local storage like a sqlite database, you can even store it in a html5 web sql database. When it's offline you can create the layer from stored feature. Edit: Following is the code to save the features (in geojson format) to local storage var features = ...; // This is the features you will store in local ...


1

For Mapquest Geocoding you need to send the format In the example given you get the full Take this example and add YOUR_API_KEY http://www.mapquestapi.com/geocoding/v1/address?key=YOUR_KEY_HERE&callback=renderOptions&outFormat=json&inFormat=json&json={location:{street:%22Lancaster,PA%22},options:{thumbMaps:false,maxResults:1}} You should ...


1

I don't know of any Leaflet-specific way to do this. However, you could preload all images asynchronously and let the browser's cache handle everything for you. All major JS libraries let you do asynchronous resource loading very easily, including binding the loads with whichever progress indicator you'd like. You'll just have to make sure your server is ...


1

Use Vector layer instead WFS. The vector layer accepts some properties like: protocol: which allows to set the kind of protocol to be used to read/write data. It can be WFS, GeoJSON, ... strategies: an array with the Strategy instnaces used to refresh the layer content. filter: this is what you want. Here you can specify the filter to be use when ...



Only top voted, non community-wiki answers of a minimum length are eligible