OpenLayers is a JavaScript library for creating dynamic map widgets for web sites.

learn more… | top users | synonyms

1
vote
0answers
50 views

OpenLayers - Features in cloned layer changes style with original feature

Please help! My situation is that, I clone() a "newLayer" from an "oldLayer" with its features. Both of them seems correct at first. But then when I tried to change the style of "featureA" in the ...
1
vote
0answers
176 views

how can I set the StartBounds, units, and tileSize correctly in OpenLayers?

how can I set the StartBounds, units, and tileSize correctly in OpenLaters?I can not make sure this parameters,for I use jsonp,and it will dynamticly read layerinfo from esri rest resources. var ...
1
vote
0answers
47 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 ...
1
vote
0answers
94 views

How can I retrieve/query data from shape file for forms/grid in website?

I've made a site using openlayers and geoserver. currently im serving WMS layers from geoserver (shape files). I want to add in my site a search form that the user can search for data (which I have in ...
1
vote
0answers
25 views

OpenLayers - Get LayerName from GML Response object

I am using the WMGetFeatureInfo control in OpenLayers to select items from my layers and return GML. I use this to get an attribute from the GML; var val = evt.features[0].attributes.UID; //Where ...
1
vote
0answers
86 views

Prevent OpenLayers ClickEvent from firing on Popup closeButton

My Code to add popups as selectControl to a Layer. Works fine! map.addLayer(window.markerLayer); // SelectControl für Marker --> Popup window.selectControl = new ...
1
vote
0answers
84 views

Openlayers - How to put street view icon on google layer?

I have a basic OL map with google layer. http://jsfiddle.net/Alophind/bDzg7/ I've read in similiar questions that the following css disable the google street view icon: img {max-width: 100%;} So ...
1
vote
0answers
107 views

How to add Legend Panel to Dojo / Openlayers?

I have openlayers app on dojo framework. I've been serving WMS layers with geoserver and wanted to use GetLegendGraphic to build legend for all layers. I've seen there are some ready widgets (like ...
1
vote
0answers
106 views

How to add new raster store and publish for ECW fromat in GeoServer 2.4-RC2?

I am using GeoServer 2.4 RC2 and Tomcat7 on windows xp OS. I have extracted the gdal-data.zip (2.4.0) and geoserver-2.4-SNAPSHOT-gdal-plugin into Tomcat 7.0\webapps\geoserver\WEB-INF\lib. Now ...
1
vote
0answers
38 views

Gauss-Krueger coordinates in Openlayers

I want to show the coordinates of my map in gauss-krüger coordinates, but nothing works. I tried another projection, displayProjection, lonLat.transform but the answers are the same. my source ...
1
vote
0answers
101 views

Possible to rollback from QGIS 2.0.1?

I'm running Ubuntu 12.04 LTS. Unfortunately Ubuntu has automatically upgraded my QGIS from 1.8 to 2.0.1. And 2.0.1 which creates GeoJSON files that OpenLayers cannot parse. Would be best for me to ...
1
vote
0answers
228 views

Add layers from WMSCapabilitiesStore to MapPanel and select polygons

I created a store and added layers to a grid Panel, when you click add layer to map it works fine, the problem is that when I call the function controle(layer) I can't select polygons in the layer ...
1
vote
0answers
99 views

Changing Default Layer Switcher

How can I change layerswitcher properties(radio button) ? So I want to change just like drop down list ?
1
vote
0answers
88 views

OpenLayers map breaks at certain zoom level when many popups exist in the map

I'm still learning OpenLayers. I found this weird issue in my OpenLayers map. I create FramedCloud popups and add them to each features. popup = new OpenLayers.Popup.FramedCloud("popup", ...
1
vote
0answers
41 views

Recommended way to use a setting file to initialize OpenLayers

I am new to OpenLayers. I am trying to figure out what is the best way to have a configuration file for the map I am creating. For example, I am creating a map with the following style : var ...
1
vote
0answers
49 views

How to set “hit” tolerance for touch dragging in Openlayers

I have a Openlayers map with a single point feature on. When pressing a button I activate a drag handler. My problem is when using mobile devices dragging the point is virtually impossible. No matter ...
1
vote
0answers
51 views

SelectFeature and ModifyFeature in OpenLayers 2.13

After lot of experimenting, I have to give up and ask: has anyone had success in using both SelectFeature and ModifyFeature in OL 2.13 (NB, there were changes to ModifyFeature in 2.13, compared to ...
1
vote
0answers
64 views

Set scale for labels

I have multiple shapefile with different geometry and I am trying to on a label of layers. For create a map I am using Geoserver and Openlayer. Requirement is layer are visible on a max zoom level ...
1
vote
0answers
34 views

Are there any js libraries for reading OSH data?

I want to do time based mapping on openstreetmap data in the Kathmandu, Nepal area. I think i have two options Using OpenStreetMap Change files (OSC) Using OpenStreetmap History files (OSH) I have ...
1
vote
0answers
50 views

georectification via SLD is not appearing at the correct place

I am trying to georectify layers on the fly (feeded by Geoserver) in OpenLayers. To do so, we have created a style (SLD) in Geoserver that does the georectification provided that we feed it a ...
1
vote
0answers
69 views

GeoExt Feature Renderer

I am working with OpenLayers and GeoExt and I have the following problem: I have a point vector layer and I want to create a style that contains 2 symbolizers. In this example they show how this ...
1
vote
0answers
211 views

save features from openlayers to postgis via nodejs and websockets

I try to save features created on a vector layer (openlayers) to postgreSQL 9.1/postGIS 2.0 via websockets. As server I use nodejs 0.10.12 along with the pg module I cannot fix it. Its getting so ...
1
vote
0answers
49 views

Openlayers CQL.js compare attribute columns

I'm trying to use a CQL filter in OpenLayers in order to identify some polygons in which the value of one column is higher then the other. So, when I use the following cql filter production_2010 > ...
1
vote
0answers
147 views

MapServer Clustering GetFeatureInfo

I'm having a bit of a problem with clustering in map server the clustering itself works fine and the GetFeatureInfo works fine most of the time. However some times when I click on a cluster point it ...
1
vote
0answers
36 views

Is there an OpenLayers event when reaching bounds?

I have an app using OpenLayers and OpenStreetMap tiles. There are more zoom levels for the capital and less zoom levels for the entire country. Let's say the user is in the capital, in his car, in ...
1
vote
0answers
41 views

Align OpenLayer raster with OS Mapping Vector

I have an OS Vector map of a town in Ireland. When I load the Google Satellite Raster from the Open Layers plugin, the results are slightly off, by about 2m, probably due to ariel persepective. I'm ...
1
vote
0answers
59 views

Can I edit WMS layer or KML layer?

I am using Openlayers and until now i have been using OSM as background and i got points from my db (mySQL) and add them to vector layer, then i could modify them and save it back to the server. now i ...
1
vote
0answers
103 views

Adding multiple selectFeature Controls for multiple layers in OpenLayers

I am trying to add two different selectFeature controls for two different layers using OpenLayers. I would like to display a popup with information about the feature when hover over a feature in ...
1
vote
0answers
326 views

Create a jgw file for jpg image.

I converted ecw file into jpg file with IrfanView, to display the jpg as base layer in openlayers. I understood that I need to create a jgw file to display the jpg file. I found this example: ...
1
vote
0answers
125 views

Adding charts to OpenGeo suite SDK

I just wanted to gauge the work flow for adding charts to a map using the SDK that comes with OpenGeo suite. I know it seems a vague question I'm just trying to get my head around it :/ So far the ...
1
vote
0answers
52 views

Ubuntu Raring - Openlayers Plugin 1.8 or 1.9 Master

Relative newbie to Ubuntu and QGIS. Many questions are posted relating to the Openlayers plugin. It works fine in windows but I cannot get it to work or even appear in either 1.8 or 1.9. The "fetch ...
1
vote
0answers
47 views

Openlayers : Zoom In and Map Layers Blocked wih WHITE space

I've a problem where something is blocking my map layer when I zoomed the map click to view function load() { map = new OpenLayers.Map({ div: "map", maxExtent: new ...
1
vote
0answers
61 views

Why is my linestring not valid ? was recorded from GPX file

I have a linestring that was built from points from GPX file. I've insert it to sql as geometry and when I try to run funcs on it (like STStartPoint ) I get error that line isn't valid and I need to ...
1
vote
0answers
117 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 │ ...
1
vote
0answers
79 views

Mapserver + tilecache + openlayers attribute search

I'm using Mapserver + tilecache + openlayers for my web map application. I'm using Mapserver as a WMS Server. Now, I want to perform an attribute search, i.e. type something and the application ...
1
vote
0answers
137 views

Commit Feature WPS Split process

I develop a WebGIS application with GeoServer (2.1.1) and GeoExt (with the last version of OL). Data (polygons features) are stored in a postgis DB. I've implemented editing tools that allow users to ...
1
vote
0answers
137 views

Restrict featureinfo fetched with the WMSGetFeatureInfo request in geoserver

i followed a GeoEXT example to create popup menu that gets WMSFeatureinfo on click on the map, What i want to do is to get some specific fields not all the fields, i try the propertyName (with ...
1
vote
0answers
113 views

Want a transformation box after a user draws a polygon

I have built an application which allows users to draw a polygon inside another polygon. The two polygons are in different layers for some application specific reasons. After the user draws a polygon, ...
1
vote
0answers
131 views

Map Matching? (Finding Nearest Roads…)

I am making Pedestrian Navigation System for my school I created node and arc and digitized buildings with ArcGIS. Then, exported KML to use Javascript Dijkstra's Algorithm to find route. So far, so ...
1
vote
0answers
46 views

Why do temporary features disappear when hovered over?

With DrawFeature I'm putting new features to my map. With the hover option of SelectFeature it is possible to get feature information when hovering over it. Now I have the problem of disappearing ...
1
vote
0answers
253 views

Google Maps v3 with Openlayers - First Zoom Level

I use Google Maps v3 in my application and I noticed a strange behavior, When I refresh the web page, the map zoomed out to display the whole map then get back to the zoom level I specify in my code. ...
1
vote
0answers
91 views

How to bring workspace layer to one combo box and once layer selected in this attribute of this layer in other combo box

I want a layers in workspace in combo box.Once i select combo box i want attribute in selected layer to in other combo box. how can i do it. I am using geoserver, openlayers, Geoext and ext js. Can ...
1
vote
0answers
385 views

How to add legend in WFS openlayers

How can I publish WFS openlayer with legend, have tried different examples such as http://api.geoext.org/1.0/examples/vector-legend.js. But when I tried using this firebug shows an error=> ...
1
vote
0answers
104 views

OpenLayers getFeature loading indicator

I need to set up loadMask for OpenLayers.Control.GetFeature. I know i should hide the mask on featureselected event or on protocol callback but when should i show the mask? Here is code (assume i ...
1
vote
0answers
105 views

Editing a vector layer with openlayers

i am trying to develop a webmapping application using openlayers, geoserver, JSF javascript. I published my postgis layers on geoserver and added them to a google basemap on a xhtml page using a ...
1
vote
0answers
107 views

OpenLayers IE performance issues

I have an Openlayers map set up, it is all working well except in IE7 (which most of our users have) where performance is slow. I load in several layers of vector features and then switch these layers ...
1
vote
0answers
624 views

User defined Polygon disappears with featureadded and selectfeature

I am trying to achieve the following functionality: 1. User draws a polygon. 2. Once complete, fetch features in that polygon( Using WFS). 3. On Select polygon, show the features that intersect that ...
1
vote
0answers
80 views

Shows Netherlands region on map on every zoom level not other region in Open Street Maps

I want to show/display only Netherland region on Openstreet map, dont want to show other region on maps. Same thing apply for zoom in or zoom out also. I have tried with applying bounds but does not ...
1
vote
0answers
79 views

openlayers Arcgis WFS mousehover

i have a problem using ArcGIS wfs layer in openlayers. I would like to add the layer to the map as vector layer and then using a mousehover to highlight the features. However i cannot bring it to ...
1
vote
0answers
241 views

How can I parse the SLD file that sits in Geoserver so that I can apply the styling to WFS layer?

I have a layer that can be configured to render as WFS or WMS. I want to apply the same sld styling that I have defined in Geoserver to make it consistent. But when I try to get the SLD text from ...