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

learn more… | top users | synonyms

2
votes
1answer
617 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
618 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
943 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
290 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
248 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
168 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
659 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 ...
1
vote
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
592 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
100 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
5k 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
572 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
919 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
380 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 ...
3
votes
1answer
2k views

Change Vector projection in Openlayers

I have added vector layer to map vactorTest = new OpenLayers.Layer.Vector("Editable Features", { strategies: [new OpenLayers.Strategy.BBOX(), saveStrategy], projection: new ...
11
votes
2answers
2k views

Understanding web mapping tools

Before I start, this is going to be a general question but with specific cases. I've been trying to understand GIS tools and applications to achieve the following: Build my own basemap Publish the ...
2
votes
1answer
422 views

How to find Drawn Polygon intersection with layer elements in OpenLayers

I draw polygon vectors and I can find intersection to each other: vactorTest.features[0].geometry.intersects(vactorTest.features[1].geometry) but I want to find which layer elements this polygon ...
5
votes
2answers
2k views

Layer misalignment with UK Ordnance Survey data and OpenLayers

I am in the UK and my QGIS projects are based on UK Ordnance Survey mapping data and are set up in EPSG:27700. Whenever I have tried dropping an OpenLayers layer (Google Satellite/Bing Maps Aerial) in ...
1
vote
1answer
5k views

Computing Shortest Distance using Google Map v3 and Openlayers

How to compute shortest route between two points in google map that user selects and provide all routes from source to destination in Transport system?
4
votes
2answers
1k views

Beginner needs suggestions on map clicks and geojson

I'm a beginner with programming, and javascript. I went to the FOSS4G-NA conference and was very inspired to learn more. I'm trying to learn PostGIS, and have come across a very useful tutorial for ...
3
votes
1answer
151 views

Can I customize a Google Maps layer in terms of content?

I don't want all features that come with the Google street layer. I just want basic infrastructure like roads, national parks, cities, streets with their names, etc. Everything that is public is OK. I ...
1
vote
1answer
408 views

Markers not displayed in xhtml in OpenLayers

I just started working with OpenLayers because I want to include a map on my JSF page (.xhtml files). I want to use the same feature that is demonstrated in this example: ...
1
vote
2answers
481 views

Re-initializing OpenLayers Map with different projection

Is it possible to re-initialize OpenLayers Map with a different projection ? Scenario: OL Map with projection 4326 is created, along with click, measurement, drawing handlers. A button to switch to ...
2
votes
2answers
1k views

Highlight the WFS Layer on mouseover

I've set up a WFS layer in openlayer: var v1497_shp = new OpenLayers.Layer.Vector("v1497_shp", { strategies: [new OpenLayers.Strategy.BBOX(), saveStrategy], //projection: new ...
2
votes
1answer
1k views

Why doesn't OpenLayers zoom?

I've got a little problem with OpenLayers. I've a simple function which sets the center of the map to the position of the user - this works fine. But: it should also zoom - which, for an unknown ...
4
votes
1answer
3k views

Showing menu based on right click on Point Geometry in Javascript

I have implemented a vector layer(using javascript) in open layers which is having point geometry. Now my requirement is to show menu just besides with the point whenever we do right-click on ...
5
votes
3answers
3k views

Different level of detail(layers) on different zoom level at OpenLayers map

I want display different detail(layers) on different zoom level on OpenLayers map. I mean when zoom in should display lot of layers and when zoom out those unsuitable layers should hide automatically. ...
2
votes
4answers
4k views

How to do geo coding with openlayers?

How can I achieve Geocoding with the JavaScript OpenLayers API, in the same fashion as the Google Maps API?
1
vote
2answers
855 views

How to add pictures to OpenLayers map using GeoServer?

I have web map showing land parcel and buildings.I am using GeoServer WMS and OpenLayers. My buildings are showing as point on map.Then I want to add some images to those points to show when ...
2
votes
1answer
1k views

OpenLayers popup - random losing click event, have to refresh page

I have a OpenLayers, Mapfish, GeoServer map on a webpage. I am using OpenLayers.Popup and getFeaturesInfo to get the attributes from GeoServer (2.1.3). I have several wms layers with markers and ...
1
vote
1answer
2k views

Measuring on OpenLayers map

These days, I am trying to develop web map using openlayers. I copy source code from here Then I changed code to display my data.B ut it does not work, even map is also not showing. In chrome shows ...
1
vote
2answers
2k views

How to get vector feature information (distance and extent ) on OpenLayers

I have basic WMS layer and vector layer in openlayers. Using EditingToolbar i can draw some features as shown below Then I want to get some information (like distance and extent) of drawn features ...
1
vote
1answer
2k views

How to display pop up image when click point in open layer web map

I have basic WMS web map showing parcels and points layer which representing buildings of parcel.Then I want to add building images for each and every point. Then when a user clicks on a point image ...
2
votes
1answer
3k views

Trying to set the OpenLayers MouseOver position to be outside the Map

This is my code and I am trying to obtain the MouseOver to be displayed outside the Map container. <!DOCTYPE html> <html> <head> <title>My Map</title> ...
1
vote
1answer
182 views

Click Handler not working on OpenLayers Map in Ubuntu

This is really strange as the problem seems to be persisting on the Ubuntu OS itself. I have created a WMS and it works fine on Mac and Windows, but not on Ubuntu. I have a simple WMS which is ...
2
votes
1answer
179 views

Any source code for converting an infix filter to a WFS filter?

A WFS GetFeature query looks something like this: ...
2
votes
3answers
1k views

Openlayers: Copy shape layer in a vector layer

I have a web-gis application based on openlayers and geoserver. I need to modify a shape layer. I'm able to show the shape using the OpenLayers.Layer.WMS method. In fact i published the shape in ...
2
votes
1answer
419 views

How to add more than one xml file per layer

I'm using this code to add xml (osm relations) files to my map. osm_layer = new OpenLayers.Layer.GML("Polygon", relation.xml, { format: OpenLayers.Format.OSM, style: {strokeColor: "blue"}, ...
2
votes
4answers
1k views

creating 2 dragable layers at the same time in OpenLayers?

I have been been working with this for a while now. Whenever you add 2 seperate draggable layers, openlayers will only activate the last one added. I wish it could be as simple as the code below. But ...
2
votes
1answer
850 views

Open Layers Control Modification

function testPanZoom() { console.log("test func"); var newPanZoom = new OpenLayers.Control.PanZoom(); OpenLayers.Util.extend(newPanZoom, { onButtonClick: function(evt) { ...
7
votes
4answers
2k views

How to close watermarks window in QGIS Openlayers plugin?

I'm using Quantum GIS Ver. 1.7.4. I have upgraded openlayers plugin 0.7 to 0.9. However when I open google satellite, a watermarks/copyright dialog box "Data Peta@2012 ..." appear in the middle of the ...
2
votes
2answers
4k views

Openlayers - Zoom to selected feature

if I have this vector layer: var vectors = new OpenLayers.Layer.Vector("vector", {isBaseLayer: false}); var feature = new OpenLayers.Feature.Vector( OpenLayers.Geometry.fromWKT( ...
4
votes
4answers
3k views

How do I use base layer of two different projection Spherical Mercator and WGS84?

How do I add baselayer with two different projection? I have added overlayer with a different projection(EPSG:4326), but I need to add base layer with various projection Google Map My vector layer ...
1
vote
3answers
2k views

WMSGetFeatureInfo not showing in Firefox and chrome

This code set works for me in IE but not in Firefox and chrome.What is the problem? Map is showing in all browsers ,but when i click on point of map nothing showing in Firefox and chrome. Welcome ...