Use the OpenLayers 2 tag when that is the version you are using of the OpenLayers JavaScript client toolkit.

learn more… | top users | synonyms (1)

2
votes
0answers
21 views

how to efficiently detect intersect between polygons?

So I'm trying to implement box selection in leaflet. Currently i'm using turf's intersects function to detect if the box intersects with any of my geojson polygon features. However, this is very ...
1
vote
0answers
44 views

As in the OL3 request GetFeature of WFS version 2.0.0?

How to obtain information about the feature WMS layer in different versions of WFS 1.0.0 / 1.1.0 / 2.0.0 ? The OL documentation says Feature format for reading and writing data in the WFS ...
0
votes
0answers
8 views

How to realize Stereographic projection in openlayers 2?

I have my own tiles and 8 zoom pyramids levels, and now I want to realize stereographic projection by using openlayers 2, is it possible to make it without using other libraries(like proj4js)?
1
vote
1answer
21 views

How to perform dynamic filtering of multiple check boxes using cql_filter and openlayers javascript?

I have multiple checkboxes for example hospital checkbox where hospital datasets get displayed when checked, phase 1 check box where phase 1 hospitals get displayed when checked and grade A and B ...
0
votes
1answer
19 views

Multiple Selection with OL2

I created a map with some marker which can be selected and have them name appears in an external field. But i even if i am able to select multiple marker on the map ( shift command ), only one name ...
0
votes
0answers
14 views

xml parsing from url in javascript (OpenLayers)

I have a question concerning parsing an XML url. I have a geocode function implemented in my javascript: function findAddress(){ var address = document.getElementById('address').value; var ...
0
votes
0answers
15 views

Openlayers popup to relate table

I've a postgis layer (lines) and a table with a cardinality from one to many and I'm using geoserver to serve a WMS with the geographic table from postgis. So, what I'm triying to do is to use ...
0
votes
0answers
13 views

OpenLayers will not show PostGIS layer hosted on Geoserver [duplicate]

I'm new to this. When I try to create an Openlayers map using the Web App Builder in QGIS of a PostGIS layer hosted on Geoserver I get the following error: Server for layer does not support JSONP. ...
0
votes
1answer
55 views

Mapquest API & OpenLayers markers

Not unlike others, I've found myself forced to edit some code due to MapQuest changing how they offer the openstreetmap data, and using an API Key. Getting the key, aswell as getting up a simple ...
1
vote
1answer
26 views

QGIS OpenLayer OSM plugin not matching with my imported GIS information

I have imported GIS data into a new Qgis project for our local city website. The files are shapefiles and inside the prj it shows: PROJCS["NAD_1983_StatePlane_Florida_East_FIPS_0901_Feet",GEOGCS["...
1
vote
0answers
20 views

Cropping a layer to an input raster

I have layers based on GeoTIFF files, provided by GeoServer, that are displayed as overlays over base maps from OpenStreetMaps, Bing, Google via OpenLayers. I want to mask out areas from the GeoTIFF ...
0
votes
0answers
7 views

Openlayers switches coordinates of bbox

I do have two questions: First, I have a custom projection that works fine with a arcgis tiled service. However if I add any other wms, the bounding box (bbox) in the url is incorrect. Second, The ...
0
votes
1answer
22 views

How to add draw over an OpenLayer 3 map?

I am new to OpenLayers 3. I am trying to learn how to draw and save data over an OpenLayers map. Following an example, I am trying to learn about drawing and saving data. However, I am unable to draw ...
0
votes
0answers
18 views

Pop-ups not displaying in OpenLayers embedded using iframe

What I've done: Using qgis2web I have exported to an OpenLayers map with pop-ups. I uploaded the index.html and all javascript files to the 'Media' dump on my wordpress site (links in the index.html ...
0
votes
0answers
27 views

GeoServer Layer Preview stopped working with HTTP ERROR 404

I've installed GeoServer via OpenGeoSuite and it was working beautifully with all my rasters and vectors from PostGIS database viewable in GeoExplorer and Layer Preview. I am running off of an AWS EC2 ...
0
votes
1answer
15 views

get feature id on click

In my database table there are four fields(lat,lon,sensid,value).i am displaying a vector layer(point feature) by retrieving the lat, lon values from database. Now i want to display the value, ...
0
votes
0answers
6 views

PopUp doesn't show feature attributes (OpenLayers) [duplicate]

It only gives a blank image and I don't know what's wrong with the code, no error is shown by firebug or anything like that, here's the code below : action = new GeoExt.Action({ control: new ...
0
votes
1answer
15 views

OpenLayers 2 error 404 tile not found

I have a bbox area of my county. I serving the OSM tiles (apache2) from a local disk using openlayers 2 XYZ scheme. How can I prevent loading non-existent files out of my bbox area? I have 8 zoom ...
0
votes
0answers
23 views

Axis Orientation is inverted in openlayers 3

I'm new using the Openlayers, I am creating a map with custom coordinates coming from a post, the image for the map is a static image, like a floor plan. The coordinates that i'm getting is only 'X' ...
0
votes
0answers
11 views

Receiving png images via OpenLayers from a remote server?

I'm trying to create a webgis app with Openlayers which it will receive images from a remote server. Thus I have built some queries (e.g http://localhost:8080/rasdaman/ows?query=for%20c%20in%20(NIR)%...
0
votes
0answers
11 views

Creating a CQL filter function in Openlayers 2.10

Im having trouble with creating a CQL search function of my geoserver wms in OpenLayers. Im am running a 2.10 version of OpenLayers. Im a rookie in coding, so I'm trying to implement this example: ...
1
vote
0answers
24 views

Layer preview using OpenLayers

I have been using geoserver from quite sometime now and publishing layers and consuming services. Recently I have started facing the issue mentioned below when I am trying to preview the layer in ...
0
votes
1answer
22 views

vector layer popup data from database

I have added vector layer(features) on the map. when i click on the feature , in the back end it has to take the latlon values and retrieve the data from database(using php) and display the values in ...
0
votes
1answer
26 views

Load a WFS layer from geoserver into openlayer

I know there are already lots ofquestions about this problem,I have read all of them but there is also nothing in my openlayer map,there is also no errors in debuger.can some one help me find the ...
0
votes
0answers
15 views

Wrong WFS requests with OpenLayers 2.13 using filter and BBOX strategy

I am using OpenLayers to request multiple filtered WFS layers using the BBOX strategy. I tried two methods but both don't give the result I want, the first one defines the Protocol separately from the ...
0
votes
0answers
15 views

Using Geofence and OpenLayers

I'm using OpenLayers in my application (with have user authentication) to access a Geoserver. This Geoserver have a lot of WMS layers and currently can be viewed by all of my users. Now, given an ...
0
votes
0answers
11 views

Programmatically selecting tree layer node with GeoExt?

I'm totally new to GeoExt and I would like to know how to obtain a reference to a tree node base layer and programmatically select it. I've seen this bit of code but I'm still not sure how to get the ...
3
votes
1answer
28 views

Problem with MGI CRS on the Balkan

I have problem with CRS Bosnia and Herzegovina? MGI 1901 / Balkans zone 6 EPSG:3908 MGI 31276 / Balkans zone 6 EPSG:31276 Which of these two is OK? When I open google sattelite image with ...
1
vote
0answers
22 views

using java to get ways from osm [closed]

I just try to figure out how to query all ways within a radius of let's say 1km from a defined point. Here is an example of what I mean: I've already read about overpass api, GeoTools and ...
0
votes
2answers
25 views

how to remove some fields with the WMSGetFeatureInfo function?

I am displaying the attribute data in the popup on clicking on the map using openlayers,geoext. But i want to hide some fields(fid,.....) from the table in the popup. How to do this. Below is my code ...
0
votes
0answers
15 views

Geoserver CORS Header missing (Cloud) [duplicate]

I'm trying to access Geoserver's WMS GetCapabilities to populate a grid with the available layers and I receive this error : " CORS header 'Access-Control-Allow-Origin' missing " here's my code : ...
0
votes
0answers
11 views

OpenLayers-2 marker popup appears in the wrong place

After user types address in search box, the address marker appears in the wrong place. Here's a screenshot showing the popup positioned below the location instead of above it: Code: Could anyone ...
1
vote
0answers
17 views

Detecting click outside map control using OpenLayers 2?

My problem is the following: User loads form containing map control and then clicks the edit icon and starts editing a shape on the map. The shape is in edit mode as you can see the handles. ...
0
votes
0answers
21 views

OpenLayers3: block ol.View moves when it is outer the layer extent

I want my ol.View to stop during mouse dragging when the View extent reaches the layer extent borders. How can I achive this? Without handling mouse events I have a stop only when the View center is ...
1
vote
0answers
6 views

Problem with the layers display kml stored in Geoserver

I have a problem with the layers display kml stored in Geoserver. Google Earth shows me the study area, but the layer doesn't appear. However, I can see the layer when I "click" in OpenLayer. Does ...
0
votes
1answer
23 views

Google Places search implementation

I have a Heron/Geoext/ExtJS map. I found a site with this function and I would like to implement it. So how can I use this function without their MapCentia.gc2 function? How can I rewrite it to use ...
0
votes
0answers
10 views

How to display tile layer with EPSG:4326 in openlayer? [duplicate]

My tile layer url is : http://localhost:9082/geoserver/gwc/service/tms/1.0.0/iGIS:roadsline@EPSG:900913@png/{z}/{x}/{-y}.png In my application its required in epsg:4326 projection. but its working ...
2
votes
1answer
16 views

Change style of existing feature in OpenLayers2

I'm using OpenLayers 2 and have a number of LineStrings with custom attributes's drawn. I need to change the strokeColor on some of the lines styles programatically and have it stay this color even if ...
2
votes
0answers
18 views

How to Import Shapefiles (or any dataset) to a webmap using Openlayers/GeoExt online? WFS-T

I tried Using Heron, But it didn't workout well. The problem is, I couldn't found any good documentation about this matter. I just want to "Update" DataSet using an UpLoad tool to my actual Database. ...
0
votes
1answer
51 views

How to insert attributes into a WFS using OpenLayers?

So I have a web app that's running and is able to add points and lines to existing Postgis tables by getting data from Geoserver. I need the following one specific bit of functionality added: I want ...
0
votes
1answer
75 views

How to load 2 different WFS layers using OpenLayers?

I've been trying to load 2 WFS layers with the 3857 projection and I'm only able to load one of them, a line vector layer, while the other (point vector) doesn't load at all. Later I'm going to want ...
2
votes
2answers
130 views

Commiting Changes (WFS-T) Problem with Base Layer (Error Found: outside of (-180.0,180.0))

Committing changes stops working after changing the basemap from OSM (as a WMS) to Bing maps (or Google or even OSM as a "OpenLayers.Layer.OSM") PS: All my layers are on 3857 Here's the Error : ... ...
0
votes
2answers
33 views

Removed features on openlayers 3 is re-rendered on zoom in/out

In map I have Vector with Features inside, upon selecting some other options those features should be changed, therefore, I grab the map, select vector that I need, grab source from that map, and then ...
1
vote
0answers
46 views

How implement search input(autocomplete) of google maps with openlayers

I'm trying to implement the autocomplete input search google maps in my application, but I use the basemap the geoserver and open layers, I do not instantiate google maps, and i cant... I use this on ...
1
vote
1answer
59 views

Editing WFS from GeoServer using OpenLayers

After reading a very good tutorial on how to edit WFS with OpenLayers, I've tried replicating it but with my own WFS layer from Geoserver. I managed to load the WFS and my basemap successfully and ...
0
votes
1answer
31 views

Create a turf polygon from extents to check intersection with other polygons

I am storing the bbox of layers as strings, as the following string : var layerExtent='[768039.2602094524, 5772524.37609651, 2313901.7202488566, 7435794.111581946]' and I'm using this method to ...
0
votes
2answers
105 views

How to disable map drag and zoom in OpenLayers 3?

I need to disable all map interactions, like map zoom, drag, scroll zoom, any kind of interaction. Is there some easy way to do it?
0
votes
1answer
31 views

Gettings multiple features at pixel

I got an app to do there is a map and lots of points which represent a pictures, for example i got 3 pictures in 1 coordinate, and other pictures has other identical coordinates. But now i need once i ...
1
vote
0answers
51 views

Lag openlayer map when I add two layers

I'm writing a directive that controls openlayer3 map. The problem arises when I want to add two layers. For example KML layer and geojson layer. Map then does not work smoothly. You can only zoom but ...
1
vote
0answers
14 views

OpenLayer popup FramedCloud in mobile

How I can use the pop-up window in Openlayers on mobile? I have implemented the FramedCloud popup on my website, but when I open my web browser on a mobile device, the popup window does not seem to ...