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

learn more… | top users | synonyms

0
votes
0answers
26 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 ...
2
votes
0answers
11 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 ...
2
votes
0answers
22 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
9 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
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
0answers
22 views

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

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 ...
1
vote
0answers
8 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
39 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
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
45 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
17 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
13 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
23 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
19 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
30 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
9 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
21 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
27 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
15 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
19 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
29 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
25 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
31 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
20 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
36 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
35 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
16 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
11 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
10 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
19 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
15 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
31 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
15 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
26 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
13 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
32 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
24 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
12 views

How to show a OpenLayers map on tiki-wiki 13.0

I was wondering how can I show a map via OpenLayers on a tiki-wiki page? I just installed tiki-13.0, and couldn't show any map following the tiki-wiki documentation. I searched the tiki-wiki online ...
0
votes
0answers
32 views

OpenLayers supported image formats

I need to display ImageLayer in OpenLayers. Which image formats are supported in OpenLayers?
2
votes
1answer
25 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
20 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
90 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
46 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
24 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
22 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
19 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
14 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
21 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
16 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
31 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 ...