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

learn more… | top users | synonyms

2
votes
1answer
32 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
447 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
35 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
33 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
50 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
34 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
29 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
49 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
29 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
50 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
89 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
41 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
58 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 ...
2
votes
1answer
29 views

How to display MousePosition outside map container? [closed]

I am a new to OpenLayers. By Default the MousePosition displays the coordinates within the map. I need to display the coordinates outside the map is a specific place. How do I do this?
3
votes
0answers
22 views

How do I separate OpenLayers methods from my own, while using inheritance?

I am working on a GIS API, that uses OpenLayers. I initialize the map lke this: xgis.map = OpenLayers.Class(OpenLayers.Map, { var mapOptions = {}; mapOptions.allOverlays = false; /* ...
1
vote
1answer
40 views

How to limit vertically the extent of an OpenLayers map?

When I pan north, the map goes out and I see the white background of my HTML. I want to pan vertically and the map to block when it reaches the top (or bottom, respectively). I have tried to put ...
1
vote
0answers
25 views

Openlayers external GeoJSON error handling

I'm making a map which refreshes itself in a given interval and shows the progress of objects on a vector layer with information from an external GeoJSON file. When the server is not accessible, or I ...
0
votes
0answers
176 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
53 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 ...
1
vote
1answer
53 views

Speeding up loading raster

I georeference a tif image and then I clipped that image in a mosaic. I did a index of these images but when I load them is very slow(7 seconds or more to display the first tile). How can I do to go ...
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 ...
2
votes
1answer
36 views

Access to custom GeoJSON members in OpenLayers

I need to read a layer-wide attribute, from a GeoJSON file, set by a custom member to the object: {"type": "FeatureCollection", "features": [...], "search_polygon": "POLYGON (...)"} Since it seems ...
1
vote
1answer
100 views

Openlayers WMS getFeatureInfo get features with geometry attribute

I am displaying map using WMSlayer and implemented WMSGetFeatureInfo control on wms layer. Tap on a location and get the features using WMS getFeatureInfo service. This service is returning me all ...
3
votes
2answers
123 views

Recommended opensource solution for storing, publishing and querying GIS data

Our company has millions of feature classes currently stored through ArcSDE on SQL Server 2008 R2. We are kind of slowly making our way to opensource software. What we want to achieve is to be able ...
1
vote
0answers
35 views

POST not implemented

I'm developing a client wps modifying the example WPSDemo.js from http://suite.opengeo.org/4.1/processing/wpsclient/index.html . I'm using zoo-project as WPS server. I'm trying to invoke the "buffer" ...
0
votes
1answer
16 views

How to get pgrouting source and target value using openlayers 2/3?

Is there anyone can teach me how to get the pgrouting's source and target parameters in openlayers 2/3? I plan to get those parameters by click the OSM map layer. Currently, I can only get the lonlat ...
0
votes
0answers
61 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 ...
1
vote
2answers
40 views

Baselayer disappears when I draw a layer

I have 3 layers, the base layer and two wms layers. When I load the map, one of them always shows up even when I put visibility:false. And when it shows up, the base layer disappears. What can I do? ...
0
votes
1answer
47 views

Draw Complex shapes

Is it possible to draw complex shapes (polygons) like below image, combining lines and arcs. It is more like a Land Survey plan. So I have coordinates of each point and in case of arc - Radius, Chord, ...
0
votes
1answer
40 views

OpenLayers: draw path with only two points

I want to draw a path with no more then 2 points. On the second point I want the path to be finished. I'm using the OpenLayers DrawFeature, I set a callbacks for "point" where I count the created ...
1
vote
1answer
79 views

Populate geoext2 gridpanel from openlayer vector features

I need to populate a extjs datagrid with a openlayers features. The official example http://geoext.github.io/geoext2/examples/grid/feature-grid.html doesn't help me, beacuse the data is loaded from a ...
1
vote
1answer
66 views

Use Ushahidi api in another map using openlayers

I have a ushahidi deployment and i am using Openlayers + ushahidi api to show the reports in a separate map along with other features. i have queried the data from ushahidi api and made a vector ...
2
votes
1answer
125 views

Print Maps - OpenLayers, GeoServer, GeoExt, MapFish

Can anyone point me towards a clear and unambiguous description of how to install and code a very simple map print function for OpenLayers/GeoServer? I am using GeoServer 2.5.2 and OpenLayers 2.12 on ...
0
votes
1answer
203 views

Openlayer 3 interaction Select Problem

i have a problem as a short and clear. When i use the snipped code var select = new ol.interaction.Select({ condition: ol.events.condition.mouseMove }); base map's mouse click drag is ...
0
votes
1answer
316 views

Error XMLHttpRequest cannot load openlayers geocode

I'll make a page for viewing routes with openlayers, postgresql / postgis and pgrouting. The part of the seat is already ok, I'm using OSM data. The image below is to illustrate what I'm doing now: a ...
1
vote
0answers
38 views

Draw linestring programmatically using draw control

I want to draw linestring feature programmatically which can be done from draw control of openlayers which can inherit default behavior of draw control that is modification, selection, undo, redo etc ...
2
votes
3answers
170 views

How send Geoserver WMS GetFeatureInfo query to an area

I am using GetFeatureInfo query to WMS service. When I click a WMS object on the map, the response is coming. http://localhost:8080/geoserver/wms? request=GetFeatureInfo &service=WMS ...
0
votes
1answer
63 views

Routes Consult with pgrouting / openlayers [closed]

I'm starting with pgrouting. After suffering a bit unable to put the data in osm postgis using osm2po with the excellent tutorial http://anitagraser.com/2011/12/15/an-osm2po-quickstart/ ran the sql ...
1
vote
0answers
57 views

Error when adding WMS layer in OpenLayers from a geoserver

I try to add wms layer from geoserver: var layer = new OpenLayers.Layer.WMS(name, 'http://'+ self.objSettings.ip + ':' + self.objSettings.port + self.objSettings.wms, { srs: 'EPGS:4326', ...
1
vote
0answers
29 views

Remove last line segment of an OpenLayers.Control.Measure

i'm using OpenLayers library, i'm trying to delete the last line segment of a drawing realized with the following code: layerLine = new OpenLayers.Layer.Vector("layerLine"); layerLine.id = ...
2
votes
1answer
36 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
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 ...
1
vote
0answers
24 views

How to display specific areas specified by Global MapIt Area ID in Open Street Map using Open Layers?

I've been customizing the Fix My Street platform for the two cities in my country, just to test everything out in it and how it works and maybe implement it for the whole country in the future. The ...
1
vote
1answer
122 views

Label styling applied in Geoserver are not being applied to WMS layer in Openlayers

I am trying to label a layer of line vectors using SLD in Geoserver. It is simple enough, and it's pretty much copied from the SLD cookbook: ...
0
votes
1answer
22 views

OpenLayers 2.13 floating components resize not working

In my application i am using ExtJS4. After upgrade from OpenLayers 2.12 to 2.13.1 i noticed that i am unable to resize windows (floating components) that are on top of the map, like the resize action ...