0
votes
1answer
24 views

Select all features close to clicked

I have an openlayers map with more then 20000 features not in wms, only in vector layer. I have a control to select features, but sometimes it's really hard to select, specially the lines, and also ...
0
votes
0answers
29 views

how to easily serve vector layer with extra attributes for openlayers

On a website I'd like to show an openstreetmap with buildings colored by a certain feature (tag). So far I was able to extract the buildings for a bounding box, save them as an osm file and load it ...
1
vote
1answer
50 views

CartoDB map in openlayers

Is there a way that i can upload my CartoDB map in Openlayers as a WMS layer or Vector layer. Here is the my CartoDB map link. http://cdb.io/1nxdrpf
0
votes
0answers
33 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 ...
1
vote
1answer
49 views

How to automatically transform between base layer and vector layer in OpenLayers

I have a simple example on http://jsfiddle.net/29bsw/ I have a map with an OSM layer as base layer and an additional vector layer. The projection of the map is defined as EPSG:900913 and the ...
0
votes
1answer
37 views

Geomedia WebMap WFS to vector marker layer in Openlayers

Looking for minimal example/advice on getting a WFS service to show up as a vector layer with markers/icons in Openlayers map. I have created the WFS service in Geomedia WebMap 6.01.11.19 and the ...
2
votes
3answers
79 views

How to prepare a multi-colored vector layer?

I need to present a multi-colored vector layer and something similar to below: I need to prepare the vector layer by making use with the data set available in my database. Inside my database, I ...
2
votes
1answer
65 views

Handle a great amount of Markers with OpenLayers

My general Problem is to maintain a lot of markers. For the beginning I want to display all Bus Stops of Berlin, Germany and surroundings as Markers. I already got that I have to use a strategy like ...
1
vote
1answer
49 views

cannot click on points in openlayers

I use openlayers 2.13.1 along with Geoserver and PostgreSQL I have a code for a vector layer , in my openlayers like so //style for layer var style_d = new OpenLayers.Style({ 'fillColor': ...
0
votes
1answer
147 views

Draw order (zIndex) of OpenLayers polygons and points in the same layer

My question is similar but slightly different from this one: http://stackoverflow.com/questions/5003349/openlayers-vector-features-z-indexing I have an OpenLayers Vector layer which contains polygons ...
1
vote
0answers
215 views

Updated: Openlayers Vector Layers with Google Map Base Layer (via Grid): Vectors Stick but can't get correct resolution/projection

Revamping this question instead of opening a new one. Previous issue: vector layers were not "sticking" to the map, so when you would zoom in or out the vector layers would "come out" at you. Note ...
3
votes
1answer
167 views

Openlayers vector layer don't draw well on chrome (single tile)

I have singleTiled layer in OL (using chrome). The layer don't draw completely unless I pan the map slowly to the south (here is example how the layer keep drawing itself each time I pan) : ...
1
vote
1answer
53 views

OpenLayers, Get clustered point's val

I'm working on a map with WMS overlays and a lot of markers, my problem is when I try to calculate the average of points clustered, I've found how to differentiate the behaviour and the label text ...
2
votes
1answer
596 views

OpenLayers Vector Layers: adding and removing features VS. redraw/refresh

I am currently using addFeatures and removeAllFeatures in my code to get the desired results and this is working OK. However, I have been asked to ensure that the vector layers are not being ...
0
votes
2answers
118 views

How to Resolve Inconsistent OpenLayers vector position Over Google map

I have an OpenLayers map with a Google base layer and an OpenLayers vector layer on which people can draw their own bounding boxes using the DrawFeature control. I have found that, as you zoom in, ...
1
vote
1answer
66 views

Openlayers Vector Event Popup with Textbox

The Openlayers map here: http://www.dassh.ac.uk/demonstrations/valmer/demo5.html has an event to add a vector layer, plus creates a textbox on the page below. Ideally I'd like the click event to add ...
-1
votes
1answer
309 views

Retrive data from database in openlayer GIS

i am using this code but it shows nothing, whats wrong with this code. <!DOCTYPE html> <html lang='en'> <?php $conn_string = "host=localhost dbname=postgis_21 user=postgres ...
1
vote
1answer
104 views

Openlayers Vector Layers eventListeners: how to specify different data without defining multiple layers

I have a map. It has two origins, and two destinations. The code for one origin is here: vectors_origin = new OpenLayers.Layer.Vector("Origin", { eventListeners:{ ...
6
votes
3answers
236 views

Create interactive map with no server

I have managed to build a great web mapping application using tiles created from GeoWebCache and a custom gridset, but I now need to add an overlay to the base maps. The only interactivity I need is a ...
1
vote
1answer
57 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 ...
4
votes
1answer
190 views

What does vector tiled map mean?

I'm working on an application that renders geoJSON into OpenLayers map. The idea is about not having PNG images downloaded from external services (OSM or Bing) but having geo information in geoJSON ...
1
vote
1answer
158 views

Check if feature is selected (Openlayers)

I wonder if there is a way to check whether a pointfeature (OpenLayers.Feature.Vector) is selected. I read the API, but didn't find any solution. Any idea?
1
vote
0answers
49 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 ...
0
votes
2answers
279 views

OpenLayers: WMS layer above select-controlled vector layer?

Is it possible to display an image layer (WMS or Image) above a vector layer with activated SelectFeature control in OpenLayers? The image layer (radar returns) contains only sparse, semi-transparent ...
0
votes
1answer
429 views

OpenLayers vector does not draw (or re-draw) on zoom level change or layerswitcher off/on

Here is the full code (i'll highlight the important parts after): jQuery(document).ready(function($) { // ...
2
votes
0answers
111 views

Cross-browser marker animation in OpenLayers

Currently I'm trying to implement animated markers in OpenLayers. I'm using PNGs for the markers, set by the externalGraphic style property on an OpenLayers.Layer.Vector. I need to be able to make ...
0
votes
0answers
67 views

vector layer does not render points after modifyFeature

I'm implementing an appication with openlayers 2.12. Gets features from Geoserver after CQL search. Now, when the users clicks on one point/line/polygon, gets textual info via websockets (nodejs) for ...
0
votes
1answer
417 views

provide an alternative “label” when styling vector layer with openlayers

I'm using openlayers 2.12 and I am styling a vector layer using your typical new OpenLayers.Style({ Now, this layer does two things. First , renders polygons from Geoserver, so in the style I have ...
1
vote
2answers
182 views

Custom filters (server side) for Openlayers Vector Layer

I have a vector layer in openlayers with source in GEOJSON (custom php server, which I have in complete control) and BBOX strategy. Vector points contain point sources which have different ...
0
votes
1answer
112 views

OpenLayers Strategies

Can we use the strategies OpenLayers.Strategy.Fixed and OpenLayers.Strategy.BBOX simulataneously on same vector layer?
1
vote
0answers
41 views

Align OpenLayer raster with OS Mapping Vector

I have an OS Vector map of a town in Ireland. When I load the Google Satellite Raster from the Open Layers plugin, the results are slightly off, by about 2m, probably due to ariel persepective. I'm ...
1
vote
1answer
181 views

Add a popup to a Vector LineString in OpenLayers?

Is it possible to add a popup (without a marker icon) to a Vector (LineString)? This is my code, if possible, how to change it to add the popup? I need the popup to display some additional ...
0
votes
1answer
91 views

show dwg,as background not as vector

I have some dwg files that i need to show as background on my map, but the DWG is not need to be vector layers, i need only to show them with out the need of using. if i am trying to convert it to ...
1
vote
0answers
59 views

Can I edit WMS layer or KML layer?

I am using Openlayers and until now i have been using OSM as background and i got points from my db (mySQL) and add them to vector layer, then i could modify them and save it back to the server. now i ...
0
votes
1answer
306 views

Selection problem in WMS layer using OpenLayers

I added 4 WMS layers (three polygons and one have point geometry) from GeoServer on my webpage My requirement is: I have to select a single polygon of one wms layer using a mouse click. After the ...
0
votes
0answers
100 views

OpenLayers Copy Feature without Geometry Duplication

I am working on an OpenLayers project with considerable amounts of geometry data for linestrings. I would like to create a duplicate of the features within a vector layer, but have this duplicate ...
1
vote
4answers
2k views

Displaying a KML File on a Vector Layer in OpenLayers

This should be straight-forward, but I am beating my head over it. KML will not display. I have tried from same server and remote server to ensure it is not a cross-domain issue. The KML file loads ...
2
votes
0answers
207 views

OpenLayers Google v3 and other layers drift apart

I'm stuck. My code works with OSM, but I need it to work with Google as well. The problem is simply that Google v3 and my other layers are not playing well together at all. They don't zoom together. ...
0
votes
2answers
92 views

How to drag a point and then use savestrategy in OpenLayers

Im trying to use the wfs-t in openayers using the savestrategy. I have created a savestrategy and it works when I for example uses the DrawFeature Control to add a point. A new point is added to the ...
0
votes
1answer
144 views

Different Styles Within Vector Layer

Is there any way to configure OpenLayers styling method? I have a vector layer and I would like to style the features depending on a value of a flag variables, so I can't use rules. Lets say I have ...
0
votes
2answers
216 views

add a vector point on OSM map

I have managed to show Lat and Lon function init() { navigator.geolocation.getCurrentPosition(function(position) { document.getElementById('myloc').innerHTML="Latitude: " + ...
1
vote
1answer
566 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
0answers
142 views

OpenLayers Vector Line Feature hard to select

I have a measurement control on an OpenLayers map which allows the user to (unsurprisingly) measure lines and areas on the map. They draw the line/area they want, OpenLayers does the measurements ...
0
votes
1answer
122 views

render kml 10mb KML file cordinates data on OSM map throws stop running script error in OpenLayer.js file

I am trying to render the kml file having 18000 line string data on OSM map using openlayer HTTP strategy. To render OSM map i am using GeoExt.MapPanel and ExtJS 3.4 viewport. The problem is I am ...
0
votes
1answer
142 views

Openlayers Linestring over edge of map

im trying to create a route displayer for ships. But im struggling with the edges of the map. When going from ie. 179* to 2* it displays a line across the entire map, instead of displaying it on the ...
1
vote
1answer
462 views

Drawing pie charts with vectors on OpenLayers?

Is anyone got any examples of drawing pie charts with vectors as markers on OpenLayers ? Cheers,
3
votes
2answers
4k views

How to connect OpenLayers to PostGIS data?

I have read in OpenLayers how to load KML, GeoJSON etc. vector files in OpenLayers. But how can I connect to PostGIS data. If not, why should I upload my data to PostGIS then instead of directly ...
0
votes
0answers
152 views

Display a single country with OpenLayers

Can I display a single country using Openlayers? I'm not trying to restrict zoom levels or . I want only one single country to be displayed. The rest of the world cannot be displayed. My reasearch ...
3
votes
2answers
2k 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
98 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 ...