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

learn more… | top users | synonyms

1
vote
0answers
24 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 ...
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 ...
1
vote
1answer
31 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
72 views

Moving from OpenLayers to Leaflet breaks tilecache

My tilecache.cfg is like so (working with MapServer) [mylayer] type=WMS url=http://server/mapserver/app spherical_mercator=true layers=mylayer The following works just fine var mylayer = new ...
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 ...
1
vote
1answer
35 views

Dynamically changed url in my Vector layer protocol not taken into account after refresh

I have a map which I try to change dynamically its url when the user clicks a radio button. Here is my code : var refreshLayer = new OpenLayers.Strategy.Refresh({ force: true, active: true }); var ...
0
votes
1answer
46 views

Using Arcgis and OSM tiles in Openlayers application

I created a map object and specified options according to Arcgis tiled map tiles. var options = { scales: [120000, 60000, 30000, 15000, 5000, 2500, 500], resolutions: ...
1
vote
1answer
23 views

Can't send an array via Protocol.HTTP()

I'm trying to send a JSON file to my Node.js app via Protocol.HTTP. The file is correctly sent, but I can't access to an array. Here is the relevant code : Client side (...) var vectorProtocol = ...
0
votes
1answer
74 views

Force openlayers to not use browser cache for tiles refresh

I use OpenLayers.Layer.XYZ to display tiles from TileStache server without using the cache option of the server. However, I notice that the tiles stay in cache (probably the browser cache) until the ...
1
vote
1answer
16 views

URL for my Protocol.HTTP never called by OpenLayers?

I have an OpenStreetMap (OSM) map with a vector layer fetching data from a Node.js server setup on my local machine on port 9000. The data is in GeoJSON format. Here is the whole code: var ...
1
vote
0answers
44 views

edit openlayers feature attribute and save in geoserver

I have a layer in geoserver and I want to get this layer with WMS in OpenLayers. population = new OpenLayers.Layer.WMS("population", "http://localhost:8080/geoserver/world/wms", {'layers': ...
1
vote
1answer
53 views

Determine size of screen/map to limit number of markers displayed

I am writing a JQuery Openlayers javascript web application that connects to a API, which exposes a million geo located points plus metrics and information about the points. One metric is a points ...
1
vote
0answers
38 views

custom SVG label style - openlayers

My goal is to display rotated labels for roads on my openlayers based webmap. The problem is actually solved (with a custom SVG solution), but i have some problems with the styling of the labels. As ...
1
vote
1answer
26 views

OpenLayers feature styling change by the baselayer

How can I have the style of the features on a vector layer depending on the OpenLayers' "base layer"? For example, some base layers are dark images and I need (for the contrast) the features to be ...
2
votes
1answer
85 views

Problem saving added point to GeoServer WFS-T via OpenLayers?

I want to add a point and then with WFS-T, save this to db. I work with Openlayers and GeoServer. saveStrategy = new OpenLayers.Strategy.Save(); wfs = new OpenLayers.Layer.Vector( "WFS Vectore", { ...
2
votes
0answers
39 views

Adding feature to GeoServer vector layer using WFS-T in absence of fid index?

I want to add a feature to GeoServer vector layer with WFS-T. When I use saveStrategy.save(), an error returned that said: java.io.IOException: current fid index is null, next must be called ...
2
votes
1answer
43 views

How to get public access to edit a layer in geoserver [closed]

I want to develop a GIS system with OpenLayers and GeoServer which is installed with OpenGeo Suite 4.1 and I need to edit a layer with no GeoServer authentication. This means that guest members should ...
2
votes
1answer
30 views

Image Layers is showing on map using OpenLayers but how can I change it as base layer

I have created one code to display an image layer on my map using open layer, I am using following code tiled = new OpenLayers.Layer.WMS( "layername", ...
3
votes
1answer
80 views

Openlayers popup not closing

This is a special case, I have many popups attached to objects and they work fine and I am having a problem in only one case. All layers and popups are handled by select control's onFeatureSelect, ...
2
votes
1answer
70 views

Adding multiple WMS layers in OpenLayers

I have an array of layers that I am passing to map.addLayers(). When I pass the array to the function in $(document).ready(function (){}), it doesn't add them to the map (i.e. map.layers does not have ...
1
vote
0answers
38 views

Create vector layer from feature collection in OpenLayers

I have used a WPS process gs:UnionFeatureCollection to compute the geographical union of two collections of WFS vector features. The process returns a collection of features which I intend to display ...
1
vote
0answers
28 views

Openlayers pop-up FeatureSelected doesn't invoke even FeatureClicked works well

My code snippet is: //Vector Layer with listeners: var vectorLayer = new OpenLayers.Layer.Vector("Kuzzular"); vectorLayer.events.on({ 'featureselected': function(evt) { var ...
1
vote
0answers
27 views

Geolocation Ptojection Transform is not working for custom coordinate system

I am using Openlayers API and I have a custom projection and I defined it to my geoserver named "EPSG:51100". I have a custom tile map. var tms2013 = new OpenLayers.Layer.TMS("2013", ...
2
votes
0answers
31 views

How can I use WFS-T in openlayers?

How can I use WFS-T in openlayers? My server is geoserver and I want to edit a feature.
2
votes
0answers
28 views

OpenLayers Popup relative to a feature's position - prevent overlaps - only one popup in one time

There are many questions related about this topic. However there is no complete example for this widely used pop-up type: Basically i need a popup which will appear the top-right of a Feature (Point) ...
1
vote
0answers
49 views

UTFGrid and custom tiles in OpenLayers

This is my first post here so I apologize in advance if a convention is escaping me in the question format. I am trying to display information from utfgrid in OpenLayers. I am using custom tiles in a ...
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 ...
3
votes
0answers
33 views

Option for 360 degree movie embedded in Open Source GIS software?

Is there any Open Source GIS software available to embed 360 degree movies with the map? For a COTS example, there is the Active Link Vision (ALV) extension for ArcGIS from IWANE.
2
votes
0answers
26 views

load end event on a baselayer

can a loadend event be added on the baselayer? I made a code which would get all the loaded tiles but will be invoked when the map is finished loading all the tiles? I tried using Events.register and ...
1
vote
0answers
54 views

Multiple Leaflet maps on website in different divs

I'm pretty new to leaflet.js and I'm trying to figure out how to assign the same map with the same set of options and layers to a different HTML container instead of having to remove and add a new one ...
2
votes
1answer
49 views

Converting .multiple shapefiles into Image Pyramid?

I have multiple shapefiles, and I want to import them as image tiles. How do I convert a shapefile into image format and then convert that single image file into an image pyramid such as that of ...
0
votes
0answers
40 views

OpenLayers supported image formats

I need to display ImageLayer in OpenLayers. Which image formats are supported in OpenLayers?
2
votes
1answer
31 views

OpenLayers - cannot set layer opacity

I have the following problem: by default, you can simply change the opacity of layer by writing for example: layer.setOpacity(0.3); But when I add it to my map SelectFeature controls, my layer is ...
1
vote
0answers
28 views

OpenLayers Multiple Maps Problem (maps leave blank)

I try a round with OpenLayers and was very impressed how mighty it is. But I have a problem (maybe a easy one, because I am not so trained in js). After adding additional maps all maps leave blank, ...
3
votes
1answer
368 views

Cannot see OpenLayers under Plugin in QGIS 2.4

Although I have installed the OpenLayers plugin, I cannot see it in the list when I click on Plugins. Does anyone else have this issue?
2
votes
1answer
52 views

how to make a delay to wait for the map to load

I have a question here. What code could I use to basically make it wait for the program to load the map first after the zoomIn command. Here's a part of my code. for (var z = zoomfrom; z <= ...
1
vote
0answers
31 views

Print preview showing distortion in layers from GeoServer via MapFish and OpenLayers?

I have an application which shows the print preview before printing the map and the problem is that the layer is distorted in the first image but when I zoom into the map the distortion goes away. I ...
2
votes
0answers
32 views

OpenLayers: Switch layer off when switching another layer on

As the title says, I want to turn layers off when turning another layer on. I wrote a function that works. However, I have to click the layer twice in the LayerSwitcher to turn the layer on that I ...
1
vote
0answers
46 views

How to change dialog box with jQuery Mobile on OpenLayers

I have a problem with dialog box made with jQuery Mobile on OpenLayers. I want to make a popup box instead of a dialog box, but when i click the point the info for the point appears at different ...
1
vote
0answers
15 views

Shift between Open layer and vector layer QGIS 2.20 [duplicate]

Can you please help me solve this issue with Open Layer Plugin. I see some shift with a vector layer of Laos water boundaries when the background is Google Physical Layer.I am using CRS EPSG: 32647 ...
2
votes
1answer
30 views

Openlayer function(mergeNewParams) is overwriting previous function call

I am trying to parse both the values to the corresponding words to fetch data from GeoServer and return me the value, like this: route.mergeNewParams({viewparams: "'word1:+source;word2:+target"}); ...
1
vote
0answers
28 views

OpenLayers WMSGetFeatureInfo Windows Mobile

I have built an app using Phonegap build that uses OpenLayers 2.13.1 with wms layers from geoserver and I have a WMSGetFeatureInfo control set up. When I click a point on Windows phone 8, the error I ...
0
votes
1answer
47 views

How to query a PostGIS database through Geoserver and OpenLayers

I've built a web application using OpenLayers, which is connected to my PostGIS database through Geoserver. Now that I'm able to successfully display all of the layers, I'd like to add ...
1
vote
1answer
19 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 ...
1
vote
0answers
28 views

Shifting problem with mapfish

I'm using OpenLayers 2.13 with GeoExt and mapfish print module for GeoServer. I've a map composed of a WMS layer and a vector layer. On my web browser everything is fine but when I print this map into ...
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
2
votes
1answer
84 views

How to pass an argument to an event function in OpenLayers?

I am loading to my map two KML layers for which I add a quasi-similar featuresadded event : layerICPE = new OpenLayers.Layer.Vector( "ICPE (Installations Classées pour la Protection de ...
2
votes
0answers
38 views

multiple image in OpenLayers

I'm fairly new to OpenLayers so please bear with me. I'm trying to add multiple images to OpenLayers. I have the following (some code is excluded): var images = [image1,image2,image3] // these are ...
1
vote
1answer
56 views

How can I measure area in square kilometres from lat / lon gps coordinates?

I have code from openlayers that I cannot quite handle because I am so new for these kind of codes. My main goal is to measure area from n amount of lat/lon gps coordinates and convert the result into ...
1
vote
0answers
17 views

How to Create SLD Label with Non-Latin Languages

I create a OpenLayers WMS Layer with my map server url. I want to Style this with SLD_Body. I defined My SLD_Body and want to labeling it. but My Label Map is with non-Latin language and after ...