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

learn more… | top users | synonyms

0
votes
1answer
44 views

Setting Base Layer in OpenLayers 3

I know there is a setBaseLayer function in OpenLayers 2. Is there a way I can accomplish that in OpenLayers 3?
2
votes
0answers
13 views

Pause OpenLayers interaction until pan complete

I have an OpenLayers map with thousands of vectors and a tiled strategy for retrieving them. I rarely get above 15fps panning the map, which is undesirable. I notice a similar Google Maps application ...
1
vote
1answer
44 views

How to set an x-offset for my whole linestring/layer?

Supposing I have a layer imported from GeoServer succesfully, and it looks like this: (some will remember me from my previous question. And, yes, that is my city Volos, Greece. There is a map and a ...
0
votes
1answer
49 views

geoserver wms capabilities URL for google maps

I like to use google map in my application and also i want to get that by wms cascading of geoserver. To make use of cascading I want to know the capabilities url. So please any one guide me where i ...
2
votes
1answer
43 views

Non-default icon of OpenLayers Vector Feature

thats propably some minor problem, but i have deadline above my head and i can't get any clue whats wrong with my code, so I decided to come here for help. Im changing from markers to vector layer and ...
1
vote
0answers
32 views

Get info from WMS layer with Openlayers mobile jquery? [closed]

How to get feature info from WMS layer (geoserver)? I am using openlayer jQuery mobile. I've already called the WMS in jQuery mobile, but how to get feature information when clicking the attribute.
4
votes
3answers
58 views

Connection between OpenLayers and GeoServer is faulty

Hello so I have connected my Geoserver to my OpenLayers website and it seems like something is wrong about the connection. I added a WMS layer in Javascript like this: But when I load the page ...
1
vote
1answer
49 views

How to get longitude and latitude in degree units

When i navigate on my map , I receive the latitude and longitude, but I want them to be specified in degrees. I don't know what should I do please help this is my code: function ...
2
votes
0answers
21 views

using mapserver with open layer

I have implemented mapserver in windows environment and i get map from following url ...
1
vote
0answers
21 views

OpenLayers - map.zoomToExtent() zoom to wrong bounds

I wonder what could be the cause of that weird behaviour. I create a bounds and do a zoomToExtent() on it but the map zoom to a wrong bounds a lot smaller than what I expected. Only the left (xmin) ...
1
vote
0answers
29 views

Openlayers 2.13 not calling correct XYZ tiles from couchdb?

End goal is to be able to access a pouchdb of map tiles on phone off-line that has been synced from remote couchdb of map tiles. Openlayers is not calling the correct document from the couchdb to ...
1
vote
0answers
19 views

Openlayers permalink not working

Basically I have a permalink which contains the co-ordinates of a temporary layer when I enter this permalink into the browser the layer shoes and then goes. I used use a vector layer the permalink ...
3
votes
2answers
33 views

SetVisibility(false) does not work

layer_gesamt = new OpenLayers.Layer.WMS( "Geoserver layers - Tiled", "http://mygeoserver/xyz/wms", { LAYERS: 'myLayer', STYLES: ...
1
vote
1answer
55 views

How to get layer type in OpenLayers 3?

I would like to iterate through all of the added layers in an ol.Map instance and only select the vector layers. So far I could get the individual layers with the a property of the resulting object of ...
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
0answers
17 views

Using OpenLayers' Refresh strategy for GeoJSON

I am trying to use the Refresh Strategy reading a GeoJSON file in OpenLayers, however it doesn't work (but it works perfectly using for instance .Fixed() strategy), here is my code: var ...
0
votes
1answer
22 views

Geoserver security and application security separation

I am using geoserver that publises WMS, WFS services to clients. I am using geoserver services in an OpenLayers application. My application will requiere username and password authentication. 1 - ...
0
votes
0answers
9 views

Calculating z coordinate for longitude, latitude Google Map [duplicate]

I have a point (lon, lat) values. Is there any service to calculate Z coordinate of this point. Google service, OpenLayers service or others.
1
vote
0answers
32 views

Help embedding Openlayers map in Eclipse BIRT report

i have this code, it displays the zoom buttons only but it doesnt display my map. what could be the problem? <html> <head> <script ...
2
votes
0answers
58 views

Comparing mapping APIs

I am planning to write a thesis about mapping APIs and compare three of them (Google Maps API, Leaflet and OpenLayers) or four, if you consider OL2 and OL3 as different APIs. I am planning to make 3 ...
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 ...
1
vote
0answers
52 views

How to disable Google map zooming animation effect?

I am using Openlayers mapping library in my application. I have integrated Google map V3 & added other several WMS overlays, Vector layers etc. Every thing working fine. But I am facing big ...
2
votes
0answers
33 views

Correct syntax for retrieving features from GML format in OpenLayers

Yesterday I made with qgis the shapefiles of my town and now I wanted to add them in a web application I'm making with OpenLayers. The problem is that, while it loads them perfectly with the wms ...
2
votes
0answers
26 views

PointStacker - Random locations at different zoom level

I'm applying PointStacker transformation on one of my layers using Geoserver 2.5.2 and OpenLayers 2. I know, that I have 7 datapoints located on the exact same location. However, when I change the ...
0
votes
1answer
26 views

Geowebcache tiles hiding vector layers

I'm using Openlayer 2.13, Geoserver 2.3.5 for Development. I have a Geowebcache layer as base layer And one vector layer for showing route(Please check the attached image). If I drag or zoom in to ...
1
vote
1answer
47 views

Building web application to get PostGIS query from user and view result map using GeoServer via OpenLayers?

I'm a newbie in web-map application area. I just found the small application in this tutorial interesting I am a bit confused, because when i publish a map using geoserver and openlayer, I have to ...
1
vote
0answers
26 views

Routing and OpenLayers: How would you connect a point to another through a 'road' node? [duplicate]

So my question is in a routing application,probably using osm as base layer, how do I get a line-string that goes through the road and not directly from one point to another? Is there any ...
1
vote
1answer
47 views

Get geometry from OpenLayers.Control.WMSGetFeatureInfo JSON

I need to store the geometry of a certain feature with OpenLayers.Control.WMSGetFeatureInfo and i'm using these parameters to get it in json format output:'features', infoFormat:'application/json', ...
1
vote
1answer
38 views

Bubbles getting shifted for WMS getMap if POST is used instead of GET, using gutter in both cases

Bubble positions are wrong in case of WMS POST request. For example, a bubble is getting shifted from 31.82, -96.84(lat-long) to 31.77, -96.77. I am using openlayers 2.13.1. The layer creation Code ...
0
votes
1answer
30 views

SLD specification for a vertical line on every line turning point

You can define a vertical line in SLD like this: <LineSymbolizer> <Stroke> <GraphicStroke> <Graphic> <Mark> ...
0
votes
0answers
8 views

how to use the overview control of openlayers in other platform like skyline or others?

As the title said,is there a possible way to use the overview control of openlayers in other platform like skyline or citymaker or other 3Dplatform? What i need now is that i want to make an overview ...
0
votes
2answers
73 views

How to remove roads from Google satellite hybrid map in OpenLayers?

I am trying to display Google satellite map in Openlayers. So, I added Google Satellite Hybrid map. My problem is, I need to display labels(like POI, place name etc) but don't need any roads & its ...
0
votes
1answer
30 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
0answers
42 views

OpenLayers, symbol every 100 pixel on line symbolizer

First: the above banner links this to How to use a sld file with Openlayers using OSM data? , but look update2. I would like to add rail-road hatching to my OpenLayers map with a Symbolizer. Example ...
0
votes
0answers
12 views

Change the Openlayer drawing operation for different ovelay

I am using the DrawFeature control in OpenLayer 2.13.1: polygon = new ol.Control.DrawFeature(map.baseOverlayLayer, ol.Handler.Polygon); polygon = new ol.Control.DrawFeature(map.baseOverlayLayer, ...
0
votes
0answers
19 views

Clustering on Geoserver layer appearing out of the map

We are using Geoserver and openlayers to display maps. Geosever layer provides list of sites, since there were many we did a clsutering using Styles. But the problem is when we zoom out completely ...
2
votes
3answers
106 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 ...
1
vote
0answers
44 views

Triggering events when loading and finished loading from WMS

I'm currently creating a webgis application using OpenLayers 3.0.0, and I'm trying to display a loading gizmo when loading layers from a WMS. I've found examples for OL 2.1.0 that registers ...
0
votes
0answers
14 views

openlayers2 customize layerswitcher

In a map, i added control by defaut : var map = new OpenLayers.Map({ div: "map", projection: "EPSG:900913", controls:[ new OpenLayers.Control.LayerSwitcher({ ...
1
vote
0answers
37 views

LayerSwitcher() not working with Group Layers in Geoserver

I created a layer group. then previewed the layer using the GeoServer Layer Previewer and it all worked nicely.But Layer switcher is not working properly.layer switcher doesn't show any layers Here is ...
0
votes
0answers
21 views

OpenLayers vertices disappear (lose style?) when programmatically unselected

boundaryStyleMap: ( -> styleMap = new OpenLayers.StyleMap 'default': @get('activeStyle') 'select': @get('editStyle') 'temporary': @get('editStyle') 'vertex': ...
1
vote
0answers
18 views

How does TimeSlider Control work in OpenLayers 2?

I would like to use the TimeSlider control of Openlayers in version 2 for WMS-Time, but there is no documentation or examples. Could someone help me understand how this control works, I would ...
2
votes
1answer
51 views

Send query to ArcGIS REST from OpenLayers app

I am using OpenLayers application and sending WMS query to my geoserver. My polygon is sending to server and gets intersected features. var feature = Mypolygon; var filter = new ...
3
votes
2answers
75 views

KML, OpenLayers: attribute imported as string rather than number

I apologize for what is, I'm sure, a very village-idiot question, but I think my question is simply too dumb for the answers I've found on this subject. I've used QGIS to save a shapefile (.shp) file ...
1
vote
2answers
76 views

How to validate OpenLayers area calculation using PostGIS?

I am working on a GIS API that work on top of OpenLayers. I have a feature that calculates the area of a drawn polygon. I have tested it on the browser and the areas I got, appear to be correct. For ...
0
votes
0answers
17 views

Using the OpenLayers.Control.LayerSwitcher

I'm using Geoserver and Open Layers. I'm trying to serve up a polygons (counties) and lines (roads). I can bring both of these elements in together fine. I'm trying to implement the LayerSwitcher, ...
1
vote
0answers
22 views

How to change color of points dynamically from a geoJson in openlayers

I am new in Openlayers and what I am trying to do is to dynamical give a color to some points read by a GeoJSON file. I am taking inspiration by this post How can I add an infowindow to an ...
1
vote
0answers
26 views

Adding GeoRSS feed as point layer using OpenLayers?

There may be a simple answer, but I have been looking on the internet for answers and trying different things. I want to display this RSS feed as a point layer in OpenLayers 2.11. Can anyone please ...
1
vote
1answer
41 views

Adding vector layer over WMS using OpenLayers?

I am trying to add vector layer to my map from a GeoJSON file stored in the same directory as my maps index.html. However It wont work. Is there something wrong with my syntax? My code: ...
0
votes
1answer
27 views

How to Change Attribution Parameter of WMS Layer Dynamically in Openlayers

This might be a noob question. I have a wms layer in OpenLayers 2.13.1 with attribution: "some_text" set when it's added. This is working fine, the attribution shows up fine in the map div. My ...