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

learn more… | top users | synonyms

1
vote
0answers
282 views

What are the differences between Anchored, Framed and FramedCloud?

From the API document for OpenLayers, I can tell that a FramedCloud has more functionalities than Framed, which in turn has more functionalities than Anchored. I am hoping for someone to describe ...
1
vote
0answers
78 views

OpenLayers doesn't understand Mercator map measured in degrees?

I have access to a map server that takes a bounding box measured in degrees, and returns a map, projected in Web Mercator. I'm having trouble configuring OpenLayers to use a Mercator projection that ...
1
vote
0answers
440 views

OpenLayers dynamic zoom levels

In my application i add layers dynamically. The first added layer is a baseLayer. When i add layer i extend bounds so the new layer could fit map (it works). The problems is that i don't know how to ...
1
vote
0answers
162 views

Project tiles from custom imagery in transverse mercator with OpenLayers

I have the following parameters of a custom imagery and I need to set-up a layer in OpenLayers with which I would project the tiles properly from this imagery. TransverseMercator ellipsoidName=WGS84 ...
1
vote
0answers
743 views

searching GeoJSON features

After googling for many days and reading the OL documentation, I don't understand well how the filterToParams in OpenLayers.HTTP protocol should work, what I'm trying to do is to find and display the ...
1
vote
0answers
318 views

Tie up LineString to the feature when dragging it in OpenLayers

I have an application in OpenLayers which shows a number of devices (Feature) on a map. The devices are linked between each other by cables (MultiLineString). ...
1
vote
0answers
100 views

Geoserver FTL style in IE not rendering

I am using the WMS GEt Feature Info feature in Geoserver. I created an inner ftl (content.ftl), using the header and footer ftl as it is. The WMS Get Feature Info will go into a basic Openlayers ...
1
vote
0answers
229 views

Are there any examples of creating custom openlayers geometry types?

I am working on a project that uses openlayers where IE8 compatability is a requirement. Unfortunately, there seems to be some performance issues with OpenLayers in IE8 when parsing a large number of ...
1
vote
0answers
175 views

OpenLayers Icon e PopUp

Ciao, sto creando una pagina in php con una mappa ... in OpenLayers Examples ho trovato due interessanti esempi: esempio che mostra come usare diversi tipi di poupup ...
1
vote
0answers
229 views

ScaleLine shows NaN for LCC projection

I have used openlayers along with geoserver. My Map is having LCC projection by default, but SRS is EPSG:4042. The problem is that the scaleline shows NaN in meter as well as feet. How can I correct ...
1
vote
0answers
267 views

OpenLayers WFS - GetFeature Draw Circle

I am developing GIS Portal using OpenLayers, I use WFS GetFeature to retrive some datas like bellow: var layer = map.getLayersByName("pf_trecho_at"); var polygonLayer = new ...
1
vote
0answers
381 views

Openlayers WFS Overlay Problem

a) I am running a PostGIS database, and I want to display a Table with a about 500 Points of Interest. The POIs have the projection EPSG 4326. b) Geoserver is installed, running and connected to my ...
1
vote
0answers
551 views

OpenLayers: Click event to display position shows Uncaught TypeError: Cannot call method 'getLonLatFromPixel'

I have created a map using openlayrs, and put a click event to display its position in screen, when i clicked got an error message like Uncaught TypeError: Cannot call method 'getLonLatFromPixel' of ...
1
vote
0answers
263 views

How to get feature geometry?

I want to have a gridPanel with feature geometry. But i cant image how to do this. I have a FeatureStore st = new GeoExt.data.FeatureStore({ ...
1
vote
0answers
276 views

Does OpenLayers mergenewparams repeatedly hit a WMS server when you change the layer name?

Does mergenewparams repeatedly hit a WMS server if you change the layer name? For example, you call the server with layer 'a' then you use mergewnewparams and call layer 'b', then you use ...
1
vote
0answers
833 views

How to fire a query from OpenLayers to GeoServer to fetch 'the_geom' column in PostGIS table?

I am coloring the polygon shapes of world_country. I have OpenLayers in my UI, GeoServer as server and PostGIS as db. All I want is fire this query: select the_geom from world_country where ...
1
vote
0answers
286 views

Problems with labels halo in OpenLayers

Draw label as follows: var styleMarkersLabels = new OpenLayers.Style( { strokeWidth: 2, labelYOffset: 14, label: ...
1
vote
0answers
97 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 ...
1
vote
0answers
464 views

openlayers wms loaderror event get response text of

1.How do I get the http response text & error code from OpenLayers 2.12 WMS loaderror event ? 2.The WMS request returns returns http error code 500 with some response text, however, as per image ...
1
vote
0answers
337 views

Using Google Maps with OpenLayers for some zoom levels

I've had a search on here to see if this has come up but I've not found anything, sorry if this is a duplicate. I'm trying to use the Google Maps layers with an OpenLayers site, but not for all zoom ...
1
vote
0answers
312 views

add description to a new polygon and save -> postgres + geoserver + openlayers -> wfs-t insert

actually it is possible to draw a new polygon with openlayers and save it over WFS-T-insert (geoserver wfs-t 1.1.0) in my postgres-db: var save = new OpenLayers.Control.Button({ title: "Save ...
1
vote
0answers
82 views

How can we display an animated output for watershed management in openlayers

Here i'm using Tomcat(7.0)+GeoServer(2.1.3)+Openlayers(2.11). How can we display an output like Flow of water for the forest watershed management application. I have to show the water flow Based ...
1
vote
0answers
663 views

OpenLayers.Popup.FramedCloud won't autosize

I don't see why this shouldn't work, but it doesn't.. :P var popuphtml=""; $.each(persons.persons,function(i,item){ if(item.in_loc == feature.attributes['locid'].substring(8)){ ...
1
vote
0answers
597 views

Geoserver in LifeRay

Hi i want to use geoserver+openlayers in LifeRay portlet. My main question its how to do this? I mean how to include geoserver in liferay, how to open geoserver's admin panel in liferay. Next question ...
1
vote
0answers
76 views

OpenLayers Google Closure externs file

Has someone written Google Closure Externs file for OpenLayers that I can use freely ? Externs file similar to those for jQuery, GoogleMaps, Underscore ? Have to ask this before I create my own if ...
1
vote
0answers
278 views

OpenLayers - Switching to Google Basemap causes a flicker as it zooms to extent

I created and example based off of the spherical-mercator example example and placed it here. I made the bing road layer the default. If you zoom in on a location and then switch to a google layer ...
1
vote
0answers
250 views

A WMS layer fails to show at some scales

I am tring to overlay my WMS layer on Google but at a particular scale it doesn't show the data of my layer. What can be the problem? <html xmlns="http://www.w3.org/1999/xhtml"> <head ...
1
vote
0answers
238 views

Openlayers WMS layer not diplaying in IE windows mobile 6 emulator

I am new to openlayers. I tried this example. I have published world shapefile to tiger workspace as 'country' layer to geoserver and want to access with WMS. The world map is getting displayed in IE ...
1
vote
0answers
143 views

Why can't Android phones render this KML poly?

Our outage map works well in browsers and most mobile devices. The map can be found here: Test Outage Map However, on Android phones the perimeter polygon is rendered as black. Have tried changing ...
1
vote
0answers
173 views

On the usage of Proj4Js->tmerc.js

I am using "proj4js & open layers" for my mapping. I got projection & datum (which is based on "Transverse Mercator") of a local plane and this plane is part of a grid which returns ...
1
vote
0answers
485 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
110 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.
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
0answers
196 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 ...
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 ...
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 ...
1
vote
0answers
469 views

Why does Openlayers plugin crash QGIS 1.7.4?

When I open the openlayers plugin my qgis 1.7.4 crashes. I use Win7. I'm using the CRS Google Mercator and QGIS crashes. However, I've install the QGIS 1.9.90 and the plugin works in this ...
1
vote
0answers
808 views

How to speed up OpenLayers with WFS in IE?

I'm using Openlayers, Geoserver and noticed that IE is very very slow to display WFS layers. I haven't so many WFS features, about 300. Google base layer appears after 1 sec. but my two WFS layers ...
1
vote
0answers
1k views

OpenLayers Popup Anchored Offset Problem

I have an animation where I move a point along a line. At certain spots of that line I open a popup to show a picture. I want the popup to be centered on the point. It seems to work for some points ...
1
vote
0answers
189 views

Mapnik, TileCache, Apache2 - Setup&Debug

I'm trying to setup TileCache with Mapnik working on an Apache Server. Right now I don't see any tiles in my OpenLayers Framework in the webbrowser. I really ask myself where the problem is hidden. ...
1
vote
0answers
481 views

GeoNetwork opensource - Geoserver/Google Maps integration

I'm using GeoNetwork 2.6.4 and I would like to change the default base map to Geoserver, adding a Google Maps Satellite Layer. Which is the best way? Any suggestions?
1
vote
0answers
38 views

Why is eraseGeometry method not called?

I'm extending OpenLayers.Renderer class. The problem is eraseGeometry method is not called. What can be wrong? I need it to be called when features are out of the visible area.
1
vote
0answers
213 views

About event to Latitude and Longitude in C#

I am beginning to study Ready GXP and I would like to know which event receives Latitude and Longitude and passes them to the browser for execution in C#. Could you help me ? Thanks
1
vote
0answers
136 views

Geoserver Custom CRS IAU_Moon_2000

I am trying to setup a custom basemap using a GTiff in the IAU's Moon2000 projection (30100 or 30101). The basemap image was originally created through gdal_merge and gdalinfo returns the expected, ...
1
vote
0answers
162 views

How to add column “EDGE” in pgRouting?

I am a newbie in PostGis and pgRouting. I have installed and configured both on my windows PC, following FOSS4G tutorial. I am able to see the result in browser, using GeoServer and OpenLayers. ...
1
vote
0answers
207 views

Color polygons using SQL Database based Rules in Openlayers

I want the rules to be applied according to values in a database. Is it possible to include external database information that is not in the shapefile? In spoken words the original rule is "Color all ...
1
vote
0answers
516 views

WFS success with error

I am trying to load WFS from geoserver. my geoserver is at localhost:8080 and webserver at localhost:80. Since there is a problem of crossdomain and my firebug showing "XMLHttpRequest cannot load ...
0
votes
0answers
9 views

Draw Complex shapes

Is it possible to draw complex shapes (polygons) like below image, combining lines and arcs. It is more like a Land Survey plan. So I have coordinates of each point and in case of arc - Radius, Chord, ...
0
votes
0answers
5 views

OpenLayers: draw path with only two points

I want to draw a path with no more then 2 points. On the second point I want the path to be finished. I'm using the OpenLayers DrawFeature, I set a callbacks for "point" where I count the created ...
0
votes
0answers
14 views

Openlayer 3 interaction Select Problem

i have a problem as a short and clear. When i use the snipped code var select = new ol.interaction.Select({ condition: ol.events.condition.mouseMove }); base map's mouse click drag is ...