Tag Info

Hot answers tagged

3

the unit is Pixel,see http://dev.openlayers.org/releases/OpenLayers-2.12/doc/apidocs/files/OpenLayers/Feature/Vector-js.html {Number} Pixel point radius. 


2

You could also use WMS or even preseeded tiles and just grab the single features you need to edit from wfs. http://dev.openlayers.org/releases/OpenLayers-2.10/examples/getfeature-wfs.html


2

You could run your script, convert the csv and then read the converted data with the OpenLayers.Text-format. But I also think that it's more straightforward to change the way the csv is read if you can't change the csv (on the server side) before you read it with OpenLayers. I just gave it a quick try and it works. I just made a copy of the file "Text.js" ...


1

You could try to set the tilesorigin and tilesize --> tileOrigin {OpenLayers.LonLat} x and y are the coordinates of the lower left corner (the “origin”) of the tile grid system new OpenLayers.Layer.WMS( "xxxxxx","url", {layers: 'xx:xxx', format: 'image/png' }, { tileOrigin: new OpenLayers.LonLat(-180, -90), tileSize: new ...


1

Why not take a look on the OL.Format.Text code (not a big class) and see if you can extend it to use your own parser? I mean, creating a new OL.Format class that has your own logic on how your data is structured, that is, basically changing some bits on the read method.


1

With your stack, I'd suggest try to use GeoJSON as transport format but anyway, 10K are a lot of features to be handled by the client browser. I'd think on a WMS rendering for low scales and only when user is really going to do something meaningful with the data (selections probably) at larger scales then download only the vector features present on the ...


1

You could post the sld to a php-file which writes a sld-file on the server(considering some security aspects). Then you could point to this file: Example: 4 times the same layer, getlegendgraphic with 4 different sld's: ...


1

Just add the BaseLayer as a RasterLayer. <GDAL_WMS> <!-- Data is subject to term of use detailed at http://code.google.com/intl/nl/apis/maps/terms.html and http://www.google.com/intl/en_ALL/help/terms_maps.html --> <Service name="TMS"> <!-- ...


1

First of all I would test if the click event is fired on the mobile device (for example with a simple alert) http://jsfiddle.net/expedio/n68f7jus/ ( and make sure you are using a up to date version of OpenLayers like 2.13 ) If you are using the popup for a vector layer you could try if this example works on your mobile device (vector style not even ...


1

you can use yourVectorLayer.getSource().getFeaturesAtCoordinate(point). the result is an array, if the its length > 0 then the point in, else not.


1

These kind of operations aren't supported out of the box in ol3. (maybe in the future). But you can use a library like http://turfjs.org , in this case you'll need https://github.com/Turfjs/turf-within or https://github.com/Turfjs/turf-inside You can use ol.format.GeoJSON to convert from a ol3-geometry and geojson for turf and back.


1

In Firefox you could do a rightclick on the blank tile and choose "open image in New tab" to see if it is displayed outside your app. Apart from that you could try this to see if there is an image load error: OpenLayers.Util.onImageLoadError = function() {console.log("error");};  or use the CSS-Class: .olImageLoadError { /* when OL get's a Error 404 ...


1

well strange thing... what you could check is the featurestate... or just make a copy of the shapefile, delete your sensitiv/confidential data if neccessary ,insert two/three dummy-features and send me the file. Then I could give it a try. here the code: layer_selectable.events.register("loadend",map,function() { ...


1

You could try following: make sure that you don't use your workspace prefix in the geoserver-url http://myserver.de:80/geoserver/wfs instead of something like http://myserver.de:80/geoserver/ah_neu/wfs and add some more parameters like the schema: // version 1.1.1 layer_selectable = new OpenLayers.Layer.Vector("WFS", { strategies : [new ...



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