2
votes
1answer
25 views

OpenLayers - cannot set layer opacity

I have the following problem: by default, you can simply change the opacity of layer by writing for example: layer.setOpacity(0.3); But when I add it to my map SelectFeature controls, my layer is ...
2
votes
0answers
28 views

multiple image in OpenLayers

I'm fairly new to OpenLayers so please bear with me. I'm trying to add multiple images to OpenLayers. I have the following (some code is excluded): var images = [image1,image2,image3] // these are ...
0
votes
0answers
40 views

OpenLayers Vector Features with common properties in multiple Layers

I am trying to manage features across different layers. Features are displaying weather parameters at some points on the map. Hence there is a wind layer, a temperature layer, etc. which all are ...
1
vote
0answers
14 views

Many layers from a unique KML files ? (OpenLayers)

I have a KML file generated from a server that contains many networks. I want to know if is it possible to generate one layer for each network from this single KML file ? Thank you!
0
votes
1answer
85 views

Problem with snap layer when in name is space

I'm trying to make a option, where user can choose layer to snap. All is okey when layers names are without space, but if in name is space (like 'something layer name') snapping does not work. How can ...
3
votes
1answer
75 views

Is there a way to know if an error occurred while loading a WMS layer, in OpenLayers 2?

First of all, I already asked this question in stackoverflow. I don't want to spam by asking again here. But I think the question fits better in gis.stackexchange. I am sorry for the replication. Feel ...
0
votes
0answers
18 views

Geoserver layer rotation problem

I have a mapping system setup with PostGIS, Geoserver 2.4.1 and OpenLayers 2.12 I am trying to use the geoserver vendor specific parameter "angle" to rotate a layer, and it seems to work fine. ...
0
votes
0answers
168 views

OpenLayers modify selected feature

I am trying to modify an already selected vector (feature) in Open Layers. In my map i have implemented "select on click" functionality, so what i would like to achive is to have a "Modify" button ...
0
votes
0answers
24 views

LayerSwitcher problem in FireFox: layer after turn off and on are not displayed

I have a problem displaying layers using the LayerSwitcher. The problem only occurs on FireFox and not in the IE. On some applications, layers which I turn off and again on, are not displayed until I ...
1
vote
1answer
58 views

geoserver/openlayers: multiple layer geotiff

I have a geotiff file with multiple layers (46 layers), each layer corresponding to a different date (the geotiff layers corresponding to sea surface temperature, 1 layer per year). I imported this ...
1
vote
3answers
124 views

How to prepare a multi-colored vector layer?

I need to present a multi-colored vector layer and something similar to below: I need to prepare the vector layer by making use with the data set available in my database. Inside my database, I ...
0
votes
0answers
48 views

OpenLayers: WMSGetFeatureInfo shouldn't return feature when a layer is hidden

In OpenLayers, I have a map with several layers. I created a control to query the layers and return feature info. var info= new OpenLayers.Control.WMSGetFeatureInfo({ ...
0
votes
1answer
366 views

Draw order (zIndex) of OpenLayers polygons and points in the same layer

My question is similar but slightly different from this one: http://stackoverflow.com/questions/5003349/openlayers-vector-features-z-indexing I have an OpenLayers Vector layer which contains polygons ...
0
votes
0answers
35 views

Ignore Transparent Pixels for Bounds Determination

I am displaying an Image using GWT OpenLayers on a map. My Image has transparent pixels and the system which returns my Image returns a footprint that is equal to the image plus the transparent ...
2
votes
0answers
76 views

why is my map is not in the center when I load my map in OpenLayers?

why is my map is not in the center when I load my map in OpenLayers?And when I drag my map,it dont move sometimes,It has been tortured me for a long time,any advice would be grateful! var maxExtent = ...
3
votes
2answers
272 views

Access Stamen tiles flavors with OpenLayers

i'm using OpenLayers (v2.13.1) and would like to use Stamen Toner tiles as background. The example is simple to understand : http://maps.stamen.com/test/openlayers.html But i'd like to use the ...
1
vote
2answers
355 views

OpenLayers: WMS layer above select-controlled vector layer?

Is it possible to display an image layer (WMS or Image) above a vector layer with activated SelectFeature control in OpenLayers? The image layer (radar returns) contains only sparse, semi-transparent ...
2
votes
1answer
380 views

Openlayers custom (local) OSM tiles layer with limited extent

I know, how to add an overlay layer by specifying my own URL. But what if the overlay layer extent is not as large as base layer - e.g. overlay layer is only avaliable for one country and not for the ...
2
votes
1answer
142 views

OpenLayers: Can I drag a feature between two maps?

Is it possible to drag the features between two different maps? Now, I create feature on event mouseenter but I would like to insert the feature and at the same time start to drag this feature.
0
votes
0answers
65 views

Change feature's image when it's not clustered

I'm clustering the features on the layer using AnimatedCluster this way: dataLayer = new OpenLayers.Layer.Vector("Data", { strategies: [ new ...
1
vote
2answers
290 views

Custom filters (server side) for Openlayers Vector Layer

I have a vector layer in openlayers with source in GEOJSON (custom php server, which I have in complete control) and BBOX strategy. Vector points contain point sources which have different ...
2
votes
1answer
192 views

Openlayers: How to make layer come to top after choosing it in layer switcher?

I have a base layer and 3 image layers . I also have setup a layerswitcher so that user can choose which layer is to be overlayed on the base map and I have 3 sliders such that user can choose the ...
0
votes
1answer
60 views

Popups on Layer (OpenLayers)

I have the following situation: i display points and point informations in popups. the points are added to a layer. The popups are added to the map, with map.addPopup function. It works great. The ...
0
votes
1answer
717 views

Marker layer not responding to events in OpenLayers

I have multiple layers in OpenLayers: three vector layers, one google map layer, and a marker layer. I registered feature selected event to all three vector layers (which works fine, but btw is that a ...
1
vote
1answer
113 views

Openlayers Overview - disappearing layers

when I do this: var options = { autoPan : true, size : new OpenLayers.Size(300, 200), layers : this.map.layers, mapOptions : { allOverlays : true ...
5
votes
3answers
1k views

How can I set the base layer of map before initialization?

I have been using map.setBaseLayer(layer); to switch to my preferred map layer, using the localStorage variable layer that is stored in my web browser, upon initialization of the map. But I realize ...
1
vote
0answers
64 views

proportion of image layer in OL

I tried create map with single image used OL. But I have a trouble: image in map has a wrong proportions. Img: 1540 x 1481 Img in map: 2858 x1481 My js code: $(function (){ var map = new ...
2
votes
2answers
439 views

Managing a large number of layers in OpenLayers/GeoExt and Geoserver

I am building a web application to facilitate the handling of approximately 2500+ historic maps. I think it would be too difficult for our users to search for specific maps in an ordinary layer tree. ...
0
votes
1answer
98 views

How can I create a button to add a POI layer?

I am making a map of a city with openlayers. I have the shapefile data of the POI (hospital,bank,school etc.) I want to add the layers with buttons not in layerswitcher. Like whereis.com's quick ...
2
votes
1answer
300 views

Get feature from two overlapping KML layers doesn't work

I did an implementation similar to http://openlayers.org/dev/examples/sundials.html The difference is that I have two or more kml layers at the same location and want to show their information ...
2
votes
1answer
1k views

Layer visibility using maxscale minscale not working

I'm using Openlayer and Geoserver. I have a series of layers that have a scale parameter like: 1:50000-1:25000 where 50000 is the max scale while 25000 is the minscale. I have a map like in this ...
1
vote
1answer
1k views

Openlayers Vector Feature Popup

im trying to create a popup in Openlayers that would open when someone clicks a marker. And the marker is setup like this: new OpenLayers.Feature.Vector() and not with the ordinary marker layer. The ...
0
votes
1answer
432 views

Geoserver does not see new layers

I have an existing GeoServer instance running (version 2.1.3). This GeoServer has multiple Workspaces and Stores serving a number of layers as WFS to an OpenLayers map. I want to update my Stores ...
1
vote
1answer
126 views

OSM labels look as red point in geoserver preview layer. Why?

I've imported shp directory files of OSM to geoserver and the city label layer look like red dots instead of showing labels of street names. Is there a fix for this ? (should I declare this layer kml ...
2
votes
1answer
382 views

What is the easiest way to let a user upload overlayers to openlayers (Geoserver/Mapserver)?

I need to let a user upload vector layers he created with QGIS or MapInfo professional to my website (using OpenLayers as client and either Geoserver or Mapserver as WMS). What will be the easiest ...
2
votes
1answer
554 views

Openlayers - Get Type of Layer

Is there a way to get the type of all the layers in an OpenLayer maps object? What I am trying to do is iterate over all the layers in my OpenLayers map object and populate a dropdown list with the ...
6
votes
1answer
159 views

Load third-party APIs only when the corresponding map layer is requested?

OpenLayers allows multiple map layers to be hosted on a common platform. If the map application supports a wide variety of maps, say from Google, Yahoo and Microsoft, I find that upon initialization, ...
2
votes
1answer
1k views

How to record a base layer change event in OpenLayers?

The OpenLayers.Control class possesses an eventListener property which could be used in the layer switcher control. I am not sure how to make use of it to detect a base layer change event so that I ...
2
votes
2answers
2k views

How to make the Overlays section in an OpenLayers LayerSwitcher exclusive?

At the simplest level I need to figure out how to create a customized OpenLayers LayerSwitcher Overlays section which is not using Checkboxes, but uses RadioButtons instead. For my application its ...
5
votes
2answers
2k views

Create multiple vector layers by reading a GeoJSON file once in OpenLayers

I am a begginner to OpenLayers, and my question is about making things more efficient. My work is about displaying time-dependent weather elements on several point locations on the map. All these ...
2
votes
1answer
2k views

How to change an OpenLayers vector layer from automatic to manual get request?

I have a web server that returns a FeatureCollection in JSON. I was getting this using the code below, which works perfectly: var vectorLayer = new OpenLayers.Layer.Vector('geoJSON', { ...
0
votes
1answer
2k views

How to Obtain the feature attributes from feature collection

I am able to obtain the features of the layer which is selected by the user in the Layers table and then intersected by a user defined polygon, using e.features. I was able to obtain the attribute ...
5
votes
3answers
7k views

Change Icon of Single Vector Feature in Layer

Currently I am trying to change the icon of a particular feature of a vector layer that the user is focusing on. I add each feature to the map like so: var point = new ...
1
vote
2answers
710 views

How to overlay points from MySQL served by Geoserver on an Openlayers map?

This might be a very basic question as I am new to GeoServer. What I am trying to do: I have a MySQL table that stores data attached to a spatial point and have latitude and longitude columns to ...
2
votes
1answer
916 views

Problem with layer order in OpenLayers and Google styled maps

I'm using OpenLayers with Google styled maps. My biggest problem is KML polygon layer which needs to be under roads layer but it isn't (see prtscr). What am I doing wrong? This is my coding: ...
1
vote
1answer
988 views

How to overlay roads layer on top of all layers in OpenLayers?

I want to put roads layer (from any source, please recommend some..) on top of my KML polygons and base layer: baseLayer = new OpenLayers.Layer.WMS("OpenLayers WMS", ...
3
votes
1answer
525 views

How to hide some parts of an image layer with OpenLayers?

My Problem I'm currently displaying a layer image above a Google Maps base layer. I would like, when the user check/uncheck some checkboxes, that some parts of this image layer disappear, and the ...
3
votes
2answers
2k views

Load layers only when zoom level is reached

I'm trying to load different layers based on the user zoom level with OpenLayers. I've seen some similar questions in here, but they load the layer and then hide/show it based on the zoom level. I ...
0
votes
3answers
2k views

How to get names of all layers in a store in GeoServer using OpenLayers

I have strict requirement to retrieve names of all layers in a GeoServer store using OpenLayers. I've gone through the post here, but it doesn't answer my question. I've also gone through GeoServer's ...
1
vote
0answers
100 views

Remake gxp class

I want to remake gxp.editFeature class. In standart class to edit object need to choose it on map. I want choose abject in list of objects and edit it. So To do this i need make a new gxp.editFeature ...