Questions tagged [openlayers-2]

Use this tag when you are using version 2.x of the OpenLayers JavaScript client toolkit.

508 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4
votes
0answers
495 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 ...
4
votes
0answers
438 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.
4
votes
0answers
546 views

Google base layer opacity change in OpenLayers 2.13

I have recently swapped from using OpenLayers 2.12 to 2.13.1 as it fixes a bug. However in 2.12 I was using a base layer opacity of 0.7 to 'knock back' the map so that the vector layers stood out more,...
4
votes
0answers
700 views

Map with custom tiles having uncommon EPSG

I've produced with mapnik my own tiles with EPSG:31256 on a shapefile. I've structured the tiles in a OSM-like tree: zoom/x/y.png, with zoom from 0 to 2 and, x y starting from 1: tiles ├── 0 │ └...
4
votes
0answers
4k views

How to edit Attributes on WFS Layer through Popup?

I am working on a project for university. So far I have displayed WfsLayers which can be select from a panel, also I can click on my points whereupon a Popup will show up with some information which ...
4
votes
1answer
1k views

Highlighting feature clicked as row in table using OpenLayers 2 + jQuery?

In my project I am trying to display research data on Google Maps. I am using OpenLayers java library in my project. I would like to connect a table to the map in a way that the user can click on ...
3
votes
0answers
33 views

Testing a GeoServer “Scrolling” performance

I'm looking for a way to test the responsiveness of various layers when scrolling around the map. So after a layer is loaded and the user is moving around the map looking a specific area or whatever. ...
3
votes
0answers
74 views

Allow user to pan after once 'box' is draw in Openlayer2

I am using this example http://dev.openlayers.org/examples/draw-feature.html to draw a box on a map using 'draw box' checkbox option. Now I want , After drawing box I can be able to pan on map ...
3
votes
0answers
384 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 ...
3
votes
2answers
456 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 __str__(...
3
votes
0answers
166 views

OpenLayers WFS Multipoint

I am modifying a OpenLayers setup which uses WFS capabilities to create a vectorLayer on a map to support multipoints. GeoServer is setup to send points and multipoints however only points are ...
3
votes
0answers
202 views

Validate that Openlayers GeoJSON layer is in the correct format with OpenLayers.Protocol.HTTP call

I am completely new to JavaScript and OpenLayers, I am trying to figure out a way to validate the received layer with the OpenLayers.Protocol.HTTP call. I want to validate that it is in the correct ...
3
votes
0answers
523 views

Excluding layers from GeoExt 2 Legend Panel

I'm trying to exclude some legend in GeoExt.panel.Legend. I've created a vector layer named 'City Extent' via a function but I want the legend to be removed in the list of legends in my legend panel. ...
3
votes
0answers
706 views

Problem importing KML file to OpenLayers - Projection System

I know that many have this problem,but none of the answers helped me so i suppose it's a different problem.This is my code: <!DOCTYPE html> <html> <head> <title&...
3
votes
0answers
874 views

How to plot heatmap/locations in Geoserver & Openlayers map from the Lat/Lon data of PostGIS table?

I am using Geoserver, Openlayers, PostGIS for Geospatial web implemenation. I have an Indian map shape files for States, Districts, Talukas. I am able to generate a map with states, districts, ...
3
votes
0answers
594 views

Multiple image in OpenLayers

I'm trying to add multiple images to OpenLayers. I have the following (some code is excluded): var images = [image1,image2,image3] // these are url images on my server var image = new OpenLayers....
3
votes
0answers
987 views

How to install Proj4js.js in my localhost directory?

I'm developing a GIS website for vineyard management. I am using Openlayers with the WMTS IGN (French institute for geography) datas. It works fine. I also would like to add the possibility for the ...
3
votes
0answers
165 views

Save WFS layers multiple records with geoext editor grid

How can I save multiple records after modification with geoext editor grid? The saving is working fine if I modify only one of the records, but it fails when I try to save multiple modifications. I ...
3
votes
0answers
1k views

Use of Geoserver raster processes within OpenLayers: WCS/WPS problem

I've been working with some GeoServer processes using OpenLayers as client. I've been successful in those which use WFS as input (like gs:BufferFeatureCollection). My problem comes when I want to use ...
3
votes
0answers
327 views

Set bounds based on layer size

I am using GeoServer+OpenLayers and I have a base layer (Google map) and some additional layers (OpenLayers.Layer.WMS); users can show or hide these layers. I would like when user show a layer then ...
3
votes
0answers
298 views

Why distanceTo gives different results?

I am trying to get distance between two polygons and somehow I get different distance, depending on how I call distanceTo a.distanceTo(b) != b.distanceTo(a) should it be like that? layers[0]....
3
votes
0answers
1k views

Export basemap and vector layers into a single image with OpenLayers 2.11?

Has anyone been able to export OpenLayers 2.11 map and features as a static image? This example is exactly what I'd like to do, but it's using OL3 alpha which is not an option for me... http://dev....
3
votes
0answers
456 views

Cross-browser marker animation in OpenLayers

Currently I'm trying to implement animated markers in OpenLayers. I'm using PNGs for the markers, set by the externalGraphic style property on an OpenLayers.Layer.Vector. I need to be able to make ...
3
votes
0answers
349 views

OpenLayers and external CSS

I am using geoExt and OpenLayers to plot some map. Everything worked well until I had to add some styling. To display it on the webpage, I need to use the CSS of my university and once I do that, I ...
3
votes
0answers
138 views

Help with WPS.client

I am trying to make an application which will test if any of the segments (multi line layer acquired from GeoServer) intersects with polygon acquired using OpenLayers.Protocol.WFS.fromWMSLayer, and if ...
3
votes
0answers
327 views

OpenLayers - Pre cache layers on Client

We are using GeoServer and OpenLayers to display our data. We have a static WMS layer and several dynamic WFS layers. I want to use client side caching of the WMS layer at different pre-defined zoom ...
3
votes
0answers
1k views

OpenLayers2 and GeoJSON - possible to create, modify and delete features?

I wondered if anyone has some OpenLayers GeoJSON code to read, create, modify and delete features (i.e. instead of using WFS-T)? This is how far I've come - I've no problem changing the pop-up to a ...
3
votes
0answers
1k views

Are there any examples of WCS getcoverage requests done using ajax?

I am looking through openlayers to try to figure out a consistent format for generating views of coverages that can satisfy any wcs server, but mainly I'd like to get geoserver coverages. While I've ...
3
votes
0answers
728 views

Print and Export Functionality on web GIS application built with OpenLayers+GeoExt+Extjs+Heron Configuration

I have used OpenLayers+Extjs+GeoExt+Heron configuration to create a thin mapping client. I have added print icon to the client using heron.options.map.toolbar (type: printdialog, options: {printURL ...
3
votes
0answers
596 views

Openlayers 2.12 + Firefox 15 = OSM Layer not showing

I know it's due to the new Access-Control-Allow-Origin in OL 2.12, but it is still not functional to me. I've followed instructions on here on stackoverflow. Firefox version 15.0.1 Apache2 config ...
3
votes
0answers
3k views

Map printing using OpenLayers

Following OpenLayers map printing demo here, I'm able to get my map in image format. But I'm facing two issues with the export: Google Street base map is not included in the image output; Whenever I ...
3
votes
0answers
777 views

Get tile URL with projection different than 900913

I have the following code, which should display a slippy map showing tiles producted by me with mapnik: Proj4js.defs["EPSG:31258"] = "+proj=tmerc +lat_0=0 +lon_0=13.33333333333333 +k=1 +x_0=450000 +...
3
votes
0answers
123 views

When using OpenLayers plugins maps, can I have Longitude/Lattitude labelled on my grid when using the Map composer in QGIS?

Using OpenLayers plugins maps, can I have Longitude/Latitude labelled on my grid when using the Map composer in QGIS?
3
votes
0answers
918 views

Requesting multiple features on different layers

The case: A lot of features need to be rendered on an openlayers map. Drawing all features on the map (WFS) causes performance issues (especially in IE). Therefore I have chosen to use WMS so that the ...
2
votes
0answers
46 views

Is it any way to add more that one OpenLayers.DynamicMeasure?

I would like to make a feature to my webapp, which I could show sum of two(or more) Polygons.. But... When Im drawing another polygon, earlier one disappeared, when I change this.layer.addFeatures([...
2
votes
0answers
99 views

Map markers for OpenLayer map Tiled layers

I need to put some map markers on an OpenLayer map. The map is populated from Geoserver. I have more layers, this is one of it: case "cite:geo_poli_intabulareNouFiltered": var userId = $("...
2
votes
0answers
106 views

Display multiple pop-ups when superposition of polygons with Openlayers

I have a map with polygons vector objects. Superpositions can exist between the polygons. That is to say a bigger polygon is sometimes completely above a smaller one. With Openlayers, is it possible ...
2
votes
0answers
135 views

Map is blurry when mobile viewport is set

we are creating a map using openlayers 2. It is working fine on PC, but on mobile devices map looks blurry. I also tried using incognito mode but I get same result, so there is no problem with cached ...
2
votes
0answers
184 views

How to configure tilestache.cfg “projection”?

I am using tilestache-1.51.6 and mapnik 3.0.9. The tilestache.cfg is { "cache": { "name": "Disk", "path": "/var/www/cachedata", "umask": "0000" }, "layers": { "test": { ...
2
votes
0answers
93 views

OpenLayers 2: Can I delete vector layer or change its z-index when mouse hover on it?

I am adding two vector layers. this.mapport.vector = new OpenLayers.Layer.Vector(); this.mapport.inside_vector = new OpenLayers.Layer.Vector(); map.addLayer(this.mapport.vector); map.addLayer(this....
2
votes
0answers
399 views

TMS tileOrigin on Google Maps ImageMapType

I'm trying to show a tiled image layer on Google Maps, which is currently showing on an OpenLayers / ESRI engine. OpenLayers has a parameter on a TMS layer to specify tileOrigin (0,0 is different) ...
2
votes
0answers
241 views

Consuming GeoServer UTFGrid output in OpenLayers 3 ol.source.TileUTFGrid results in error processing response object

GeoServer now supports UTFGrid outputs for layer services. This is great however the support for consuming them seems incomplete in OpenLayers 3. I set up a simple map to attempt this but can't get ...
2
votes
0answers
356 views

OpenLayers 3: disabling interpolation when loading ol.source.ImageStatic

I want show a PNG layer like this example What I actually get is a smoothed image This is unrelated with the zoom level because when I zoom in or zoom out the image keeps unchanged. So I suppose it'...
2
votes
0answers
1k 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 ...
2
votes
0answers
181 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 ...
2
votes
0answers
61 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. ...
2
votes
0answers
964 views

How to 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 OpenLayers, I do not instantiate Google Maps, and I can't... I use this in ...
2
votes
0answers
63 views

Trigger event after KML Layer completely loaded

I want to set the bounds of my map after a Vector (KML) Layer is loaded. kmllayer.events.register('refresh', kmllayer, function(evt) { map.zoomToExtent(kmllayer.getDataExtent()); }); In the ...
2
votes
0answers
23 views

layer styling switches after zooming in with no reason

Does anybody have an explanation how it is possible? I have a strange trouble on the following map. The surrounding land layer, which is only a one polygon layer and is styled normally like: var ...
2
votes
0answers
141 views

OpenLayers measurment path in 31700 projection

I have this code who works great for distance measurment on 900913 projection with 4326 display projection (bing maps + layer WMS): measureDistanceControl = new OpenLayers.Control.Measure( ...