OpenLayers is a JavaScript library for creating dynamic map widgets for web sites.

learn more… | top users | synonyms

2
votes
2answers
81 views

Oracle / GeoServer / WFS-T / Openlayers many polygons as one feature

Newbie question regarding Oracle / GeoServer / WFS-T / Openlayers. I am creating a table that will hold geometry features a user creates/updates. My question is, I would like to have just one record ...
0
votes
1answer
14 views

toggle visibility of a Layer in Openlayers 3(!) with a Checkbox

I have some vector layers on top of a tiled layer and a checkbox for each vector layer. I want a layer to be visible if it's checkbox is checked and vanish if it gets unchecked. I tried to call a ...
0
votes
1answer
1k 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 ...
-1
votes
0answers
19 views

Strange behavior when zooming in OpenLayers? [on hold]

I face a very strange behavior when zooming to my map. I use openlayers library to create a web app. I have one google layer on my map on which I bring some data from geoserver with a WMS request. I ...
1
vote
1answer
12 views

Can I style a feature point based on its id?

I wonder if its possible to style a feature point which belongs to an Open Layers vector layer with points by using its id. For example I have in this layer 3 points with ids: a,b and c. Right now ...
0
votes
2answers
534 views

OpenLayers WMS - TypeError: this.resolutions is undefined

I'm trying to setup a map with WMS and WFS Layers by using Geoserver. However, when I'm combining WFS and WMS (with some Google basemaps) together in one map I got following error in Firebug: ...
0
votes
1answer
167 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
1answer
648 views

How to dynamically measure and display radius of circle in OpenLayers?

I want to give my user the ability to click on the map and give him a dynamic circle drawing tool which also reads out the radius measurement. That way the user can see how big the circle he creates ...
0
votes
2answers
28 views

How to label GeoJSON polygons from properties using openlayer 3?

I have a working script to show GeoJSON feature and style them by properties/attributes. But when I tried label the feature browser said 'feature is not defined'. Can anyone help with a working label ...
2
votes
2answers
295 views

Printing possible for openlayers GeoJson WFS with Mapfish printing service and wkhtmltopdf?

I searched lots of places but I couldn't find proper examples or documentation to do printing using Mapfish Printing service or Wkhtmltopdf. My application has a few WFS layers from openlayers and ...
1
vote
2answers
151 views

Mapserver WMS, features clipped and positioned

How can I prevent features being clipped at tile boundaries in an WMS layer as per the picture The arrow and line segments are being clipped when viewed in openlayers as a WMS layer. The map file ...
0
votes
1answer
154 views

Mapfile SYMBOLSCALEDENOM and SIZEUNITS (miles) 200: Keep SIZEUNITS while circles change size based on zoom

I've been trying to understand how to keep the SIZEUNITS at 200 while the circles appropriately adjust based on zoom level. Thought I had this working properly but turns out I did not. You can see ...
2
votes
1answer
23 views

Ol3 displaying a vector layer

I have GeoJson that happily displays on GeoJson.IO that I am trying to display on a Vector Layer on an Open Layers 3 Map. The GeoJSON is in EPSG:4326, the Map is in EPSG:3857. My Code is: view = ...
0
votes
1answer
236 views

How to Represent large data using google map api in javascript

1) I am trying to represent data using bins as the data was too large to display each and every point simultaneously. but the problem with this also existing if the no of bins are getting larger ...
0
votes
0answers
8 views

Style features of vector layers with different color

I have created a vector layer which gets data from a PostGis database using geoserver and openlayers. I have also done some simple styling of the line features but now I am trying to do something a ...
0
votes
0answers
30 views

ArcGis Server 10 - GetFeatureInfo issue

I've got an OL 2.13 client where I use a hack on GetFeatureInfo to be able to get objects within a bounding box. I can't use WFS which would be the natural choice for this scenario, which forces me to ...
2
votes
1answer
2k views

Layer visibility using maxscale minscale not working

I'm using Openlayer and Geoserver. I have a series of layers that have a scale parameter like: 1:50000-1:25000 where 50000 is the max scale while 25000 is the minscale. I have a map like in this ...
0
votes
2answers
160 views

Add features to vector layer from WFS protocol read response

Im trying to add the features i get from a WFS query using the WFS protocol. But something doesnt work. I have looked at other post with people having similar problems, but their solution dont fit ...
2
votes
1answer
353 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. ...
-1
votes
0answers
6 views

how to group the departments in ZA (administrative area) in openlayers 3? [on hold]

My supervisor asked me to group department admenstratif area and I do not know how to do it
1
vote
2answers
926 views

Capturing/overriding mousewheel zoom in openlayers

So I've created a map in openlayers and I am setting it up so that there are only certain zoom levels a user can see. I have the code created to handle forcing a user to the next acceptable zoom ...
2
votes
2answers
3k views

Openlayers & WMS - GetFeatureInfo problem

I'm making a small project but I encounter some problems. Let me explain that : Having generated mapfile with mapserver and they are viewable by the openlayers interface, I would like to make me ...
7
votes
1answer
358 views

Looking for free / open source Lidar web viewer?

I have lidar data which I want deploy my users using web viewer. I will probably hold the data in PostGIS (not sure yet). Is there good open source/free lidar viewer that I can integrate with ...
0
votes
2answers
243 views

How to set default style of layer using rest api in Geoserver

Hello friend, I want to change the default style of the layer in Geo server using the REST API.For this i get this code curl -v -u admin:geoserver -XPUT -H "Content-type: text/xml" -d ...
4
votes
1answer
373 views

Grouping of layer with GeoServer and OpenLayers

I need help to display layers group/non group 1. with checkbox to select layer or group 2. icon/symbol for each layer. I saw example codes from OpenLayers where it's adding the layers statically. ...
1
vote
1answer
357 views

Get feature from two overlapping KML layers doesn't work

I did an implementation similar to http://openlayers.org/dev/examples/sundials.html The difference is that I have two or more kml layers at the same location and want to show their information ...
2
votes
2answers
571 views

ArcGIS REST export map features as geoJSON

Is it possible to export the features from a map as geoJSON using an ArcGIS REST service? I'm trying to make a vector layer in OpenLayers based on the output from the map's present view based on a ...
1
vote
1answer
228 views

problem with popup conclusion on pressing a marker

I have markers on pressing to which popup has to be brought. how to make it? (coordinates of markers undertake from a DB) var map; var markers; function ejecutar() { init(3); ...
2
votes
4answers
191 views

Openlayers Vector Rendering

I've just added a couple of more WFS backed vector layers to a map and the performance has dropped. Whilst debugging this I've noticed that openlayers is considering every feature in the visible ...
0
votes
1answer
160 views

WMS - Export Retrieved XML Data

I use WMS layer in my app and could successfully retrieved Feature Info by click like so: http://openlayers.org/dev/examples/getfeatureinfo-control.html My question is: Is there any way to export the ...
1
vote
1answer
463 views

Problem creating a popup in mobile openlayer

I'm trying to use the mobile version of openlayer, unfortunately I could not use framedcloud in it, I could only create a square popup does not look very aesthetic, besides the main need is to ...
2
votes
1answer
130 views

why distanceTo gives different results?

i am trying to get distance between two polygons and somehow i get different distance, depending on how I call distanceTo a.distanceTo(b) != b.distanceTo(a) should it be like that? ...
1
vote
1answer
710 views

How to disable all mouse event in openlayers' map div?

version: OpenLayers-2.13.1 brower : IE8 (I Hit it!!! But I need to work on it) I create a div with id 'map' to display openlayer map. Sometimes, I need disable map div catch any mouse events, let me ...
0
votes
1answer
15 views

Openlayers Vector Layer Features are empty even after DrawFeature executed

I am new to Openlayers and Javascript. I am creating a web map that will allow users to draw shapes on top of a base map. I'm trying to figure out how to access the coordinates of the shapes that are ...
0
votes
2answers
3k views

How to configure Proxy.cgi file for Geoserver On Tomcat?

I have a web map application in my local machine(windows xp and dont have IIS) and I have postgis data in Geoserver on Tomcat (Ubuntu). To get the WMSgetfeatureInfo, I have configured the proxy.cgi ...
2
votes
3answers
2k views

OpenLayers GetFeatureInfo for GeoServer Layer Groups

I've created a GeoServer layer group. I'm using OpenLayers.Layer.WMS to retrieve the layer group, and this works fine. In addition, I'd like to pull feature info for the layer. For this, I'm using ...
1
vote
2answers
566 views

How to trigger a map click event?

I have a map with some markers. On clicking a marker, a popup would appear and on clicking the map, any visible popup would be hidden. I want to hide any currently visible popup upon clicking a marker ...
0
votes
0answers
36 views

How to organize database with objects having GPS coordinates (in radians) [on hold]

I have a huge database of different objects organized in tables. For instance photos in one table and metadata of each photo in other. Most of them have their GPS coordinates in radians stored as a ...
0
votes
0answers
3 views

Binding JqxGrid and Openlayers map

I want to represent the layer features in Table format using JqxWidgets. How to bind the jqxGrid with Openlayers 2.x map (i.e., WMS layer). Please help out this.
1
vote
0answers
5 views

WFS layer using isWithinDistance function in SLD?

I want to create a cector layer. After querying the layer, if any two of the features are within 300 meters distance, I want to join those two lines and give buffer around the line and display. Is ...
0
votes
0answers
10 views

display thematic map using openlayers

iam displaying map from mapfile(mapserver) in c# using openlayers mapfile is connected to postgres it is working well but now i want to diaplay thematic map using the postgrs database using ...
7
votes
2answers
570 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 ...
0
votes
3answers
262 views

WMSGetFeatureInfo Not Returning Results

I am having a problem getting the results back from a WMSGetFeatureInfo call to my GeoServer. Using OpenLayers 2.12, GeoServer 2.4.0, Windows Server2008, and Microsoft IIS 7.5 with Application Request ...
2
votes
1answer
425 views

combine two OCG filters in Openlayers : ERROR: invalid input syntax for integer

i need to combine two OCG filters. each one works fine separably but if i combine them using Filter.Logical.OR, the first one works only. var c_filter = new OpenLayers.Filter.Logical({ type: ...
2
votes
3answers
1k views

OpenLayers.Format.GeoJSON throws an exception “SyntaxError: JSON.parse: unexpected character” for valid JSON

In my GeoExt client, I have the following line that retrieves JSON data from a web service into a FeatureStore: var store = new GeoExt.data.FeatureStore({ layer: route_layer, fields: ...
1
vote
1answer
201 views

How to use OpenLayers Geolocate with the OpenGeo Suite Client SDK?

I’d like to have GPS functionality added to my OpenGeo Suite Client SDK application. From what I understand it should be possible to use the Geolocate control from OpenLayers. Preferably there ...
3
votes
3answers
66 views

Difference between GeoServer and OpenLayers

I recently installed GeoServer and downloaded OpenLayers also. I am a bit lost about which one to use when it comes to add functionality in my web map. For example, I want to add layer switcher, ...
0
votes
1answer
22 views

OpenLayers measure map rendering time

I am using OpenLayers version 3 (answers with ver 2 are also OK) and want to measure how long it takes to render the vector layer. So, I have a vector layer with features: var vectorLayer = new ...
0
votes
1answer
953 views

Marker layer not responding to events in OpenLayers

I have multiple layers in OpenLayers: three vector layers, one google map layer, and a marker layer. I registered feature selected event to all three vector layers (which works fine, but btw is that a ...
1
vote
1answer
23 views

How do I disable mouse scroll zoom in OpenLayers 3?

I'm trying to override it 'cause it's so dang sensitive. Bonus points if you can also demonstrate a elegant way to override, but, well, I can probably figure that out.