Tagged Questions

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

learn more… | top users | synonyms

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
33 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
89 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
48 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
13 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
109 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
50 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
45 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 ...
2
votes
1answer
62 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
78 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
81 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
23 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
29 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
44 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
30 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 ...
1
vote
1answer
71 views

In OpenLayers 3, how do I draw an extent as a LinearRect?

In OpenLayers 2, this was an easy feat. I was able to simply instantiate a LinearRect given the coordinates of my BoundingBox, and then add the LinearRect as a feature to a vector layer I had added to ...
1
vote
0answers
27 views

Save Feature is not working for Line feature and Polygon Feature

I am using following code to save feature but that is not working for Line feature and Polygon feature to save new feature on the relevant layer type. But the same code is working on Point feature ( ...
1
vote
0answers
19 views

Zoom to a vector feature in a vector layer

I am using OpenLayers+GeoServer and I have a vector layer in a map with some features I would like to make a zoom and show the map centered in one of these features that I can get by ID. How can I do ...
0
votes
0answers
12 views

Can we read and write WMC in Openlayers 3?

I am experiencing some problems to parse WMC files with OpenLayers2 and I am thinking of moving to OpenLayers 3 for other reasons also: Can we parse WMC with OpenLayers 3 ? Is there any alternative ...
1
vote
0answers
23 views

Openlayers - Maximum number of layers in LayerSwitcher

I am working on a thematic mapping platform showing data at local administrative levels. I have many layers, so I run into problems (see screenshot: http://gisintersect.com/many_layers.png). Is there ...
0
votes
1answer
25 views

Can't save map with different projection in QGIS

I'm using QGIS 2.4 and am opening a shapefile I downloaded (specifically from: http://www.naturalearthdata.com/http//www.naturalearthdata.com/download/110m/physical/ne_110m_coastline.zip). What I ...
2
votes
4answers
107 views

Sites that demo freely available Basemaps

I've seen such sites in the past. I remember seeing one put together by Wm Lerer at a conference a couple years ago. What I'm looking for is a map that demonstrates all (well, at least a lot) of the ...
0
votes
0answers
12 views

openlayer wfs protocall reset on map zoom

By considering wfs-example example. I have added one layer on map with BBOX and savestrtegy and add controls(add,delete,modify and save). wfs = new OpenLayers.Layer.Vector("Editable Features", { ...
0
votes
0answers
15 views

How can I zoom to featureset geometry item

I send GetFeatureInfo request to server with ajax and get the featureset data. I want to zoom a selected feature. Object {type: "Feature", id: "mydata.39025", geometry: Object, geometry_name: "geom", ...
0
votes
0answers
18 views

Save polygon feature type is not working

I am using following code to save feature. But the following code is not working for Polygon Handler but when I changed it as Path or Point that is working fine drawline= new ...
2
votes
1answer
100 views

Dynamically change location marker based on user's input

I have the following code for displaying OSM with a predefined feature. I am using OpenLayers3: var wmsLayer = new ol.layer.Tile({ source: new ol.source.OSM() }); var ...
2
votes
0answers
23 views

Using MapFish to Print vector with filter based style?

Is it possible to define an OpenLayers WFS style, which is based on filters, to MapFishPrint request?
2
votes
1answer
26 views

Zoom to spatial cordinate in openlayer load

I am working on a project that uses openlayer to show shapefiles from the Geoserver and then show them on google map. The only problem is when the page loads, I want to go to the spatial cordinate and ...
1
vote
1answer
36 views

Select buildings in a html map and get osm

I have my own database of buildings with the architects and some metadata. In the past I tied them manually to the ID of openstreetmap. But now I need a map where I can click on a shape of building ...
2
votes
1answer
113 views

openlayers display projection

I'm displaying coordinates in epsg:900913 using ol.control.MousePosition() with OSM. I'd like to convert these on the fly in another epsg:2154. I call in the header : <script ...
1
vote
1answer
70 views

Display data from geoserver on click map with openlayers

I tried to display data with popup from Geoserver or Postgres to my map, but it dosen't work at all. Can anyone please help me? I used this code: function Info(e) { if ...
0
votes
0answers
17 views

Openlayers map changelayer event firing twice for params

I have registered changelayer event of my map. var registerEvents = function () { map.events.register("changelayer", null, onMapLayerChanged, true); }; var onMapLayerChanged = ...
0
votes
1answer
33 views

OpenLayers Drag&Drop a pin to select position?

Is there an OpenLayers example that allows the user to set a position with drag&drop. I would like to have a pin and set the position after the user drags & drops the pin to a new position.
0
votes
0answers
18 views

Openlayers complex markers

I have an example that displays an image as well as a string for each marker. My designers want the string to be displayed on top of the image and I don't know how long the string can be. Also I need ...
0
votes
0answers
52 views

OpenLayers 3 and Interactions - Select and Draw

I'm trying to make small app with OpenLayers3. I want to use two interactions - select and draw. Unfortunately when selet adding it's style to draw and remove other (selected earlier) features from ...
1
vote
0answers
67 views

Openlayers heat map not displaying properly in html

I was wondering if you could help me with something I am trying?? Created a heatmap from a sql point table using sld in GeoServer. Displays fine as a preview:- It looks tiled when I publish it to ...
1
vote
0answers
28 views

Add and Remove layers in openlayers on-the-fly

I am using OpenLayers 2.13.1 in my application and I have a couple of layers which need to be added/removed to the map on-the-fly. Here are the core codes: var layers=[layer1,layer2,layer3]; // ...
1
vote
1answer
25 views

Change Control MousePosition displayProjection

I added mouse control on the map with Lat/Long as display projection. I added a dropbox on the map for the user to choose a coordinate system (3 choices). Depending on the selection, I would like to ...
1
vote
0answers
41 views

Using Geoserver

I am new to GIS and interested in using Geoserver. I have had a look at tutorials and read some books on this but still feeling clueless. I intend to use C# to accomplish some tasks eg, plot points on ...
2
votes
1answer
48 views

Layer name in OpenLayers 3.0

I'm looping through all the layers in my map using map.getLayers().forEach(function(layer, i) { ... }); I'd like to get the name of each layer but I haven't been able to find anything in the ...
1
vote
1answer
32 views

Display data from postgresql on click map [duplicate]

I work with openlayers and geoserver. I'm searching for code that when I click on a point of a layer on the map, a popup window appears that contains information from the database (postgres) for this ...
1
vote
0answers
23 views

WMTS not numbered from 0/0 with OL3js

I am requesting a WMTS which does not number tiles from 0/0, but from some arbitrary given number. Is it possible to deal with this with openlayers 3? I thought WMTS should have defined first tile of ...
0
votes
1answer
12 views

Is OpenLayers compatible with OGC WKT SRS definitions?

I'm trying to use WKT in OpenLayers. Proj4js seems to have no problem with this but the OGC definition describes the units as "US survey foot" whereas OpenLayers has an INCHES_PER_UNIT definition of ...