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

learn more… | top users | synonyms

1
vote
0answers
1k views

how can we save vector files in openlayers

i'm using Postgis + tomcat + geoserver + openlayers for my application. with the help of some tutorial i have reached upto gettting feature information of layers. Next i want to edit and save ...
1
vote
0answers
60 views

How to load WFS in jsFiddle?

I'm trying to implement a WFS service in jsFiddle for an OpenLayers map. It works fine here: http://openlayers.org/dev/examples/cql-format.html My example of it is (the map loads but the filter ...
1
vote
0answers
477 views

OpenLayers + GeoServer + Oracle: WFS-Transaction update error

I am trying to implement wfs-t in a map application. tried using ArcGIS server wfs-t, and didn't make it since there is a lock mechanism while trying to edit a feature.ArcGIS WFS-T + OpenLayers; then ...
1
vote
0answers
493 views

Why does Openlayers plugin crash QGIS 1.7.4?

When I open the openlayers plugin my qgis 1.7.4 crashes. I use Win7. I'm using the CRS Google Mercator and QGIS crashes. However, I've install the QGIS 1.9.90 and the plugin works in this ...
1
vote
0answers
822 views

How to speed up OpenLayers with WFS in IE?

I'm using Openlayers, Geoserver and noticed that IE is very very slow to display WFS layers. I haven't so many WFS features, about 300. Google base layer appears after 1 sec. but my two WFS layers ...
1
vote
0answers
1k views

OpenLayers Popup Anchored Offset Problem

I have an animation where I move a point along a line. At certain spots of that line I open a popup to show a picture. I want the popup to be centered on the point. It seems to work for some points ...
1
vote
0answers
190 views

Mapnik, TileCache, Apache2 - Setup&Debug

I'm trying to setup TileCache with Mapnik working on an Apache Server. Right now I don't see any tiles in my OpenLayers Framework in the webbrowser. I really ask myself where the problem is hidden. ...
1
vote
0answers
495 views

GeoNetwork opensource - Geoserver/Google Maps integration

I'm using GeoNetwork 2.6.4 and I would like to change the default base map to Geoserver, adding a Google Maps Satellite Layer. Which is the best way? Any suggestions?
1
vote
0answers
38 views

Why is eraseGeometry method not called?

I'm extending OpenLayers.Renderer class. The problem is eraseGeometry method is not called. What can be wrong? I need it to be called when features are out of the visible area.
1
vote
0answers
216 views

About event to Latitude and Longitude in C#

I am beginning to study Ready GXP and I would like to know which event receives Latitude and Longitude and passes them to the browser for execution in C#. Could you help me ? Thanks
1
vote
0answers
143 views

Geoserver Custom CRS IAU_Moon_2000

I am trying to setup a custom basemap using a GTiff in the IAU's Moon2000 projection (30100 or 30101). The basemap image was originally created through gdal_merge and gdalinfo returns the expected, ...
1
vote
0answers
162 views

How to add column “EDGE” in pgRouting?

I am a newbie in PostGis and pgRouting. I have installed and configured both on my windows PC, following FOSS4G tutorial. I am able to see the result in browser, using GeoServer and OpenLayers. ...
1
vote
0answers
213 views

Color polygons using SQL Database based Rules in Openlayers

I want the rules to be applied according to values in a database. Is it possible to include external database information that is not in the shapefile? In spoken words the original rule is "Color all ...
1
vote
0answers
519 views

WFS success with error

I am trying to load WFS from geoserver. my geoserver is at localhost:8080 and webserver at localhost:80. Since there is a problem of crossdomain and my firebug showing "XMLHttpRequest cannot load ...
0
votes
0answers
13 views

Inserting newly drawn polygon as feature in existing layer

I draw a polygon that I want to save in the existing WFS layer as soon as it gets created. var control = new OpenLayers.Control.DrawFeature(existing_layer,OpenLayers.Handler.RegularPolygon); ...
0
votes
0answers
8 views

Displaying ESRI WMS layers in OpenLayers 3

I'm looking for an example that demonstrates how ESRI WMS can be displayed with OpenLayers 3. In OpenLayers 2, we had a OpenLayers.Layer.ArcGIS93Rest class (see example and docs). layer = new ...
0
votes
0answers
4 views

OpenLayers gx_geocodercombo returns syntax error

I try to implement a gx_geocoder combobox... { xtype: "gx_geocodercombo", hideTrigger: true, emptyText: 'Enter address (streetname housenumber municipality)', width: 350, layer: ...
0
votes
0answers
18 views

getCenterLonLat differs from init values

bounds = new OpenLayers.Bounds(); bounds.extend(new OpenLayers.LonLat(36,57)); console.log(bounds.getCenterLonLat()); I expect something like Object { lon=36, lat=57, ... } I get some Object ...
0
votes
0answers
11 views

How to get feature on vector layer in Openlayers 3?

I'm try to get feature of a vector layer, but I'll have 3 or more Vector layer. When I click the map, I didn't get the feature. My vector layer definition; var vectorAltAlan = new ol.layer.Vector({ ...
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
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 ...
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({ ...
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': ...
0
votes
0answers
16 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, ...
0
votes
0answers
10 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 ...
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
17 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 ...
0
votes
0answers
14 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
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
45 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 ...
0
votes
0answers
27 views

OpenLayers layer mergeNewParams handle event or callback

I am changing the CQL filter of my WMS layer. var layer = new OpenLayers.Layer.WMS( "MyLayer", "url", { layers: "PGSA:myLayer", transparent: true }, { isBaseLayer: false } ); When ...
0
votes
0answers
14 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 ...
0
votes
0answers
23 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 ...
0
votes
0answers
41 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
20 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 ...
0
votes
0answers
73 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
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 ...
0
votes
0answers
123 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
0answers
30 views

Issues at reprojecting coordinates using gdalwarp and OpenLayers

I have an interpolated raster image with EPSG:27700 (British National Grid), after I warp it using gdalwarp into EPSG:3857 (WGS84 Web Mercator (Auxiliary Sphere)): gdalwarp -s_srs EPSG:27700 -t_srs ...
0
votes
0answers
27 views

How to add custom events to OpenLayers-based API?

I am woking on a GIS API built on top of OpenLayers. I have a class called xgis.group, which represent a group of layers. I want to add an event that can be triggered when a group is added. For ...
0
votes
0answers
40 views

OpenLayers supported image formats

I need to display ImageLayer in OpenLayers. Which image formats are supported in OpenLayers?
0
votes
0answers
45 views

Standard tile origin coordinates for EPSG:3857

Is there a standard tile origin for caching tiles in EPSG:3857? For example OpenLayers as default uses this tile origin for a WMS in mercator projection: lon: -20037508.34, lat: -20037508.34
0
votes
0answers
159 views

How to Overlay the WMS Layer on Google map

I want to overlay WMS layer on Google layer of OpenLayers with my map server. but My WMS not Overlayed on it. my code is here: function init() { var map; map = new ...
0
votes
0answers
45 views

geowebcache tiles not showing up in folder

I am using geoserver 2.5.1 and am atempting to use the intergrated geowebcache.I have installed tomcat and am using the webapp process for the geoserver. I managed to add all the tiles and got the jai ...
0
votes
0answers
24 views

Problem with OpenLayers.Size and OpenLayers.Bound

When I change OpenLayers.Bound values, the view changes irrespective of size I had defined. In addition to this, I also would like to know why a layer disappears when the OpenLayers.Size is below ...
0
votes
0answers
60 views

javascript/jQuery getJSON very slow with a inner loop

asked here too http://stackoverflow.com/q/25024466/528884 I'm using OpenLayers to render DOM for layerswitcher, with about 1200 divs. The problem can be simplified as follows. This is very fast (3 ...
0
votes
0answers
19 views

read feature of a region in map

I am using geoserver and openlayer for developing a GIS application. Is it possible to read features lying within a known polygon area of map through some looping logic without any click on map? I ...
0
votes
0answers
40 views

Vector Layer Causes Movable White Box to Display Outside of Map Viewport

In OpenLayers 2.13.1, odd behavior arises with Vector Layers in my application where a white area appears outside of the map viewport and blocks the visual aspect of my controls. The controls actually ...