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({ ...


8

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 ...


4

You have to subscribe first at the original mailing list: http://lists.osgeo.org/mailman/listinfo/qgis-user http://lists.osgeo.org/pipermail/qgis-community-team/ or whatever list you want to subscribe (full list here) After confirming a response, you can receive and send to the mailing list as individual mails or daily extract as a newsgroup via gmane ...


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: ...


3

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

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

This is a Cross Domain Issue as you are calling a different domain in your XMLHttpRequest than is used for the data. I use a simple Proxy on our Server for the XMLHttpRequest from OpenLayers and the Proxy, in turn, forwards the request onto its true destination. An Example of how to make your own Proxy can be seen here This is also discussed here


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

Here is an option to only label intersected features: For each layer that you want to label add another field in the table called something like "intersect" Run a Spatial Query on each layer to define those features that intersect the project layer Use Field Calculator to populate a "Yes" value for the selected features (save edits per layer) Create label ...


1

The syntax should be like alert(response.results[0].locations[0].latLng.lat); It is that easy. I feel so humilated. I think I should stop coffee for a while...


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

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