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

learn more… | top users | synonyms

0
votes
0answers
8 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?
0
votes
0answers
12 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
10 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 ?
0
votes
1answer
7 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
35 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
23 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 ...
0
votes
0answers
6 views

OpenLayers.control.Split not working as the example

I am following the split-feature example, but cannot make it works the same in my application. I have create a JsFiddle to show my code. In the fiddle you'll see a vectorLayer with one feature and a ...
1
vote
0answers
14 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
38 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
1answer
17 views

resaving shapefile as WGS 84 EPSG:3857 doesnt align openlayer plugin

i am based in NSW, Australia. I have a shape file that when i underlay openlayer plugin (google satellite) the shape file is skewed despite all my efforts to correct it. I changed the project ...
0
votes
0answers
10 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
10 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 ...
0
votes
1answer
23 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
535 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
11 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? [on hold]

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.
0
votes
0answers
24 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: ...
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
8 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
21 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
352 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 ...
0
votes
0answers
33 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 ...
1
vote
2answers
607 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($) { // ...
2
votes
0answers
14 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
102 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
28 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
42 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
680 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
10 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
0answers
7 views

OpenLayers.Layer.Vector - addFeatures() weird behaviour

I have noticed that the addFeatures() of the OpenLayers.Layer.Vector add a lot of features and not just the feature that we pass to the function: var vectorLayer = new ...
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
163 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); ...
1
vote
1answer
19 views

featureId filtering in wfs openlayers

I want to define a featureId fiter for wfs layer like below: wfs = new OpenLayers.Layer.Vector("WFS Vectore", { strategies: [new OpenLayers.Strategy.BBOX(), saveStrategy], projection: ...
1
vote
1answer
493 views

How can i use snapp point in when i use measurecontrol?

I have problem about measurecontrol . I can use measurecontrol and i can show length to use measure control . But my problem is that .i didnt use in snap because measurecontrol is a control not ...
1
vote
0answers
11 views

Error during visualization of many layers on Chrome (ExtJS, GeoExt, OpenLayers)

I've noticed that on the latest version of Chrome (36.0.01985) my application crashes when a lot of layers are displayed (and/or the browser is maximized and the map is zoomed out). In particular, the ...
2
votes
2answers
572 views

Getting/downloading shapefile from OpenLayers/Web page and saving to local disk

I have developed a web application where i am using GeoServer and OpenLayers. I have displayed some Layers over Google map in a ASP.Net Web Page. I want to know is there any Method or Script available ...
2
votes
1answer
743 views

Problem with WFS-T save strategy in Openlayers

In my web map application, I have added the editable wfs vector layer for feature editing. But in save strategy method, Insert and Update Geometry is working fine.But Update Attributes is not saved in ...
0
votes
0answers
22 views

web-based 3D mapping system using nVidia 3D vision [closed]

I just started working on a very interesting project as part of my university research for 3D visualization of earth's surface in 3D (not 3D modeling but real 3D!) using nVidia 3D vision in browser ...