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

learn more… | top users | synonyms

0
votes
1answer
698 views

How to change projection for layer?

i use two seperate datasource for my layers: sql database for main map data, this is using EPSG:900913 osm file for some extra features, this data use EPSG:4326 projection tiles for both layers ...
3
votes
2answers
720 views

OpenLayers dynamic rules defintion & clone function filter

I'm developing on a OpenLayers application which creates dynamic rules for a vector layer using the geostats library. I want to create these rules inside a simple loop through the number of classes. ...
0
votes
1answer
1k views

Alternate colors of GeoJSON linestring segments in OpenLayers?

I am rendering a vector linestring via GeoJSON on top of an OpenLayers map. I'd like to alternate the styling between two slightly different shades of blue, such that the colors alternate from one ...
1
vote
1answer
848 views

How can I change mouse icon on hover a WMS layer feature using OpenLayers and GeoServer

my unfinish app is: "http://190.5.81.197/MAPA_OL/mapa/matricula.html#" i just want to know how cant I change mouse icon when the mouse is over a marker on a wms layer i am using goserver to create ...
0
votes
0answers
2k views

GeoServer/OpenLayers: Overlay WMS on Bing Map

I am coming from the ESRI side and learning GeoServer/OpenLayers. It seems the only way to overlay one layer on Bing or the like is to use WFS. In my opinion, WFS transfers a lot of data to the client ...
0
votes
2answers
179 views

How do you pass parameters for Proj4js implementation with OpenLayers

I am using Proj4js along with OpenLayers for the transformation of x,y (projection type is Transverse Mercator) to long, lat. While executing "inverse()" method what I noticed that in tmerc.js some ...
1
vote
0answers
509 views

How to display indoor map using OpenLayers?

I created my osm file in JOSM, and i imported it to my database by osm2pgsql tool. I created new layer in my osm.xml file, which selecting data with query: select way from planet_osm_line, (select ...
1
vote
0answers
112 views

How to reduce transparency for Openlayers using Map Composer?

Increasing transparency of Openlayers will increase the contrast of others layers. For sure, it will increase the esthetical aspect of maps.
0
votes
1answer
327 views

OpenLayers/Extjs/Mapfish put permaink in menubar

I solved my problem Problems getting openlayers permalink working on how to get the maps view permalink but now I want to put the permalink in the toolbar instead of reloading the page with the ...
2
votes
1answer
823 views

GetFeature with WFS layer is not working as the click co-ordinates are returned in spherical co-ordinates

GetFeature with WFS layer is not working as the click co-ordinates are returned in spherical co-ordinates. using geoserver 2.1.3 and openlayer 2.11 layer information is in EPSG:4326 WMS works fine ...
3
votes
1answer
720 views

Waiting for Vector & WFS loading

user borrowed from friend since i use vector layer with wfs protocol, there is a little while before features loaded on the map. So i need to tell user to wait a moment until they load. what best ...
0
votes
1answer
2k views

creating vector layer from OSM file using OpenLayers

Using OpenLayers, I am creating a vector layer over a map. This vector layer is created from an OSM xml file. My purpose is to do some experiments in Prolog with this data, for example, querying the ...
1
vote
1answer
344 views

sometimes a white, square dialogue appears in the middle of the screen: Map Data … Google maps

I have this code and some of the time,(not always!!), i have a dialogue that get displayed in the middle of the map: Google Maps Map data (c)2012 Google var map; var vectors; var ...
0
votes
1answer
284 views

Unselect all layers and clear the legend in Openlayers

Is the there a way of clearing the legend in Openlayers by unselecting all the layers? We have a map that starts with several layers. I was thinking that we might be able to add a button to the ...
1
vote
0answers
1k views

how can we save vector files in openlayers

i'm using Postgis + tomcat + geoserver + openlayers for my application. with the help of some tutorial i have reached upto gettting feature information of layers. Next i want to edit and save ...
1
vote
1answer
134 views

Tool For Generating Formula for Projection

I am using Proj4Js for northing,easting to lat,long transformation. My Datum is "AGD84" and projection is "Transverse Mercator". While doing so I found that if I don't specify "+proj" parameter in ...
3
votes
3answers
2k views

WMS Request not served to OpenLayers by GeoWebCache off GeoServer

I'm developing a GIS app that makes use of GeoServer and GeoWebCache for serving requests, and OpenLayers for frontend. WMS requests to the GeoServer are served with no issues. But when I make a ...
2
votes
1answer
530 views

using google maps, the mouse cursor and the dot on the map not inline

i'm trying to implement the example http://openlayers.org/dev/examples/drag-feature.html . When i'm implementing this with a Google map, I have a strange bug: the mouse pointer and the dot on the map ...
1
vote
0answers
964 views

Adding Access-Control-Allow-Origin: * to Jetty in Geoserver [closed]

So i am trying to add Access-Control-Allow-Origin: * In the Jetty config file, on which the Geoserver is running to receive the contents from popup (which I am not receiving since there is no ...
0
votes
1answer
826 views

Problems getting openlayers permalink working

I set up an openlayers permalink function. I set the code and it shows up. But the URL does not work. Where is I get a link like this: ...
2
votes
2answers
398 views

OpenLayers - SelectFeature fails on a small polygon on top of a larger polygon

I'm using new OpenLayers.Control.DrawFeature to draw polygons and OpenLayers.Control.SelectFeature to select a specific polygon. I'm drawing one polgon and then a smaller polygon on top of the first ...
1
vote
1answer
207 views

Mapnik not generating tiles for tilecatche

imported data by using Osm2pgsql, to get rid off all problems related to data conversion, i stored this as latlong (-l parameter).I created stylesheet, and i tested with python script and it was ...
2
votes
1answer
953 views

Getting capabilities from tomcat's Geoserver fails

I wanna teke capabilities from tomcat's geoserver. Use this. wms = new OpenLayers.Format.WMSCapabilities(); OpenLayers.Request.GET({ ...
1
vote
1answer
2k views

Click to Hover for WMSGetFeatureInfo

I am using the following code and wanted to know how I can change it from click event to hover or mousemove event. I know there is a eventListner but I am unable to locate the click event where I must ...
2
votes
2answers
476 views

Can I display cloudmade tiles in arcmap 9 or arcmap 10?

I have created a number of cloudmade maps which I use in my opensource webstack using openlayers. I have been asked if the cloudmade maps could also be shown in ArcMap, but have not seen any way to ...
3
votes
1answer
1k views

How to get bbox from capabilities?

I have WMS layer and want use zoomToExtent after CQL filter. So i gonna get bbox from geoserver. wms = new OpenLayers.Format.WMSCapabilities(); OpenLayers.Request.GET({ ...
3
votes
1answer
2k views

Openlayers + WMS layer. Use scale or resolution + DPI

I have a problem with displaying map with WMS layer in Openlayers. I'm able to display it but the image of the map is not sharp especially at higher zooms. I have a documentation from the map ...
0
votes
0answers
61 views

How to turn off Google map data copyrighted window in Google Street layer (Qgis - Openlayers Plugin)? [duplicate]

Possible Duplicate: How to close watermarks in openlayers plugin After a few weeks not using Qgis, this morning I opened it up, accepted a request to update Openlayers Plugin. Right now, I ...
1
vote
1answer
667 views

Efficient WMS or TMS Loop for Radar data?

I'm looking for an efficient way to loop radar data from a Tilecache or WMS Server. Right now, I make an array of layers and increment through them, but this seems inefficient since I end up with a ...
2
votes
0answers
384 views

Zooming the map after filter

I have wms layer and after i do cql filter on this. And now i want to see result. I want map zoomed to this result. My code. ex=layer.getExtent(); map.zoomToExtent(ex); But getExtent() returns ...
2
votes
1answer
662 views

Syntax of WFS request in OpenLayers

I am in need of the correct syntax for loading WFS layer using OpenLayers. I have gone through many examples on the OpenLayers site and other examples, but can't figure out how to use the necessary ...
3
votes
1answer
664 views

WMS,WFS Services in Mapserver

I am new at Mapserver. I was trying to get WMS and WFS services started but could not get any simple article to start the services from scratch and display service data into openlayers. Please ...
1
vote
1answer
2k views

distanceTo is giving wrong result in OpenLayers?

Hi i am using distanceTo from OpenLayers to calculate the distance between two locations these are map details Geographic = new OpenLayers.Projection("EPSG:4326"); Mercator = new ...
5
votes
1answer
1k views

MGRS in OpenLayers

I am trying to view the Military Grid Reference System coordinates in Openlayers through the MousePosition control. Is there an easy way to accomplish this just through Javascript? I am looking at the ...
0
votes
3answers
1k views

How to zoom map after CQL_Filter?

I have WMS map, after applying CQL filter to layer how can I zoom map to see filter result? UPDATE: Here is my code what I'm trying to do var layerArray = map.layers; var someLayer; for (var i = ...
2
votes
1answer
1k views

GeoWebCache OpenLayers WMS request structure

I'm developing a GIS app that makes use of GeoServer and GeoWebCache for serving requests, and OpenLayers for frontend. WMS requests to the GeoServer are served with no issues. But when I make a ...
1
vote
1answer
294 views

Can feature Info be extracted from WMS

Ok since my previous problem of overlaying WFS onto WMS is still unsuccessful, I though was able to overlay the WMS instead with this code, {layers: 'iPlant:AllQuebecSpecies', transparent: true} So ...
1
vote
1answer
3k views

OpenLayers - WMSGetFeatureInfo, picking a feature's attribute from a WMS layer created in GIS Cloud

I created a WMS layer in GIS Cloud app. I use GIS Cloud because they provide prepared app to transfer data from mobile to layer. The URL of WMS layer: ...
0
votes
1answer
254 views

Advantage of using WMS over WFS [duplicate]

Possible Duplicate: Comparison of WMS and WFS services I am trying to overlay WFS over WMS and still not successful. So wanted to know when and why would someone use WFS? I need to extract ...
2
votes
0answers
169 views

Rerendering OpenLayers in JSF2

did anyone try rerendering OpenLayers in JSF2? I am using a4j:ajax events, I mark the render atribute with render="map" where map is naturally the id of the openlayers div tag, and I use ...
1
vote
1answer
699 views

OpenLayers Scaleline always wrong in my virtual star map

I got a problem for the scale line when I using openlayer to show my "star map". Basically, I give a set of 2D coodinates (X,Y) for each star, and generate the map using map server. Now the map can be ...
4
votes
2answers
2k views

Unable to create WFS successfully

I know there has been lots of WFS assistant and I did follow this one word by word, which I found was the best in the entire gis stack but still no clue why I am unbale to render a WFS on base map. ...
7
votes
1answer
1k views

How to configure custom scale in Leaflet?

I have a custom WMS tileset generated using ESRI ArcGIS Server. I have successfully configured an OpenLayers page to display this basemap. The code is as follows: var map = new ...
2
votes
2answers
2k views

LayerSwitcher() not working with Group Layers from Geoserver

i have used LayerSwitcher() before and it has worked fine but I am now trying to use it with the group layers in Geoserver and the map blanks out. tiled = new OpenLayers.Layer.WMS( ...
2
votes
1answer
651 views

Which web application framework is easiest for building website displaying lot of geospatial data?

I am building a simple website that displays a lot of geospatial data (which is routed through Geoserver). I was trying to use Drupal-6 to build the website component (non geospatial descriptions) but ...
2
votes
0answers
102 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?
4
votes
3answers
6k views

How to get the layer name?

I am using OpenLayers, Geoserver 2.1 CQL language. The problem is that I do not know how to address the layer. I am trying to call a function like this: var createWmsLayer = function(name, url, ...
3
votes
1answer
628 views

How to use drag feature in 2 layers?

I used the following code: this.installDrag({layer:this.poiLayer,opt:'load',id:'poiLatlong'}); this.installDrag({layer:this.addNewPoiLayer,opt:'add',id:'poiLatlong'}); but drag is installing for ...
6
votes
2answers
965 views

Options for PostGIS and Mapserver outputing SVG, and client with OpenLayers

This question is related to "Options for displaying PostGIS vectors in OpenLayers?", but I need SVG output on server. OpenLayers must render SVG directly. We are using Mapserver6, and thinking on WFS ...
1
vote
1answer
400 views

How to get CQL_FILTER parameters from vector polygon

map projection is EPSG:900913, displayprojection for map EPSG:4326. vector layer is polygonLayer = new OpenLayers.Layer.Vector("Polygon Layer"); with draw polygoon option with following code I get ...