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

learn more… | top users | synonyms

6
votes
4answers
2k views

WMS GetFeatureInfo and CQL on Multiple Layers

I am having issues with querying CQL filtered layers with OpenLayers and GeoServer, using the GetFeatureInfo control. It is ignoring the CQL filter and just querying the entire layer (as evidenced by ...
3
votes
2answers
963 views

Display two layers with OpenLayers at once

How can i display two layers with diferent projections at once? For example i have layer with EPSG:70076 and OSM layer.
1
vote
2answers
750 views

Set up the center of a map with Google Layer as basemap in OpenLayers and GeoExt?

I looked on similar questions but in vain. The map is working fine but has a center of (0,0) as returned in the Firebug console not (-8, 32) that I want. I did the projection transformation.. Here is ...
3
votes
1answer
1k views

How to prepare or normalize raw shape (.shp) files for Openlayers use

Hi all it seems like I am having difficulties in normalizing raw map files' resolutions to openlayer's use most probably in parameters mapext and imgext. I hope you can help me with this. Using raw ...
1
vote
2answers
815 views

Why should we use a proxy script for Apache, Geoserver, OpenLayers?

I can't understand why we use proxy( OpenLayers.ProxyHost)for WMSGetFeatureInfo request in open layer. I am using open layer 2.10 ,apache-tomcat-6.0.35 and geoserver. Why we use proxy? How should ...
3
votes
1answer
369 views

How to migrate a Geoserver setup to Tomcat?

I have some problems with tomcat/geoserver. I was create project in stand-alone geoserver and all works fine. This is my code. <%@ page language="java" contentType="text/html; charset=UTF-8" ...
1
vote
1answer
1k views

To get FeatureInfo in OpenLayers

I am new to OpenLayers and I want to add OpenLayers.Control.WMSGetFeatureInfo to get feature info to website.But i can't figure out right method. I also see the source code of GeoServer OpenLayers ...
1
vote
0answers
37 views

Reprojecting in OpenLayers [duplicate]

Possible Duplicate: How to reproject base layers in OpenLayers? I Am trying to reproject my map from epsg:4326 to epsg:900913 but I couldn't do it. here is my codes OpenLayers Example ...
0
votes
0answers
205 views

session id changing ; tomcat and apache web serevr

I'm using a WFS protocol on Vector layer. also I'm working on 2 servers, tomcat (to deploy GeoServer) and Apache web server(because i use php) I have an HTML page works on Tomcat and login.php and ...
10
votes
6answers
2k views

Should I use a CMS for my web mapping application?

For my web mapping app, I am using GeoServer as server, PostGIS as spatial DB and OpenLayers on client side (as well as other JS libraries). The map is composed of base maps and vector layers. One of ...
1
vote
1answer
321 views

Identify functionality using mapserver

I am just creating a simple web application using mapserver. It has the basic pan, zoom in/out functionality. Now what I want to try is to get an identify functional added into it so that when I click ...
1
vote
2answers
338 views

What components does OpenLayers.Strategy.BBOX require for compilation?

I recompiled OpenLayers with minimal settings, and now Vector layer, that uses BBOX strategy, stopped adding bbox parameter to the queries. What components do I need to add? This is the current ...
3
votes
2answers
1k views

Ovi Maps in OpenLayers?

Yahoo stopped their Yahoo! maps web services (link1 : We are shutting down this service on September 13, 2011. We suggest using maps from our partner Nokia. Please visit the Ovi Maps API for more ...
2
votes
1answer
898 views

Touch 'tap' event not available on openlayers 2.11 map (update: click works fine)

According to Will mousedown events fire with Touch events on OpenLayers mobile?, openlayers 2.11 supports click-like behaviour for vector layers only. Separate from that, regular ...
2
votes
1answer
3k views

Why does Geoserver WMS not work in OpenLayers?

I am relay new to webGIS and these days i trying to develop webmap using FOSS software. This is my codes of open layers and it is not working. Geoserver URL ...
1
vote
1answer
336 views

what format distanceTo function returns in OpenLayers?

i am using distanceTo function in OpenLayers Geometry. http://dev.openlayers.org/docs/files/OpenLayers/Geometry/Point-js.html#OpenLayers.Geometry.Point.distanceTo here am confused in which format it ...
3
votes
1answer
2k views

Openlayers zooming and panning restrictions don't work

Consider the following example (I tried to keep it as simple as possible). <html> <head> <style> #map { width: 800px; height: 600px; } </style> <script ...
4
votes
2answers
2k views

Prevent OpenLayers WMS layer cache by browser

I am using OpenLayers (GeoExt) with google chrome browser. All WMS layer is for live database. I have refreshed the browser at certain interval using javascript but the data is cached in browser and ...
6
votes
3answers
1k views

Determine if a polygon intersects itself in OpenLayers

I let the users draw polygons and then I try to save them out to the SQL Server 2008 SQLGeography field, but it is giving me an error: Error 24200: The specified input does not represent a valid ...
3
votes
1answer
888 views

printing openlayers map

What i've got is a map served by the tilecache and shown by openlayers and geoext. Now i need to print this map, so what i've done is: made a button which creates (window.open()) a new window with ...
2
votes
1answer
1k views

How to make a predetermined Polygon (Circle) From 4 Coordinates, The Radius and Center Longitude and Latitude in Openlayers

I know how to make a predetermined Polygon in Openlayers (see below). Please have a look at http://studio.netnrg.co.za/dev/rnd/blake.loizides/openlayers var feature2 = new ...
1
vote
1answer
63 views

Doubts about Manipulation of Layers

I'm working with OpenLayers, I created a new plugin to perform a selection feature. But every event I perform in my plugin button it creates a new layers. (Attached is a print). Of the attempts that ...
2
votes
2answers
1k views

OpenLayers GetFeatureInfo Error in Geoserver

I was advised in a previous post to ask this question again using a small data sample My base layer is a postgis vector dataset in WGS84 When I click on the map I get the following an error in the ...
1
vote
2answers
2k views

add location search to openlayers map

I am trying to figure out how to add a search functionality to my openlayers map. I want the user to type in an address and the map to zoom into the location. I am looking at different geocoders and ...
2
votes
1answer
360 views

OpenLayers WPS function fails in IE

I am making a WPS call in OpenLayers which works successfully in Chrome and Firefox but not in IE9. The response from IE tells me "Process failed during execution\nCould not convert to target type ...
3
votes
2answers
3k views

How to get routes and download them from OpenLayers?

I am trying to generate a route in openlayers with a start and end points and some points during track. I read about openroute: http://wiki.openstreetmap.org/wiki/OpenRouteService#RouteLink But I ...
4
votes
2answers
640 views

How to display OSM relations in Openlayers with tags as legend?

I would like to show this type of relations in a simple map with Openlayers. http://www.openstreetmap.org/api/0.6/relation/1637735/full I'm specially interested in being able to show tags as legend. ...
3
votes
1answer
672 views

OpenLayers Point Feature Vanish on Zoom-In

I use OpenLayers to animate a point moving along a line. To do this I use several map layers and one vector layer to contain one LineString feature and one Point feature. Currently, the animation is ...
0
votes
2answers
4k views

Update or destroy popup in openlayers

I am doing a map which refresh dinamically all markers when they get modified. I want to add popups to show some info. I create popups this way: var feature = new OpenLayers.Feature(markers, ...
2
votes
1answer
390 views

combine two OCG filters in Openlayers : ERROR: invalid input syntax for integer

i need to combine two OCG filters. each one works fine separably but if i combine them using Filter.Logical.OR, the first one works only. var c_filter = new OpenLayers.Filter.Logical({ type: ...
2
votes
1answer
638 views

Openlayers Polygon not visible

I have just recently started playing with mapping but have had limited success. I have been able to create/display markers, but in my current project I am trying to display zipcode areas by creating ...
1
vote
1answer
338 views

openlayers map inside a dojo dialog

My application is currently displaying some search results in a dojo grid inside a dialog. I've been asked to embed a map inside the dialog but am struggling to do so. Has anyone done this? I've got ...
1
vote
1answer
584 views

Vector layer won't move as window resizes in Chrome

I have a GeoJSON layer that I am treating as a javascript object in my openlayers map. When I use IE or Firefox, everything works fine. However, in Chrome, as I resize the window, the GeoJSON layer is ...
6
votes
1answer
160 views

Is it possible to display an OpenLayers map upside-down?

This is more fun than a serious question, but I'd like to know if it's possible to display an OpenLayers map upside-down as per the uncommon, but interesting upside-down maps. I guess it's mostly a ...
2
votes
1answer
317 views

OpenLayers.Format.CQL Regex Problem

I have a cql filter as SQL. Im trying to parse this cql to OpenLayers.Filter using OpenLayers.Format.CQL.read() method. It all works fine since my input is ascii. When I type Turkish characters as ...
2
votes
1answer
2k views

How do I Use OpenLayers Multi-lingual capabilities?

So, OpenLayers has a i18n namespace. But in my example at the bottom of the blog. I am not getting the "Pan Up" which is what I would expect, but instead "PanUp", which is the string that should be ...
1
vote
1answer
844 views

display openlayers lat/long map bound on page

I want to display the bounds of my current extent on the page. I am not too great with javascript. I know it must be related to this: map.getLonLatFromPixel(new OpenLayers.Pixel(bounds.left, ...
4
votes
1answer
1k views

How to integrate OpenLayers and ArcGIS Server?

I am using the OpenLayers JavaScript API within a web application. I am displaying non-base layers hosted on an ArcGIS server. When I load the ArcGIS layers, I load them using ...
1
vote
1answer
371 views

Openlayers Css problem?

I have succeeded to show Openlayers map in my application, when i show css popup(not Openlayers Popup) map has to blank as the rest of the application. But Openlayers map is not getting blank. What ...
1
vote
1answer
487 views

Preventing an Openlayers WMS layer from updating on zoom-change

I'm using openlayers to overlay a raster. When I zoom out, the overlaid layer expands to cover a larger area than was originally requested. I want the tile to be fixed to a particular boundary, and ...
2
votes
1answer
1k views

QGis failed with error: latitude or longitude exceeded limits

I have some shapefiles from vegetationtypes in QGis and i wanted to put a googlemap in background, so i installed the open layers plug in. But every time i tried to load the map, theres an error ...
0
votes
0answers
113 views

how to limit points(of particular parameter) in shapefile in WMS?

I wanted to filter out the points in shape by passing parameter and display points on screen in WMS that pass the parameter. I am taking shapefile from geoserver in WMS. Can any one help me ot with ...
2
votes
1answer
1k views

With OpenLayers addLayer(s) Isn't Displayed

I am trying to figure out why the addLayer here isn't displaying the boxes that are present in the example shown below: function($) { var box_extents = [ [-10, 50, 5, 60], [-75, ...
1
vote
0answers
55 views

How to load WFS in jsFiddle?

I'm trying to implement a WFS service in jsFiddle for an OpenLayers map. It works fine here: http://openlayers.org/dev/examples/cql-format.html My example of it is (the map loads but the filter ...
2
votes
1answer
170 views

Can't Seem to Replicate the KML Layer in jsFiddle

I can't see why I am unable to replicate the KML Layer Example: http://openlayers.org/dev/examples/sundials.html in jsFiddle: http://jsfiddle.net/JPN4C/ I'm assuming that it's the map protocol ...
3
votes
1answer
2k views

OpenLayers & GeoJSON files

After some hunting, it seems that if I have an a geojson file, I NEED the data and map to be on a server in order to view this in OpenLayers because of the protocol class. I saw an example where I can ...
1
vote
2answers
822 views

Getting OpenLayers Working in jsFiddle

Has anyone else noticed a problem getting OpenLayers to work within jsFiddle? I can't see what's wrong with http://jsfiddle.net/dPdhZ/ or the others I've mentioned here: ...
2
votes
3answers
4k views

Beginner HELP please : How to add a WMS layer from GeoServer with OpenLayers?

After doing some basic OpenLayers examples where I used WMS layers from WMS providers like this: http://maps.opengeo.org/geowebcache/service/wms, I wanted then to add a WMS layer from my GeoServer. I ...
2
votes
3answers
2k views

Display 3d building using OpenLayers

Is there any way to display a 3d building model as a layer under OpenLayers ? i have the building models drawn using Google sketchup , is that useful ?
1
vote
0answers
453 views

OpenLayers + GeoServer + Oracle: WFS-Transaction update error

I am trying to implement wfs-t in a map application. tried using ArcGIS server wfs-t, and didn't make it since there is a lock mechanism while trying to edit a feature.ArcGIS WFS-T + OpenLayers; then ...