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)

0
votes
0answers
15 views

Add objects through web-browser [on hold]

Are there any ways to add vector objects (polygons, lines, points) to postgis database through web-browser? Is it possible to do with OpenLayers? (i use postgis and geoserver).
0
votes
1answer
13 views

Drag issue on an OpenLayers map inside a draggable div

I am new here, so I hope I am doing it right. I have a similar question as Drag issue on an OpenLayers map inside a jquery ui draggable div But I need to go a step further. I have created a setup ...
0
votes
1answer
26 views

filter points in a geoserver layer

So, I have a geoserver layer with point markers (POI) in several category such as ATMs, churches, government buildings, parks, etc. Is there a way to filter this layer via URL parameters so I don't ...
0
votes
2answers
19 views

How to create local map tiles for Open Layers 2 offline use?

I have to use my Open Layers 2 map in an offline stand-alone mode (PC/Laptop disconnected from network). What is the best way to allow easy capture of map tiles for a region of interest, load them ...
0
votes
0answers
10 views

WFS Features problem

I have a problem with Openlayers 2 and WFS. In Geoserver I have a shp file stored as a layer called "Farmacie". This is the code I'm trying to load it with: var LayerWFS = new OpenLayers....
0
votes
1answer
27 views

Removing house numbers from OpenStreetMap using OpenLayers? [closed]

I want to remove all the house numbers of the base layer from OpenStreetMap using OpenLayers 2 and if it is posible the points of interest too.
0
votes
2answers
26 views

Multiple layers within a single geojson file

To give some background, I'm working on a project that has quite a few restrictions given the environment it will run in. I need to be able to view and interact with geospatial data, perform ...
1
vote
2answers
34 views

Working with geoserver and openlayer in android?

I have an application geoserver and openlayer web platform, but must use the android openlayer offline. My doubt is the following, I can install geoserver on android? to work with openlayer using ...
2
votes
0answers
17 views

Uncaught TypeError: Cannot read property 'split' of null

I am getting this error when i display "name" on the map from geojson for "point" entities. var pointStyle = (function () { var style1 = new ol.style.Style({ image: new ol.style.Icon({ ...
1
vote
1answer
25 views

Keep circle color when overlaping on OpenStreetMaps

(I've asked here: http://stackoverflow.com/questions/38859968/keep-circle-color-when-overlaping-on-openstreetmaps but looks like this site is more specialized). I have a small map web page with two ...
0
votes
2answers
21 views

button background image from databse to external css

I am adding buttons dynamically based on the data in the database and i want to dispaly the buttons with images(each button have differnet images). images path is also defined in the database. my ...
1
vote
1answer
63 views

Losing Grass tools after openlayers installation in QGIS 2.16 [closed]

QGIS 2.16 is running well until I install the openlayers plugin. Then qgis loses the grass connection. After deactivating or uninstallation everything works fine again.
1
vote
1answer
46 views

ZoomIn or ZoomOut on click

I have this map with two controls <!DOCTYPE html> <html> <head> <title>Simple Map</title> <link rel="stylesheet" href="http://openlayers.org/en/v3.17.1/css/...
0
votes
0answers
18 views

Service Worker with openlayers

I am trying to make an offline application (not always but sometimes it has to work full offline) so I was searching for options, as most posts say the reasonable way to do this is to install a ...
0
votes
0answers
34 views

Setting Locale in PyQGIS Standalone Application (to Add Basemap with OpenLayers)

I am using PyQGIS to write a standalone application. I have used a spatialite database to add points. I am now attempting to use OpenLayers or Quick Map Services plugins to add a basemap. My issue is ...
0
votes
0answers
10 views

adding placeholder by selecting the icon from dropdown

I am adding the placeholder directly on the map click but I want to select a icon from dropdown first and then i want to add a placeholder. please tell me the code for this. my code for directly ...
0
votes
0answers
20 views

WFS proxy error

i am trying to publish the WFS layer in the map. i wrote the code below:- var map; OpenLayers.ProxyHost = "proxy.cgi?url="; function init() { // allow testing of specific renderers via "?...
0
votes
0answers
24 views

adding and retrieving the markers from database

When user clicks on the map, a marker is add and a popup with textbox is displayed. Then user can enters the comment in the textbox and on clicking on the button the data will be entered in to the ...
1
vote
1answer
13 views

Openrailwaymap not functioning with openlayers2

Pardon me if this is a stupid question, but I am trying since several days now to integrate a basic Openrailway map into a project using openlayers 2 API but it's simply not working. I followed all ...
1
vote
0answers
21 views

Mixing WMS and vector layers' order

It looks to me that I cannot mix WMS and vector layers' order in OpenLayers 2. I have an ordered map.layers object and assign z-index values to the layers based on order in the object, for example, ...
0
votes
1answer
41 views

Performing intersection of WMS layer with another drawn polygon feature without using GeoJSON?

I have drawn a polygon feature on the WMS base layer, then when I try to intersect the drawn feature and base layer I am unable to find the intersection, but when I have used a GeoJSON layer instead ...
0
votes
0answers
10 views

remove placeholder based on featureid and markers are adding multiple times in legend [duplicate]

When user clicks on the map,a marker is added and a popup with textbox and a button is opening. Now I want to add another button (delete) inside the popup, so that if we want to delete the marker, by ...
1
vote
1answer
32 views

List of all features inside a buffer (Web map)

I have web map, created in the combination of: ExtJS 5, Openlayers 2, Geoext 2, and Geoserver. My layers are in postgis linked to geoserver. My scenario are 1 base map, an 10 normal layers. Actually ...
0
votes
0answers
20 views

Zooming the map after filtering a layer

I need to zoom to a specific point after realize a filtering over a layer. But I don't know how to apply it. I understand that the WMS layer is just a picture, and I don't know how to apply the zoom ...
3
votes
2answers
61 views

Create Blue Marble XYZ tiles

I am trying to create my own XYZ tiles to use them with OpenLayers 3 as my local tiles. On this example you can see the objective/idea. I want to use the NASA Blue Marble Earth Visible maps, as an ...
0
votes
0answers
9 views

How to tilt/change angle of view/camera from ortho in Mapserver or Openlayer?

I am wondering if there is a way of changing the angle of the camera in Mapserver from Ortho to a 60degree(+-10) angle. Perhaps this is an extensive modulation of Google Maps? I could imagine that ...
0
votes
0answers
7 views

change layerb color in openlayers [duplicate]

i'm using Geo Server. i made a html code that shows a base map and my layers(point, polygon& line)& some other capabilities like hiding the layers and query. i want to make a tool that users ...
2
votes
0answers
47 views

OpenLayers 3: Geometric OGC filters

How do I generate geometric OGC filters for use in a WFS GetFeature request such as: <ogc:Filter xmlns:ogc="http://www.opengis.net/ogc"> <ogc:Intersects> <ogc:PropertyName&...
2
votes
0answers
36 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 ...
0
votes
0answers
11 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
31 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
25 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
22 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
19 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
99 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
38 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["...
4
votes
0answers
84 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
14 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
60 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
28 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
41 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
28 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
43 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
38 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
17 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
22 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
29 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
28 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 ...