For questions specific to Version 2 of the OpenLayers Javascript client toolkit.

learn more… | top users | synonyms (1)

0
votes
0answers
10 views

Creating a buffer radius around a point

I would like to create a buffer radius of 1km around a set of points in my WFS layer (I'm using OpenLayers 2). I've tried creating a style but it only makes the points look bigger. Below is my WFS ...
0
votes
0answers
11 views

Can openlayer 2 be run in conjunction with openlayers 3 without reloading the map object?

When a map is loaded using openlayers 2 can the loaded map be used by openlayers 3 without re-loading the entire map? I have an existing fairly large and complex GIS app that uses openlayers 2 using ...
2
votes
0answers
16 views

How to add CQL filter into GetFeatureInfo request in OpenLayers

I have made a WMS layer using Openlayers2 and Geoserver and I display the layeer using a specific CQL filter. Now I want to use a WMSGetFeatureInfo request in order to get specific data on click. ...
1
vote
1answer
30 views

Can I consider QGIS OpenLayer basemaps as WMSs?

I am writing a manuscript about QGIS, and I categorized the data types into 3 classes according to popularity (raster, vector, web-data). Then I separated web-data to WMS and WFS. Under the heading ...
0
votes
1answer
38 views

Geosearch Esri controls in leaflet

It is possible to disable the Geosearch Esri controls in leaflet after the first geocode search? When I run Chrome console and I select the search geocode icon this is the code: <input ...
1
vote
1answer
48 views

How to quickly change EPSG in QGIS (Openlayers; 4326 vs. 3857)

I'm using Qgis 2.12.2-Lyon on Ubuntu 14.04 LTS. With the OpenLayers plugin I added some OpenLayers to my Canvas. I usually use the WGS 84 (EPSG:4326) projection for my project, but I have to switch ...
2
votes
1answer
26 views

Capture mouse movement on the map

I have found this Question for capturing mouse movement on the map, but I'm not using python for this project, I use openlayers3. I would like someone to explain to me how can I capture mouse ...
1
vote
0answers
31 views

OpenLayers3 creating large GeoJSON layers off the main thread

I am pretty new to this field and struggling to find out whether my idea is worth pursuing further. The problem I am facing is that I have to load a couple of large GeoJSON layers into my OpenLayers ...
0
votes
1answer
16 views

Keep only the last marker when geolocating

I'm working with OpenLayers 2 and I managed to create a javascript to locate the users and it works fine. I added a marker representing the current location and when the position change, it creates a ...
2
votes
0answers
21 views

SQL View- WMS Viewparams - parameter for table name [closed]

I've made a SQL view using parameteres. So, I did something like this: SELECT * FROM '%tablename_parameter%' The view is requesting data from a table by a parameter inserted from web page. The ...
0
votes
0answers
9 views

Create layers in OL iteratively and access them later

I have created a function in which I create WMS layers using OpenLayers 2 library. I iterate an array which contains the names of the layers and then I create each layer as following: function ...
0
votes
0answers
15 views

Can GLMap + OSMBuildings replace Ol3?

I am talking about 3D OSMBuildings: https://github.com/OSMBuildings/OSMBuildings Plus their GLMap: https://github.com/OSMBuildings/GLMap I know Ol3 is much bigger, so I want to make sure, what are ...
0
votes
0answers
16 views

opnenlayers 2 marker icon showing up at wrong coordinates position

the code is written using openlayers2 with bing. I want to add a marker with a custom icon. The code partially works and the marker icon shows up on the map. My only problem is it shows up in the ...
0
votes
0answers
42 views

Increasing Clickable Area of OpenLayers Polylines

I'm currently working on a web application where there are OpenLayers geometries that are clickable. However, since the size of the geometries can be rather small, it can be hard to click on them. ...
0
votes
1answer
16 views

Modifying OpenLayers 2 to connect to different WMS using JavaScript?

I have a program that runs in tomcat and uses JavaScript to access a postgreSQL database as well as Google, Yahoo, Geoserver, and Open Street Map map services through OpenLayers 2.12. I would like to ...
2
votes
0answers
14 views

making attributes popup on click in openlayers

this is my code i have included the control for get feature info but it seems like it's trying features for all the layers. how do i specify which layer to display the attributes var bounds = new ...
1
vote
0answers
22 views

Problem with OpenLayers plugin [duplicate]

I use QGIS in my daily work, but since a few months back I'm unable to do this due the OpenLayers plugin no longer being functional. When I try to load a background map nothing happen - the canvas ...
0
votes
0answers
16 views

Rotate polygons in JavaScript using openlayers

First, thanks for answer my first question. Today, I want to know some ways for rotating polygons. I already success using spring and server, but what I want to do is rotating polygons using 'only' ...
1
vote
0answers
16 views

Why force retile when zoom change in OpenLayers 2?

I'm new to GIS and OpenLayers, and I can't understand why is it that OpenLayers 2 force the base layer to retile when zoom is changed. I'm talking about moveTo function in Grid.js, where following ...
2
votes
1answer
24 views

Geoserver and SLD - continuous zooming of points?

I'm working with sld files and geoserver and I faced a problem about zooming in points at certain scale. Is it possible to zoom in a point layer so that points get bigger continuously like polygons ...
1
vote
0answers
14 views

Cannot load openlayers wfs layer into Internet explorer

I am having problems loading wfs layers into IE using openlayers. My code is below. It works fine using Chrome or Firefox but fails in IE. I had a similar problem with WMS but managed to track down ...
2
votes
1answer
68 views

Image in wrong location in qgis2web

I'm using the qgis2web plugin to display a Landsat image and some agricultural fields. Both raster and vector data are in EPSG:4326. In the QGIS canvas, the vector and raster line up (left side of the ...
0
votes
1answer
33 views

Show all layers stocked on a GeoServer workspace in a LayerTree (Openlayers3/ExtJS6/GeoExt3)

I'm building a layer tree and I would like it to be updated automatically when the page is loaded with layer that are in a specific workspace on GeoServer. In my layer tree I have a group containing ...
1
vote
1answer
42 views

Is it possible to send an OpenLayers map to QGIS for printing?

I have an existing OpenLayers/GeoServer/PostGIS/GeoExt project and I am looking for a way to print an OpenLayers map that contains WFS layers, vector layers dynamically created by users, and WMS ...
0
votes
0answers
38 views

Access-Control-Allow-Origin in geoserver and ol2

Good morning, I m trying to get a pop up from my map with the getfeauture code. I tried to followed the following example. When i tried to run the code i get the following error in my console: ...
0
votes
0answers
19 views

Apend child to a layertree with

I'm building an application with GeoExt 2 and I'm trying to create a tree layer with some grouped layers. I saw somewhere that you should set the node type to "gx_layer" to get the desired effect. ...
0
votes
1answer
18 views

Does CQL requires bringing the data on the client?

I want to use ECQL in order to filter some data on my browser. I have a postgis table which will have around 300k of rows. Bringing this layer at once might make things a bit slow. I was wondering how ...
0
votes
0answers
16 views

Openlayers Mapfish Fails

My OpenLayers/MapFish print tool fails approximately half the time when attempting to print WMS with some vectors, and always fails when trying to print WFS layers. After the OL map first loads I can ...
0
votes
0answers
12 views

Drag'n'drop form fieldset to Openlayers map or viceversa

I tried to google if somebody would have tried this but all I could find was drag'n'drop functionality for available markers. I would like to use dynamic form for creating eg. title and description ...
1
vote
0answers
18 views

Multiple Selection Buffer OpenLayers

I want to draw multiple buffer selection on click so that each selection is saved in a different vector layer and buffer features in one vector layer. The following code works well for the first ...
0
votes
0answers
52 views

Openlayers-2 restrict zoom levels relative to restricted extent

I have a web application that uses Openlayers 2.13.1 to open a map with many zoom levels defined by a resolutions array. Each user can have a different restricted extent where the user can move ...
0
votes
0answers
32 views

GeoServer WMS layer does not show with use of OpenLayers

Goodmorning, For a few days i m trying to get a WMS from geoserver to a website using openlayers. But everytime i get pink rectangles. I know that there are a lot of this thread already but i dont ...
1
vote
0answers
39 views

GeoWebCache + OpenLayers - caching blank tiles?

Are browsers supposed to cache blank tiles? I have layer cached with GeoWebCache. When i request this layer via OpenLayers i can see that tiles containing data are taken from cache, the blank tiles ...
1
vote
0answers
17 views

Strange URL returned when GeoServer WMS layer added to OpenLayers [closed]

I want to add a WMS layer from GeoServer to an OpenLayers website. However, when I try to load it into the website, I get following error in the console: GET ...
0
votes
0answers
7 views

How to publish my layers from geoserver to openlayers [duplicate]

I downloaded an example from openlayers 3 put I am unable to edit it to publish my map on the web. The first time I tried nothing showed.
0
votes
1answer
19 views

Using web mercator with openlayers

I am using OSM basemap in my openlayers application. var OSMlayer = new OpenLayers.Layer.OSM( "Simple OSM Map"); //Creating a Map map = new OpenLayers.Map('map', { maxExtent : ...
0
votes
0answers
28 views

How to add marker to user-defined image in OpenLayers 3

I am trying to add camera marker to the example http://openlayers.org/en/v3.0.0/examples/static-image.html I just have to add markers (camera image) randomly on the map. I have tried adding marker ...
0
votes
0answers
12 views

Openlayers: Move Google Hybrid map on top of data layer

I am working on a web interface for my maps and I am using openlayers2. I need to use google satellite as base map, but I need to use google streets and labels also. Is there any way to put the ...
1
vote
1answer
17 views

Creation of buffer area of 20mtrs upon click event on the base layer

I have a base layer upon which i wish to import a kml with certain lat lons and create a buffer region of 20mtrs around any point upon click event. i got google api for the same but want openlayers ...
2
votes
1answer
37 views

Popup that contains feature type details from geoserver

I would like to seek for help regarding my project. I'm new in Web Mapping. And as of now I have WMS layer (which is polygon type) from geoserver that is overlayed in a WMS openlayers basemap. Now I ...
1
vote
0answers
17 views

How to display Geojson file over OSM, google satellite as abase layer (at correct location) in open layer?

How to display Geojson file over OSM, google satellite as a base layer in open layers. It is showing somewhere. var map = new OpenLayers.Map('map',{ projection: "EPSG:900913", ...
1
vote
0answers
17 views

cross domain problem in geodjango for openlayers in django development server

I want to display geojson data on map in geodjango. Below is my code template/map.html (javascript code). only the map is loading but not the geojson data. Whwn I used debugger the url is gettin ...
0
votes
0answers
31 views

Loading local tiles OpenLayers

Theses days i load local tiles, chrome doesn't go so well with letting you loading local tiles , because of secuirty problem as CORS etc.. but there is a way to cross this problem and let chrome ...
0
votes
1answer
52 views

Using OpenLayers 3 Feature onclick event?

I looked for a way to fire onclick event and I found Adding event handler to feature in OpenLayers 3? at Stack Overflow. I undestand from this question is that there is no event onclick to features. ...
1
vote
2answers
40 views

geojson data not getting displayed on map (Openlayers) in Geodjango

I have the following code models.py class PFT(models.Model): species=models.CharField(max_length=50) geom = models.PointField(srid=4326) objects=models.GeoManager() def ...
3
votes
1answer
40 views

OpenLayers creating Marker Vector Layer

I have seen over the internet a lot of examples of using Features paste them into the Vector layer and after that insert the layer to the map . basic example: <script> var iconFeature = ...
1
vote
1answer
36 views

Display WFS (GeoJSON) from GeoServer with OpenLayers on Django

I want to display point data from PostGis to my Django application. I created WFS service from GeoServer and want to display using OpenLayers. I went through many posts but none of them worked My ...
0
votes
1answer
56 views

highlight zoomed feature [duplicate]

I have features in drop down list.when I select feature in drop down it is zooming to that layer.Now I wanted to highlight that zoomed feature.how can I style the zoomed feature? can any one help me ...
0
votes
1answer
36 views

How do I have a solid color background in OpenLayers 3?

I want to have the "basemap" be a solid color.
0
votes
0answers
26 views

OpenLayers Layer.Vector with external graphic image overlay - scale help

I have this image overlay that has a lot of dynamic features associated with it, which are coming from a JSON file that's updated regularly with live data. I believe I need to use the Layer.Vector ...