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

learn more… | top users | synonyms

1
vote
1answer
388 views

WFS in Openlayers

I am new in Openlayers and web services in general, but until now I have managed to create a WMS (published by ArcGis to a server provided by uni) and connect it with Openlayers. Projection etc works ...
1
vote
1answer
18 views

Get a list of property elements using GeoServer

I'm using GeoServer with openlayers and I want to build a filter check-box dynamically, depending on the elements of this column: How can I query GeoServer so that I get a list of the different ...
0
votes
1answer
32 views

OpenLayers: Show a styled title similar to pop-up but always visible?

I need to basically create boxes with titles inside, set to different styles (different coloured box, different FontAwesome icon etc.) set to specific points on the map, ideally replacing the label ...
1
vote
0answers
16 views

How to draw WMS layer with Attribute-Based Dynamic SLD to HTML Canvas?

I'm working on an app using geoserver and openlayers 2.13.1. I have several wms layers and I need to export whatever in my openlayers map div as an image. After researching, I found this blog: ...
0
votes
1answer
46 views

How to calculate the Azimuth between two points in PostGIS?

I have a GIS API based on OpenLayers. I have been trying to implement Azimuth calculation in JavaScript and I needed some way to calculate the Azimuth in order to perform tests. I started using ...
0
votes
1answer
129 views

How to drag label using DragFeature or ModifyFeature?

I am new to openlayer. I have seen the examples in which DragFeature is able to move my points, polygon and lines. But when it comes to test the Label moving in IE8, then the dragging functionality ...
1
vote
1answer
35 views

OpenLayers 3: “goog is not defined”

First time using OpenLayers. I am getting an error "goog is not defined". Here are the steps I performed: Downloaded and unzipped v3.0.0-gamma.4 It created the following directory structure: ...
0
votes
1answer
23 views

Cluster numbering in openlayers

I am using openlayers 2 for making clustering on vector point data for which I am a beginner. I have installed geoserver locally via opengeo suite and using 'world_cities' dataset as an example. I ...
2
votes
4answers
2k views

Modify existing library from OpenLayers (ZoomToMaxExtent)

I would like to modify ZoomToMaxExtent.js library from openlayers so as when I click the button the map will display only Great Britain and not the whole world. I am having problems creating the ...
1
vote
1answer
12 views

Why does OpenLayers render these two AGSCache layers differently?

I am using OpenLayers to try to display aerial maps for two cities (McHenry, IL and Cupertino, CA). By following the tutorial for OpenLayers I have gotten my McHenry example to render correctly, as ...
0
votes
1answer
388 views

openlayers search on feature

map = new OpenLayers.Map('map', options); var tiled = new OpenLayers.Layer.WMS( "Kaski", "http://192.168.1.236:8080/geoserver/Kaski/wms", ...
1
vote
0answers
16 views

Trying to display GeoServer layer controls but nothing is coming?

I am a beginner with GeoServer trying to display layer controls but nothing is coming. <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>GeoServer Layer</title> ...
1
vote
2answers
101 views

How to specify one layer among many with getWMSInfo?

I am using getWMSFeatureInfo with multiple point layers. When I click on a point on map, how to specify which layer that point belongs to?
1
vote
0answers
16 views

Openlayers pan/zoom on windows 8 app

I'm building a windows 8 js application with an Iframe that uses openlayers with google as the basemap. Everything is working except for the map navigation. When I try to pan or zoom with my finger, ...
0
votes
1answer
94 views

select (click) labels in openlayers

I have the following style for an OpenLayers vector layer. Color and Name come from Geoserver/PostGIS. I red that setting labelSelect to true, user can also click the label, not only the point and ...
0
votes
0answers
12 views

How to make a popup containing links?

I have a list of links taken from a GeoJSON file. What I want to do, is program a popup with all these links inside, with OpenLayers. So, I wrote a function which returns a string containing HTML ...
1
vote
1answer
135 views

How can I merge two lines to one via OpenLayers?

I have a tool on the map that lets the user draw a line. Now I want to give the user the option to split the line to multiple lines, to join them back together to one line later. How can I do that ?
1
vote
1answer
9 views

Problems while rendering with Atlas

when I export my data genereated with the openLayers using Atlas rendering is always incomplete. Atlas is rendering too fast so that the data from openLayers is not completely loaded. Do anyone ...
0
votes
1answer
37 views

Problem with OpenLayers Tile Stitching Printing - All Black Image

I am trying to get an image of my OpenLayer application. I am using this http://www.mapsportal.org/olprint/ and http://trac.osgeo.org/openlayers/wiki/TileStitchingPrinting as a guide. When I click ...
2
votes
1answer
25 views

openlayers leaflet and popup

I am working on a map mixing openlayers and leaflet librairies (it is possible, correct ?). I am such a beginner that, after lots of readings, I thought creating popups was less difficult for me ...
1
vote
0answers
19 views

OpenLayers - Add points at vertices of line while drawing line

I would like to create points while I draw a line on my map in OpenLayers. That is, at each vertices of a line and at the end points there is a shape like a square, circle, or diamond. I have this ...
0
votes
0answers
39 views

Proxy.cgi for OpenLayers reading from GeoRSS but not from WFS

I'm having trouble with the standard proxy.cgi written in Python for OpenLayers. Here's my code: #!C:/Python27/python.exe -u """This is a blind proxy that we use to get around browser restrictions ...
0
votes
0answers
13 views

using WMS feature with OpenLayers object

I am sending query to a WMS address URL and getting results like following. data: { features: [...], totalFeatures: 2, type: "FeatureCollection" } I want to use features to calculate their ...
1
vote
0answers
11 views

Open Layers serverResolutions on WMS don't limit layers loaded

I'm building an animation that show an animation of +/- 40 WMS layers. This unfortunately gives some memory issues with OL 2.13 in all browsers but only in IE for OL 2.12. To circumvent this problem ...
1
vote
1answer
35 views

openlayers display labels

I am displaying and labeling a polygon Layer using a geojson file and the field nom_comm. I would like to label the polygons between two scales i.e. two zooms. (So to speak, labels are to be ...
2
votes
3answers
197 views

How to change 0,360 WKT string to -180,180?

I'm reading POLYGON WKT strings using OpenLayers.Format.WKT().read(). The polygons use 0,360 longitudes but my map is -180,180. When I display the polygons on the map they are displayed outside of the ...
1
vote
2answers
536 views

502 Bad Gateway

I am trying to access the featureInfo in my application and I keep getting 502 Bad Gateway Network error. In teh console log under the response tab I am getting this error, This proxy does not allow ...
0
votes
1answer
320 views

Read GeoJSON with openlayers

I generated a GeoJSON a projected table in EPSG: 4326 domeu postgis SELECT ST_AsGeoJSON(geom) FROM "onibus" I put in the www folder on my server I'm running geoserver locally my pages are also in ...
0
votes
0answers
13 views

OpenLayers 3 TypeError: a is null loading WMS Layer

I am trying to load a WMS Layer and am getting the following javascript error: a is null (ol.js:145) Here is the code: <!doctype html> <html lang="en"> <head> <link ...
0
votes
0answers
21 views

How to open a url by clicking on map? [closed]

Hi i published some layers to geoserver and i want to load specific url by clicking on the map canvas. I have already put the url paths in the puplished layers attribute tables.
2
votes
1answer
28 views

Extract a polyline f rom a geoserver shapefile

I've been Googling my question for 3-4 hours now but I couldn't come up with an answer. I have a GeoServer which contains a shapefile with some roads on it. Is it possible to programmatically query ...
0
votes
0answers
11 views

openlayers clickevent for undercoat features polygon on multiple vector layers

I'm using two timers that give me coordinates and some data for my features (Sensors(de Sensoreinheit) & receiving unit (de Empfangseinheit)), deleting all features on the Layers and placing new ...
2
votes
0answers
22 views

Dividing a polygon into two OpenLayers

I'm using OpenLayers to draw a polygon to my users. I want the ability to implement through a line, split the polygon into two, with the cutoff line that the user drew. Does anyone know if this is ...
1
vote
0answers
17 views

Openlayers text symbology is not being shown

I have a Vector Layer in a .json file: { "type" : "FeatureCollection", "features": [ { "type": "Feature", "properties": { "Station_Id":107, "NAME":"ARDEBIL(F)","ELEVATION":"1314.3"}, ...
2
votes
1answer
1k views

GeoServer GetCapabilities Not Working

I am trying to learn how to use the OpenGeo suite by following the tutorials on the site. The one I'm currently trying to follow is http://workshops.opengeo.org/geoext/stores/capabilities.html. Most ...
0
votes
1answer
360 views

how to display the coordinates of a openlayers map with a jquery in my asp.net textbox?

this is my initmap.js OpenLayers.Control.Click = OpenLayers.Class(OpenLayers.Control, { defaultHandlerOptions: { }, initialize: function (options) { this.handlerOptions = ...
4
votes
2answers
75 views

Feature not added to KML Vector Layer in Firefox

UPDATE simplified with JSFiddle example: here is the most simplistic JSFiddle showing what I mean: http://jsfiddle.net/eflowbeach/75eq1mqe/ You can see in Chrome and IE that the feature appears, in ...
1
vote
2answers
608 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($) { // ...
3
votes
0answers
15 views

OpenLayers.Renderer.Symbols custom named by function

Is there any approach to define custom OpenLayers.Renderer.symbol by a function? For example, instead of making a symbol for each 3-pointed, 4-pointed, 5-pointed etc. star ...
0
votes
1answer
103 views

WMS render geotiff as a small image

Hye! I am facing Strange problem,My Geoserver 2.2.4 was stop working suddenly so i made a backup of Dir folder and install Geoserver 2.3.5 and replaced workspace folder with new one. Now all ...
3
votes
1answer
2k views

How do you put GeoJSON attribute information in a popup with OpenLayers

I am having some trouble putting GeoJSON attribute information in a pop-up. The selection control is working, and I create an alert (for testing) and this is working. But I can't figure out how you ...
2
votes
0answers
29 views

Any solution to mosaic Modis MOD13Q1 using batch file?

I have a Modis MOD13Q1 product for Pakistan, four tiles cover my complete area and I have data consisting of 14 years, after every 16-day interval. I want to mosaic them using a batch file which ...
0
votes
0answers
44 views

GeoServer, OpenLayers and updatable views: unable to edit data of WFS-T feature layer

I am developing an web application, where the user is able to view and update some feature attribute of a WFS layer. My problem: the edited data is not saved at all. Here's the situation: GeoServer ...
0
votes
1answer
81 views

how to get json from describe feature type

i m using geoserver 2.1.3 i want to get the fields of layer from database http://[localhost]/geoserver/wfs?request=describeFeatureType&typename=topp:states this reurns me output in xml format how ...
1
vote
1answer
366 views

Select features of layer which is not on top in OpenLayers

I have posted this question before on the general StackOverflow forum: http://stackoverflow.com/questions/16278569/select-features-of-layer-which-is-not-on-top In short my problem is that I have a ...
3
votes
1answer
685 views

Limit Zoom on WMTS Layer using Openlayers 2.12

I'm implementing a baselayer to be used by a Plone addon (collective.geo.openlayers). My implementation specifically creates a layer and returns it to the addon, which enables many different layers to ...
0
votes
0answers
12 views

Working with different source WMS data

I have a geoserver and WMS services on it. For example my water valve layer is point data and published from geoserver. (I am using postgis to saving data.) An external WMS service publishes polygon ...
6
votes
1answer
164 views

Load third-party APIs only when the corresponding map layer is requested?

OpenLayers allows multiple map layers to be hosted on a common platform. If the map application supports a wide variety of maps, say from Google, Yahoo and Microsoft, I find that upon initialization, ...
0
votes
1answer
90 views

OpenLayers SVG sprite externalGraphic only works in Firefox

I am trying to set the externalGraphic property of a vector layer's style to an SVG sprite that has various viewboxes to position the icons dynamically by creating different views within my SVG file: ...
1
vote
1answer
166 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); ...