Tagged Questions
0
votes
1answer
21 views
repeated feature on my Geoext combobox
am trying to load data in a combobox from my layer in geoserver. i succeded to that but i have repeated features, how to restrict the loading so as to not have repeated value on my combobox, here's my ...
1
vote
1answer
37 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
32 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
21 views
openlayers clustering alternative
Is there some alternative to group features in OpenLayers? My goal is to speed-up the process of rendering. Clusters allow to do that a bit faster than rendering just plain features. So, any ...
0
votes
0answers
37 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
64 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
135 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 ...
1
vote
2answers
315 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
140 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
54 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
51 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 ...
0
votes
0answers
66 views
OpenLayers move each vector feature of layer by constant pixels away from center
I am stuffing a lot of features, each from a different layer, onto exactly the same point, so the visual result is somewhat confusing and it is necessary that some graphics have some offset of ...
0
votes
0answers
82 views
OpenLayers set feature style
I have a standard OpenLayers features with geometry and containing some additional data. Like this:
...
data: [3 ,8]
id: 5
isCluster: true
lat: -14.018995915348285
lon: -113.59550725071185
...
1
vote
1answer
125 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 ...
0
votes
0answers
70 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 ...
1
vote
2answers
196 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
280 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
66 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
116 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
47 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 ...
0
votes
2answers
662 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 ...
0
votes
0answers
106 views
Generating vector data (points) for OpenLayers Animated Cluster Strategy
In my web application I am going to use OpenLayers.Strategy.AnimatedCluster strategy due to the fact that I need to visualize a great amount of point features. Here is a very good example of what it ...
3
votes
1answer
231 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
41 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" ...
1
vote
3answers
813 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 ...
5
votes
3answers
270 views
How to update feature positions with clustering in OpenLayers?
I have an OpenLayers 2.12 map with a vector layer with a cluster strategy. All the static behavior is how I want it. Now I'd like to add the possibility to update the features' position. I do this ...
0
votes
0answers
159 views
Openlayers WFS Features returned but not drawed
I've managed to get features return by a WFS filter layer but I can't add them on top a google map layer.
var map, Geographic, Mercator, wfsLayer;
OpenLayers.IMAGE_RELOAD_ATTEMPTS = 3;
...
0
votes
1answer
384 views
delete feature from database by selecting feature from vector layer [closed]
I want to delete a feature attribute for example say grid completely from the map that is it has to be deleted from database. I am using OpenLayers 2.12, postgis 2.0 and postgresql 9.0.
Please guide ...
1
vote
0answers
153 views
Tie up LineString to the feature when dragging it in OpenLayers
I have an application in OpenLayers which shows a number of devices (Feature) on a map. The devices are linked between each other by cables (MultiLineString).
...
0
votes
1answer
227 views
lonlat from geometry point gives strange result
I added a vector layer to my main map with the controls like the example from openlayers: http://openlayers.org/dev/examples/draw-feature.html
Now when I want to get the resulting lonlat from the ...
1
vote
1answer
472 views
Dynamically adding features with cluster strategy
I am trying to dynamically add features to a vector layer, and use cluster strategy to group those features accordingly.
I am able to do this for the first set of data that gets loaded on the map.
...
4
votes
3answers
2k views
Change Icon of Single Vector Feature in Layer
Currently I am trying to change the icon of a particular feature of a vector layer that the user is focusing on. I add each feature to the map like so:
var point = new ...
5
votes
3answers
1k views
Slow IE8 responsiveness with OpenLayers and many features
Background
Adding about 700 sites to an OpenLayers Map. Firefox 11 and Google Chrome display the sites just fine. IE8, which is the organization's standard and will not be upgraded for the ...
0
votes
1answer
494 views
OpenLayers ModifyFeature and styling
In OpenLayers, I have a Vector layer with a StyleMap and SelectFeature and ModifyFeature controls, like this:
vector_layer = new OpenLayers.Layer.Vector('My Vector Layer', {extractAttributes: true,
...
1
vote
1answer
305 views
openlayers trigger hover event
I have a bunch of tracks on screen in a vector layer. I used some hover and select styles in the layer styleMap and these styles are properly triggered by:
var highlightCtrl = new ...
9
votes
1answer
859 views
Dealing with overlapping features in OpenLayers
If users create a polygon feature that completely overlaps another one, like this …
… then there's no way you can select the inner feature, i.e. the one that's overlapped by the other. I'm ...
3
votes
2answers
358 views
Problem with multiple feature selection
In an attempt to retrieve all features (point geometry) that fall in a selected polygon, I get the error this.layer.addFeatures is not a function. My code is as shown below:
function ...
2
votes
2answers
2k views
openlayers change marker icon, size and offset after drawn
I'm having much trouble changing my (feature)marker icons 'on the fly'. The problem is that I use much different images and also need to change the offset.
So I iterate over every marker and make a ...
1
vote
1answer
165 views
The relation between the Feature's Geometry and its externalGraphic
I wonder what is the relation between the Geometry.Point one sets for a Feature.Vector and the image provided as externalGraphic for the style, in OpenLayers.
Is the Geometry.Point of a feature for ...
0
votes
0answers
426 views
WFS layer from Mapserver into OpenLayers connection error
I have been working for last 15 days to connect setup the WFS service on Mapserver into OpenLayers I tried examples from Mapserver but did not work out .Following is the Map file code snippet
MAP
...
2
votes
1answer
3k views
Problems with features, popups and strategy with OpenLayers
I'm trying to create a website for vehicles localization on map, but i have some problem with openlayers.
This is my first time with OL...
What I would do is:
- add and update features (my vehicles) ...
2
votes
1answer
3k views
Assign Icons to specific points dynamically in OpenLayers
I have a json file describing features on a map (routes, points etc)
points include places of interest such as airport, harbor etc.
Is there a way to assign icons to these points?
example: have a ...
1
vote
1answer
378 views
Zoom to country with geoserver and openlayers
I would like to preposition an OpenLayers map on a country.
This is, when my page loads, the map should be positioned on the country with an appropriate zoom level. This should work for a (large) ...
4
votes
3answers
291 views
Can I prevent features from being created outside an OpenLayers map?
In our app, we allow users to create features on maps. The boundaries of these features will later be converted into real-life latitude/longitude coordinates, but does not make sense if features are ...
4
votes
1answer
616 views
How to integrate OpenLayers and ArcGIS Server?
I am using the OpenLayers JavaScript API within a web application. I am displaying non-base layers hosted on an ArcGIS server. When I load the ArcGIS layers, I load them using ...
3
votes
1answer
988 views
OpenLayers Selectfeature get mouse position
I'm have been searching for several hours and do not find a way to get mouse coordinates after a SelectFeature, which returns the feature by itself. I saw that this has been asked several times ...
2
votes
2answers
232 views
How OpenStreetMap data layer works?
OSM map has a data layer and an information panel. How is it implemented? What is a type of the layer and URL of vector data source? How information panel works?
Thanks for all!
3
votes
1answer
517 views
How do I fire a function after all features have been selected by a box in OpenLayers?
I have a map rendering with Polygons on a Vector layer set up as features. I set up the features so they fire off a function when the feature is selected and this works fine. The issue I'm having is ...
2
votes
2answers
973 views
How to query which features of all vector layers intersect with a given bounds?
I am writing a Openlayers map app, and wondering whether there's a better practice to query which features of which vector layers intersect with a given bounds..
It's certainly not a good idea to ...
2
votes
0answers
893 views
How to deactive Vector Selection In OpenLayers wms features
This is my sample code and work fine :), But I have a little problem,
I'm using multiple layer (WMS), when I zooming the layer will be shown or hidden.
In my example bellow when OpenLayers level zoom ...




