1
vote
2answers
48 views

Openlayers 3 detect the layer by mouse move

I wanna do something like this ; Openlayers 3 Vector Layer Example But I don't want to one layer, 3 or more layer on the map and get feature like the example. How can I seperate the layer ...
1
vote
1answer
23 views

openlayers drag control returns wrong XY

I am trying to use a Drag Control in a webgis. My problem begins when I finish the 'move' of a point. That is, originally the point has an XY like -8.308567019533697 and 41.376871762432685, displaying ...
2
votes
1answer
69 views

Modifying a WMS feature in POSTGIS with Openlayers

I have a WMS layer that i'm using to display complex features to the users. It was really the main reason i chose GeoServer, because rendering all the vectors, made it painfully slow. Like GeoServer ...
0
votes
1answer
29 views

Openlayers selected feature unselecting on map zoom

I have createc a select control and a StyleMap that includes default marker and select marker. var mystyle = new OpenLayers.StyleMap({ "default": new OpenLayers.Style("null", { ...
1
vote
1answer
64 views

In OpenLayers 3, how do I draw an extent as a LinearRect?

In OpenLayers 2, this was an easy feat. I was able to simply instantiate a LinearRect given the coordinates of my BoundingBox, and then add the LinearRect as a feature to a vector layer I had added to ...
1
vote
0answers
19 views

Zoom to a vector feature in a vector layer

I am using OpenLayers+GeoServer and I have a vector layer in a map with some features I would like to make a zoom and show the map centered in one of these features that I can get by ID. How can I do ...
0
votes
0answers
20 views

openlayers clickevent for undercoat features polygon on multiple vector layers

I'm using two timers that give me coordinates and some data for my features (Sensors(de Sensoreinheit) & receiving unit (de Empfangseinheit)), deleting all features on the Layers and placing new ...
1
vote
0answers
39 views

Create vector layer from feature collection in OpenLayers

I have used a WPS process gs:UnionFeatureCollection to compute the geographical union of two collections of WFS vector features. The process returns a collection of features which I intend to display ...
2
votes
0answers
30 views

OpenLayers Popup relative to a feature's position - prevent overlaps - only one popup in one time

There are many questions related about this topic. However there is no complete example for this widely used pop-up type: Basically i need a popup which will appear the top-right of a Feature (Point) ...
0
votes
0answers
72 views

OpenLayers Vector Features with common properties in multiple Layers

I am trying to manage features across different layers. Features are displaying weather parameters at some points on the map. Hence there is a wind layer, a temperature layer, etc. which all are ...
2
votes
1answer
295 views

How to drag a feature in Open Layers 3

I'm trying to replicate something that was fairly easy in Open Layers 2 in Open Layers 3, which is: dragging an existing feature to a new location on the map. In Open Layers 2 I just added a ...
0
votes
1answer
45 views

Vector Layer editing in OpenLayers

I can draw a polygon in OpenLayers by this code. var points = []; var point = new OpenLayers.Geometry.Point(0, 0); point.transform('EPSG:4326', 'EPSG:900913'); ...
0
votes
0answers
74 views

How to achieve labeling in openlayers as Google did?

I am tried to find a solution for my question. Please look the images below. Google Google are awesome!!.. They are doing fantastic technique in labeling part. Please look the marked labels, the ...
0
votes
0answers
70 views

Openlayers / QuantumGIS, export or sync features Offline

writing from Spain. I am developing a web application based on OpenLayers , GeoServer and PostgisSQL , packaged under OpengeoSuite . The issue has to do with vector layers and their features. Until ...
1
vote
1answer
117 views

popup when new feature is created

I am trying to create a code where a feature is created, and then automatically a popup window will open. Is there anyone who can assist me please? Here is a part of the code and I want the popup to ...
2
votes
1answer
266 views

OpenLayers featureclick event does not work with named graphic (graphicName)?

OpenLayers 2.13. (and 2.13.1) I have been trying to make featureclick event working with vector layers and named graphic features. It works with externalGraphic, but not named graphic (graphicName: ...
0
votes
1answer
54 views

openlayers gets all features

I need to get all features' names, and for that I did a listview to put all features' names on it. So when i click one feature, not on the map but on the listview, the feature must be selected. Here ...
0
votes
0answers
34 views

openlayers find feature by attribute

//ilce kontrol ilcecontrol = new OpenLayers.Control.GetFeature({ protocol: OpenLayers.Protocol.WFS.fromWMSLayer(ilce) }); ilcecontrol.events.register("featureselected", this, ...
1
vote
2answers
431 views

Display photo in GeoExt popup

I have point feature with name PointPhoto. This feature have attribute: id area PhotoPath Now I am using GeoExt popup to display this attributes, but I cant find a way to display image from ...
0
votes
0answers
105 views

OpenLayers - feaures from WMSGetFeatureInfo are not shown on layer (but they exists)

I have a project with google as base layer and geoserver serving WMS layers (structures - multipolygons) that are in EPSG:2039 The layers are showing fine on google base layer (I guess OL re-project ...
1
vote
1answer
80 views

map can only have one feature, after user click

I'm using openLayers 2.13.1. I have a map wih a vector layer and Editing tools. I want the map to have only one feature even if the user keeps adding. So I want the new feature to automatically ...
1
vote
0answers
98 views

OpenLayers - Features in cloned layer changes style with original feature

Please help! My situation is that, I clone() a "newLayer" from an "oldLayer" with its features. Both of them seems correct at first. But then when I tried to change the style of "featureA" in the ...
1
vote
1answer
427 views

Get Features from OpenLayers Layer.Vector not working

polygon_layer = new OpenLayers.Layer.Vector("Polygone", { projection : projLonLat, strategies : [ new OpenLayers.Strategy.Fixed() ], protocol : new ...
1
vote
0answers
381 views

Add layers from WMSCapabilitiesStore to MapPanel and select polygons

I created a store and added layers to a grid Panel, when you click add layer to map it works fine, the problem is that when I call the function controle(layer) I can't select polygons in the layer ...
1
vote
3answers
139 views

One SelectFeature control for every Layer?

I would like to have one SelectFeature control for every layer so that I can have different representational behaviour for every layer. Means in one layer I want to highlight the features when the ...
2
votes
2answers
74 views

Why is OpenLayers only displaying the first features in my KML?

I have an OpenLayers map (that you can find here, use the blue search area) that reads in a KML string that is written from Perl using data from oracle. It reads the KML like this: var vector_Layer = ...
1
vote
1answer
1k views

How can I do feature selection on WMS layer (added JSFiddle example)

I have WMS layer with roads serverd from Geoserver (MS SQL View Layer) http://jsfiddle.net/Alophind/5pSrJ/ I want the user to be able to click on a line and "highlight" it , set it selected so he ...
0
votes
2answers
212 views

javascript function to search all OpenLayers vector features covering a pixel

I have an OpenLayers map that draws features in a vector layer. The features are selectable and have a popup on select. Unfortunately in a lot of cases the features overlap so it can be impossible to ...
0
votes
1answer
893 views

OpenLayers create marker (feature with icon) from WKT

I have a point object WKT. Like this: POINT (25.04568 48.221548). Also I have an icon in my project folder. My goal is to show on a map an icon that represents a feature. Can it be just a normal ...
0
votes
1answer
948 views

Having trouble selecting polygon from existing layer (using OpenLayers.Control.SelectFeature)

I am hoping someone can point me in the right direction. I am not a programmer, so that is my first roadblock. ha The problem: I have an existing polygon layer and I am trying to select one of the ...
2
votes
1answer
954 views

Display list of OpenLayers Features which are currently visible on screen

I have an OpenLayers map a few thousand Points of Interest. These POIs are Vector Features rendered in a Vector Layer. We are loading the POIs once in order to minimize load on the server. Next to ...
0
votes
1answer
117 views

Openlayers: Bind Text with feature (Outside Map in a Div)

I'm using OpenLayers to show routes on a map. These routes are loaded from JSON and I'm using a Vector Layer to get it onto the map - works great. Now I want to Display all features in a div outside ...
0
votes
0answers
54 views

How to obtain the center of Vector layer created using WFS query?

I created a vector GML layer using a WFS query with a filter. The layer renders fine . However, the layer does not appear to have any features associated with it (layer.features.length is 0 ) I need ...
2
votes
1answer
682 views

Changin features' pointRadius based on the current zoom level

I need to have my features change their pointRadius based on the current Zoom level. My questions are: Would it be possible to use Rule Based Styling techniques to overcome the problem? If yes, it ...
2
votes
3answers
791 views

how to change color of feature to mark it as recently modified with openlayers

I am developing a crowd sourced app using openlayers. after user clicks an feature, a popup form is displayed. After clicking the save button, the data is used in processing which takes some time so ...
4
votes
3answers
3k views

Openlayers remove previously drawn polygon on starting to draw next one

Objective: At any point of time there SHOULD only be zero/one polygon(s) on a vector layer with a polygon control. I need the previous polygon to be removed as soon as user starts drawing the first ...
1
vote
1answer
371 views

OpenLayers Zoom To Feature Help

I have been struggling with something for a while that I figured would be simple. I have a WMS layer with many (millions) polygon features. This is a PostGIS layer (WMS). Each polygon has an ID in an ...
1
vote
1answer
125 views

How to abort a layer event in Openlayers

I have a problem ( How to stop features to redraw unwillingly in OpenLayers ) that might be solved by aborting the beforefeatureremoved or beforefeaturesremoved event. What I would like to to is to ...
2
votes
1answer
120 views

How to stop features to redraw unwillingly in OpenLayers

I have a problem where when editing features from a wfs vector layer. After some changes are made to the geometry, the feature redraws itself and the changes are lost. Usually the problem occurs more ...
2
votes
2answers
340 views

Server side clustering - cluster (feature) geometry

I am trying to implement server side clustering and show it using OpenLayers. I am using this good material as an example. As a clustering result, a get some list of features, some of them are ...
1
vote
0answers
165 views

How to set the holeModifier on OpenLayers.Control.DrawFeature to always be active?

I would like to create a button "draw a hole" taht uses by default the holeModifier functionality but the user dont need to press the cttrlBtn. The "standard" way I guess, would be to create a way of ...
2
votes
4answers
530 views

how to check if a wms layer has no features

I've been searching the net for a couple of days to find a way, how to check if a wms layer has no features... Let me explain I'm using openLayers/geoserver/postgis. I'm using a cql_filter to search ...
1
vote
1answer
1k views

Openlayers Vector Feature Popup

im trying to create a popup in Openlayers that would open when someone clicks a marker. And the marker is setup like this: new OpenLayers.Feature.Vector() and not with the ordinary marker layer. The ...
2
votes
0answers
101 views

Cannot reselect polygon after modify

I've got various vector layers on a OL map. On one layer I have a few draw controls. If I draw a polygon I can select it (the whole pop-up thing works). This also works for all the other features. ...
2
votes
1answer
313 views

Bug With Adding Multiple Controls for Selecting Features in OpenLayers

I am trying to add functionality to my WFS layer which will allow me to do: Hover over a point and display a tooltip with information about the feature Click on the point to zoom in on it I have ...
0
votes
1answer
90 views

OpenLayers make feature not clickable

I have defined an OpenLayers.Select.Control - I need only hoveron and hoverout events. I have implemented it using callbacks that and it works. But I need to disable just on feature clicking ...
1
vote
2answers
5k views

OpenLayers vector layer remove all features

I have a map (using OpenLayers) and a vector layer containing features(points). Sometimes I need to remove all features from the vector layer. When I use vectorLayer.removeAllFeatures() then it ...
3
votes
1answer
679 views

change style of newly drawn points

I've a vector layer with a bunch of draw controls on it. You can add polygons, points and you can modify polygon. Now I changed the style of the points so they have a nice pin-like image. But them I ...
2
votes
2answers
52 views

XML not getting convert into list of Feature Objects

I'm getting a following XML response: <wfs:FeatureCollection xmlns="http://www.opengis.net/wfs" xmlns:wfs="http://www.opengis.net/wfs" xmlns:Alexandria="http://www.opengeo.org/alexandria" ...
4
votes
3answers
5k views

How can I unselect a feature in Openlayers?

I am able to identify the selected features on my map using the following line: vector_layer.selectedFeatures I would like to be able to deselect this feature using a standalone function (not an ...