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

learn more… | top users | synonyms

1
vote
0answers
239 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 ...
1
vote
0answers
77 views

calculating st_simplify tolerance for openlayers

I want to display a vector layer in openlayers. Users can scale the map before they load the vector layer and I'd like to simplify the geometry with st_simplify before sending it to the client. Does ...
1
vote
0answers
59 views

proportion of image layer in OL

I tried create map with single image used OL. But I have a trouble: image in map has a wrong proportions. Img: 1540 x 1481 Img in map: 2858 x1481 My js code: $(function (){ var map = new ...
1
vote
0answers
127 views

scale dependent rendering of base layers(gmap,ghyb) causes warping/flickering

Hey guys I am using geoserver to host my WMS layers and I am using gmaps base layers in Openlayers. Below I have attempted to use scale dependent rendering of the base layer without any luck. What I ...
1
vote
0answers
270 views

WMS bounded overlay with OpenLayers and GeoServer

I'm trying to design a heatmap overlay bounded within four given coordinates with OpenLayers using WMS protocol to communicate with my GeoServer instance, where my data and SLD heatmap description ...
1
vote
0answers
581 views

OpenLayers - Setting the Min Zoom Level of a Google Layer based on a Bounding Box

I have an OpenLayers project that is using Google Maps for the base layer. Maybe I'm going about this the wrong way, but I think what I'm trying to do is pretty simple. I just need to set the minimum ...
1
vote
0answers
516 views

OpenLayers and GeoJSON - possible to create, modify and delete features?

I wondered if anyone has some OpenLayers GeoJSON code to read, create, modify and delete features (i.e. instead of using WFS-T)? This is how far I've come - I've no problem changing the pop-up to a ...
1
vote
0answers
130 views

OpenLayers Show message (Information message or Alert )(or HTML content)on the map

Bonjour, J'utilise OpenLayers et j'aiemrais afficher une fenetre affichant des messages sur la carte openLayers Voici un exemple de ce que je voudrais faire : ...
1
vote
0answers
235 views

working with multiple wfs-t layers

I am using multiple wfs layers and using editing tools in that like edit,draw,save etc. The code is shown here...... var district = new OpenLayers.Layer.Vector("district(wfs)", { ...
1
vote
0answers
84 views

OpenLayers GetFeature Control Mobile

I have a map that is using OpenLayers and GeoServer. I have a base layer and a WMS layer with many features. I was using OpenLayers.Control.Click to get the coordinates from the map and show a popup ...
1
vote
0answers
153 views

Get info from WMS layer with Openlayers mobile

I am trying to build a webapp for iPad using OpenLayers Mobile. One of the features it should have is that you can tap on a tree displayed on a basemap and get info about this tree. These trees are ...
1
vote
0answers
410 views

Help me with this code from GeoExt and OpenLayers

I haven't gone entirely through GeoExt. But I am trying to understand the below code, but I am struck. The below code is about creating popups of feature information. But the layers added are WMS ...
1
vote
0answers
269 views

OpenLayers & MySQL

I have a MySQL database full of data about students (name, age, school, university, city, etc). What I want to do is to transform the data I got to markers on the map. To be more specific, I will for ...
1
vote
0answers
113 views

django + apache mod_tile

I'm not sure if I'm doing this right and I need your opinion on this current situation. I'm creating a Web Interface using django and postgres as the database. With regards to the slippy map, I went ...
1
vote
0answers
43 views

When I used geowebcache, my map overviewmap can not use it?

I know: gwc / service / wms geowebcache use data, overviewmap is use wms original data, I tried modifying openlayers.js,some difficulties. You encountered the same problem and can help me look at it, ...
1
vote
0answers
135 views

How to set the holeModifier on OpenLayers.Control.DrawFeature to always be active?

I would like to create a button "draw a hole" taht uses by default the holeModifier functionality but the user dont need to press the cttrlBtn. The "standard" way I guess, would be to create a way of ...
1
vote
0answers
114 views

Keep Getting Black OSM Tiles in Openlayers

When trying to view OSM tiles using the external storage example of OpenLayers, I keep getting black tiles when I zoom in and out. I don't know what the issue is but every time I zoom in/out there ...
1
vote
0answers
83 views

What solution is there to project google/bing layers to another EPSG (e.g. 3844)?

I am using Geoserver and Openlayers. The Openlayers map has all the layers in EPSG:3844. I need to overlay Google/Bing layers. I am currently trying to do it with proj4js, mapproxy.org as openlayers ...
1
vote
0answers
233 views

OpenLayers: How to get backgroundGraphic to go under externalGraphic

I've got a layer with nodes features on which I may want to display two images, a main one and a background one. This page : http://openlayers.org/dev/examples/marker-shadow.html shows what I want: ...
1
vote
0answers
303 views

Displaying WFS Features Based on Zoom Level

I have a WFS feature layer with ~25,000 features and have been experiencing significant performance issues with my OpenLayers map. My first approach to solving this has been to pre-compute feature ...
1
vote
0answers
90 views

Why does the map take so long to display and appear distorted?

I have map rendered from geoserver but it takes too much time, again shown map is half-shown and distorted as the following image, SOMETIMES THE MAP DOES NOT EVEN DISPLAY My JAI setting is as below ...
1
vote
0answers
169 views

How can I merge postcode sector polygons into larger territories in QGIS?

I'm new to GIS so patience might be required :-) I'm building a basic web-based mapping tool for business use, to be used as a demo to show that we need one but managers don't know it yet! So far ...
1
vote
0answers
314 views

Allowing Add/Delete/Update of features (web application): OpenLayers + WFS and GeoServer?

I've developed a WPF application that has a custom SQL Server database and uses the Esri ArcGIS WPF API to allow users to view, edit and query shapes (features) on a custom map. Maps are created from ...
1
vote
0answers
281 views

How to visualize MBTiles with OpenLayers using a PHP tile server?

This is repost as didn't get my expected answer. Please help me as I am newbie. I have setup the PHP Tile Server 0.1 and when I am calling the PHP server it showing the following Now I am triyng to ...
1
vote
0answers
139 views

What is the best way to create polygons on a map and download files associated with the polygon?

My client wants to build a tourist site and for that he wants a backoffice for the map and the ability to draw polygons on the map (that user can see). When the user clicks on a polygon, he gets a ...
1
vote
0answers
53 views

How to extract numbers from each vectors?

I'm trying to create custom legend for a layer where OpenLayers.Rule objects are created dynamically and added to a layer. new OpenLayers.Rule({ symbolizer: { ...
1
vote
0answers
969 views

Why does map click listener not work with touch?

I deleted this question which I posted a few days ago, thinking that I would be able to solve it. But after struggling for some time, I think I really need some help. The problem is this: I am testing ...
1
vote
0answers
329 views

How can I show MapInfo tabs in OpenLayers without using MapXtreme Tile Handler?

I want to connect OpenLayers to mapinfo tabs I have , but I don't have MapXtreme license . Is there a way to show the tabs using different Tile Cache ? I can export the workspace to WOR or MWS files. ...
1
vote
0answers
442 views

Add wfs layer to openlayers map

(UPDATE QUESTION) Hi guys. I have a problem with WFS request, mine is follow: var wfs = new OpenLayers.Layer.Vector("WFS",{ strategies: [new OpenLayers.Strategy.Fixed()], ...
1
vote
0answers
240 views

How to trigger a map click event?

I have a map with some markers. On clicking a marker, a popup would appear and on clicking the map, any visible popup would be hidden. I want to hide any currently visible popup upon clicking a marker ...
1
vote
0answers
184 views

Problem HTTP request for KML

i have a problem with HTTP request for KML to add to map. This is my HTTP request: var x = new OpenLayers.Layer.Vector("X", { projection: new OpenLayers.Projection("EPSG:4326"), strategies: ...
1
vote
0answers
233 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
402 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
143 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
667 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
281 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
98 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
215 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
163 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
206 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
245 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
359 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
497 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
253 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
259 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
718 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
256 views

Problems with labels halo in OpenLayers

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