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

learn more… | top users | synonyms

1
vote
0answers
22 views

wrong layout when using Openlayer plugin

I'm drawing a simple map and I noticed a weird problem. Very briefly: I have a simple shapefile (a region) and the Google Satellite layer of the OpenLayer plugin activated on my map canvas. On the ...
0
votes
0answers
34 views

Can I use Node.JS as backend programming language combined with Openlayers and postGIS? [closed]

Would you recommend it or there is another one that works better with those?
1
vote
1answer
66 views

How to transfer layer data from OpenLayers to PostGIS database or QGIS?

Supposing I have a created some layers in OpenLayers containing only Geometry Points, how do I transfer my data to a postGIS database? Is there a way to turn pure javascript/openlayers to a table in ...
2
votes
1answer
66 views

Openlayers creating RegularPolygon that is too small then return false

sorry my English very pool and just can type few word... My project has to use imagelayer to show map , it can create box on map, box will be a area to put device marker on top , but when the box ...
2
votes
0answers
38 views

How to plot heatmap/locations in Geoserver & Openlayers map from the Lat/Lon data of PostGIS table?

I am using Geoserver, Openlayers, PostGIS for Geospatial web implemenation. I have an Indian map shape files for States, Districts, Talukas. I am able to generate a map with states, districts, ...
1
vote
1answer
354 views

Why use a database when you can have all of your data in javascript/openlayers?

I have a really simple and basic question. First of all, I have to mention that I am pretty new to web applications and GIS. I am working on a web application using Openlayers, Postgresql/postGIS and ...
1
vote
0answers
24 views

Saving Changed Features from OpenLayers does not work because GeoServer claims Layer to be read-only

Trying to save a few changed Features in OpenLayers back to my geoserver (2.4.4) with saveStrategy.save(). Features don’t change. What I get in the geoserver protocol is: ...
1
vote
1answer
25 views

openlayers 2 can't close popup

I have a map with points from GeoJSON file. I created a default style and a select style for these points. I created a popup with attributes from GeoJSON when clicking on a point. All works fine, ...
0
votes
1answer
47 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
50 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
33 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
50 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
24 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
56 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
25 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
19 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
23 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
33 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
59 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
2answers
74 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
55 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
51 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
49 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
39 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
31 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
77 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
31 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
20 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
108 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
46 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
15 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
38 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
19 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 ...