Questions tagged [openlayers-2]

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

499 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
6 votes
0 answers
3k views

WFS-T: changes not saved on an OpenLayers map

I have written a script allowing to display a few WMS and WFS layers and I want to make my 2 WFS layers editable. I have all my controls and can draw / modify / drag / delete my features but, on one ...
Stéphane Henriod's user avatar
4 votes
0 answers
794 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 ...
jwd630's user avatar
  • 206
4 votes
2 answers
1k views

GeoJSON data not displaying on Openlayers map 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__(...
Bruce's user avatar
  • 499
4 votes
0 answers
591 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.
hamizah's user avatar
  • 41
4 votes
0 answers
575 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,...
Jon P Smith's user avatar
4 votes
0 answers
752 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 │ └...
caneta's user avatar
  • 579
4 votes
0 answers
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 ...
Timothy Dalton's user avatar
4 votes
1 answer
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 ...
user12316's user avatar
3 votes
0 answers
110 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 ...
Learner's user avatar
  • 131
3 votes
0 answers
122 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 ...
RubbelDeCatc's user avatar
3 votes
0 answers
628 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 ...
richy's user avatar
  • 31
3 votes
0 answers
326 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 ...
AlexanderH's user avatar
3 votes
0 answers
415 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 ...
dcuevas's user avatar
  • 31
3 votes
0 answers
258 views

Transform GeoTiff to WMT

I'm not a GIS specialist at all so this question may seem dumb to you. I have a GeoTiff base of images (hundreds) I'd like to transform to a WMTS repository to put behind a web server. Web pages are ...
user51082's user avatar
3 votes
0 answers
550 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. ...
Loupi's user avatar
  • 131
3 votes
0 answers
893 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....
c11ada's user avatar
  • 131
3 votes
0 answers
1k 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 ...
user30803's user avatar
3 votes
0 answers
191 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 ...
MartinTolnai's user avatar
3 votes
0 answers
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 ...
Constan Amurrio's user avatar
3 votes
0 answers
317 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]....
Artis's user avatar
  • 33
3 votes
0 answers
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....
user2386785's user avatar
3 votes
0 answers
543 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 ...
ach's user avatar
  • 131
3 votes
0 answers
545 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 ...
Bulkilol's user avatar
  • 283
3 votes
0 answers
385 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 ...
gisWeeper's user avatar
  • 227
3 votes
0 answers
2k 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 ...
user10895's user avatar
3 votes
0 answers
810 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 ...
Barbara's user avatar
  • 231
3 votes
0 answers
755 views

OpenLayers, valid zoom levels are offset by 1 level. Why?

I have an OpenLayers based web app, map object is initialized like this: p4326 = new OpenLayers.Projection('EPSG:4326'); p3857 = new OpenLayers.Projection('EPSG:3857'); //initialize map object, bind ...
U2ros's user avatar
  • 5,117
3 votes
0 answers
653 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 ...
fradeve's user avatar
  • 253
3 votes
0 answers
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 ...
okello's user avatar
  • 1,780
3 votes
0 answers
857 views

Getting tile URL with projection different than 900913

I have the following code, which should display a slippy map showing tiles produced by me with mapnik: Proj4js.defs["EPSG:31258"] = "+proj=tmerc +lat_0=0 +lon_0=13.33333333333333 +k=1 +...
caneta's user avatar
  • 579
3 votes
0 answers
707 views

Creating a Geodesic Polyline Buffer in OpenLayers

I have a feeling that the answer is going to be 'You can't do that without some very complex coding' but I thought I'd go for it anyway. I recently asked Creating Polyline Buffer in OpenLayers 2?, ...
Rob Quincey's user avatar
  • 1,730
3 votes
1 answer
138 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?
Doum's user avatar
  • 839
3 votes
0 answers
943 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 ...
Boedy's user avatar
  • 447
2 votes
0 answers
77 views

Distance between points not consistent

I have an Openlayers application where I can input a centre point, width and height in meters from which I can generate a bounding box to display on the map. The problem I'm having is calculating the ...
Diplonics's user avatar
  • 163
2 votes
0 answers
55 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([...
nEJVI's user avatar
  • 21
2 votes
0 answers
426 views

Geodjango PostgreSQL/PostGIS database question

I have a simple django app using sqlite3. My app is simple I have django user authentication system where the user can be upload spatial raster images and can see that images in user personal HTML ...
jessie jes's user avatar
  • 1,061
2 votes
0 answers
282 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 ...
Julien's user avatar
  • 131
2 votes
0 answers
274 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 ...
user1403588's user avatar
2 votes
0 answers
223 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": { ...
Adithya's user avatar
  • 147
2 votes
0 answers
194 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....
ephemeral's user avatar
  • 121
2 votes
0 answers
1k 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) ...
jean's user avatar
  • 131
2 votes
0 answers
453 views

Using OpenLayers to work with REST from ArcGIS ImageServer

I already have ArcGIS Image Server for publishing raster data to my users. I have a third party application that will allow me to add a custom web map as a base layer using OpenLayers2. I have found ...
B-Riv1808's user avatar
2 votes
0 answers
403 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 ...
jmapping's user avatar
  • 115
2 votes
0 answers
401 views

How to tilt/change angle of view/camera from ortho in MapServer or OpenLayers?

I am wondering if there is a way of changing the angle of the camera in MapServer from Ortho to a 60 degree (+-10) angle. Perhaps this is an extensive modulation of Google Maps? I could imagine ...
MichaelR's user avatar
  • 542
2 votes
0 answers
2k 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 ...
LoveProgramming's user avatar
2 votes
0 answers
85 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. ...
user1309226's user avatar
2 votes
0 answers
2k 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 ...
André's user avatar
  • 101
2 votes
0 answers
728 views

Multiple geometry types layer in Geoserver?

I am using OpenLayers and Geoserver in a web map application in which I'd like to implement editable layers by drawing features on it. I followed this tutorial to save the created features with WFS-T ...
Kef's user avatar
  • 135
2 votes
0 answers
25 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 ...
KriKox's user avatar
  • 135
2 votes
0 answers
221 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( ...
Sasu Andrei's user avatar

1
2 3 4 5
10