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

learn more… | top users | synonyms

0
votes
1answer
1k views

Add labels above the lines in OpenLayers

How to add labels above the lines? Labels are added as follows: var styleMarkersLabels = new OpenLayers.Style( // стили для надписей узлов { strokeWidth: 2, ...
2
votes
0answers
257 views

WPSExecute Format Issue

I have: function createWPSExecuteRequest(namespace, layerName, popFilter) { var request = OpenLayers.Format.XML.prototype.write(new OpenLayers.Format.WPSExecute().writeNode('wps:Execute', { ...
1
vote
1answer
582 views

Can't display overlay

I am trying to add a WMS radar overlay to my map but it won't seem to gather it. noaaRdr = new OpenLayers.Layer.WMS("Latest Radar", "http://nowcoast.noaa.gov/wms/com.esri.wms.Esrimap/obs?", { ...
3
votes
1answer
1k views

How to display a control (zoom bar) outside map container in openlayers?

Since I'm new to OpenLayers this question might be the simplest of them all but after a quick search on the subject I couldn't find anything useful, so: Is it possible to put a OpenLayers zoom ...
0
votes
2answers
504 views

how to create gis like Uster?

I downloaded qgis, geoserver, openlayers, ext, geoext, qgis-web-client and osgeo. And i have map shape files. i would like create website like this site. i need help. can you send tutorial links thank ...
1
vote
1answer
371 views

I want to convert openlayers interface code to dojox code for pie chart use.So can we use same controls of openlayers map in dojox.If yes, how?

Is their any way to add same openlayers map control to dojox map like navigation,panel,panzoom
1
vote
0answers
956 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
323 views

Problems with labels halo in OpenLayers

Draw label as follows: var styleMarkersLabels = new OpenLayers.Style( { strokeWidth: 2, labelYOffset: 14, label: ...
0
votes
1answer
322 views
1
vote
1answer
455 views

OpenLayers ModifyFeature for multiple layers

Is it possible to configure the ModifyFeature control to edit features in multiple layers?
2
votes
1answer
3k views

How to edit feature attributes with openlayers?

I want to edit object's attributes on WFS layer. I see this example http://gis.ibbeck.de/ginfo/apps/OLExamples/OL26/examples/styles_unique_with_group_wfs.html but popup is horrible. I want to use ...
2
votes
0answers
285 views

Anyone have success with OpenLayers and ArcGISCache?

OPENLAYERS Has anyone had success using OpenLayers and the ArcGISCache layer beyond the examples? I'd like to mix tiles with different resolutions and although they seem to scale correctly they do ...
1
vote
2answers
675 views

Is it possible to have a customized zoom level?

I am setting up my own Map Tile Server according to this guide and it is working well now: http://switch2osm.org/serving-tiles/building-a-tile-server-from-packages/ The map currently has 19 zoom ...
1
vote
2answers
2k views

How to get names of all layers in a store in GeoServer using OpenLayers

I have strict requirement to retrieve names of all layers in a GeoServer store using OpenLayers. I've gone through the post here, but it doesn't answer my question. I've also gone through GeoServer's ...
1
vote
1answer
2k views

Modify WFS with OpenLayers

I want to edit object on WFS layer but have one problem. I use OpenLayers.Control.ModifyFeature(myVecLayer) to editing.By the logic i do this. Press button and create WFS layer with chosen object ...
2
votes
2answers
948 views

Map resize displays google layer at incorrect zoom level

This is a screenshot of the icons in the wrong position due to the google layer showing the wrong zoom level. This is how it should look, and how it does look after the user pans the map. How does ...
0
votes
2answers
873 views

Getting OpenLayers Vector features vs clusters

I am using OpenLayers Vector with a cluster strategy. When I use Vector.features to get the features returned as a list, it returns an array of clusters and not the array of features. This makes the ...
1
vote
1answer
896 views

GetFeature Request with Polygon Intersecting Polygons

My task is very straightforward: a user draws a polygon and query all parcel polygons. The query string extends the URL limit. So I am posting XML to WFS. However, GeoServer always returned 0 feature, ...
1
vote
1answer
215 views

How to make popups on polygon using openlayers?

I want to make popups that contain information of a polygon when in hover using OpenLayers. information displayed in popups obtained from the database. Can you give reference code to make it. ...
2
votes
2answers
1k views

Calculate dynamic radius based on population and map resolution

Background Create a radius around the centre of a city that corresponds to the city's population, taking into consideration the map's current resolution. The populations range from 39 to 1090936, ...
3
votes
1answer
221 views

Halo in OpenLayers (Line, Vector)

How to make a halo around the line of one pixel? For example, line (vector) hase blue color and its frame (one pixel) the black color. Thanks!
3
votes
1answer
457 views

How to handle a geotiff map together with points with openlayers (or other libraries)?

I create a lot of printed maps using various applications (ArcGIS, QGIS, Microstation, Illustrator etc). Sometimes I'd like to turn this map somewhat interactive on the web. What I'm looking for is a ...
5
votes
2answers
5k views

OpenLayers custom request for WMS GetFeatureInfo

In OpenLayers, there is a WMSGetFeatureInfo control that can be attached to a layer and listen to click or hover events on the map, requesting info on the feature being currently clicked (or pointed) ...
3
votes
1answer
1k views

Call GeoExt action by click ExtJs button

I have a problem. I have a ExtJs button and want to call anyone GeoExt action. For example this {xtype:'tbbutton', cls: 'x-btn-icon', id: 'testbutton', ...
3
votes
2answers
7k views

Click a marker icon to open a pop-up, using OpenLayers

Background Looking to create a pop-up that performs an Ajax request when the user clicks a marker on an OpenLayers map. The markers, however, have different icons. The following is working code that ...
1
vote
1answer
592 views

Having difficult time to implement a Rule using OpenLayers.Filter.Function

I'm trying to set up a Rule using the Function Filter. But it does not work: the lines on that layer are just black. And more importantly, the filtering function is never executed. Can someone please ...
2
votes
1answer
2k views

OpenLayers: Feature edit handles not appearing when addUniqueValueRules applied

I have been pulling my hair out over this issue and am now wondering if it is a bug rather than something I am doing wrong. The Problem: I have a vector layer that users can edit. Each feature on the ...
0
votes
0answers
642 views

WFS layer seems not work with Geoserver 2.2 RC1 and openlayers - updated

I have a Openlayers+Geoserver application. Now I'm trying to move the application on a new server with the new GEOSERVER 2.2 RC1. With the Geoserver ver. 2.1.0 i was able to show the WFS-T layer, ...
2
votes
0answers
207 views

How do you emulate a right click on a tablet/mobile device using OpenLayers?

I'm trying to make my OpenLayers mapping application work for mobile devices and one feature I haven't figured out how to emulate is the 'handleRightClicks' Control Click option. Anyone know how to ...
1
vote
0answers
101 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
1answer
457 views

Tips for improving GeoServer WPS Performance

I have the following filter: function getFilter(polygon) { var filter = '<ogc:Filter>' + '<ogc:Intersects>' + '<ogc:PropertyName>the_geom</ogc:PropertyName>' + ...
-1
votes
1answer
125 views

load base layer from database

I have svg maps of floor plans which I am using OpenLayers to project and display interactive features on. I would like to load the files from my database, (where they are stored as blobs) instead of ...
1
vote
2answers
1k views

Passing selected polygon to INTERSECTS filter in a WFS request

In the code below, <ogc:Filter> <ogc:Intersects> <ogc:PropertyName>the_geom</ogc:PropertyName> <ogc:Function name="querySingle"> ...
4
votes
2answers
3k views

Clickable points with openlayers

I'm trying to have some very basic functionality with vector points with Openlayers 2.12 and I can't figure out how to track a click event on a point. I create a map using the following code and add ...
3
votes
3answers
1k views

openlayers attribute substitution failing on kml file

I'm trying to read in mile markers for a marathon from a .kml file and use the MILE attribute to set the label. My layer code looks like this: // add layer mile_markers_layer = new ...
3
votes
2answers
1k views

Getting json feature id on OpenLayers

I'm projecting some features using json format on OpenLayers. I need to get the id from the feature (not the OpenLayers' id but the one in the json file). The file looks something like this. ...
0
votes
2answers
773 views

How can I convert Polygon to LinearRing Geometry?

How can one convert a Polygon to LinearRing geometry using OpenLayers? I'm thinking that I can do this by getting bounds of the polygon, then use this to construct a Points array. Finally, use ...
0
votes
1answer
435 views

ArcGIS Server tiled layer doesn't update on pan in OpenLayers

I'm trying to add an ArcGIS Server tiled/cached layer to OpenLayers. This is working using code modified from these samples. The only problem is that when panning the map, the layer does not update ...
3
votes
1answer
406 views

How to access the icon of a feature retrieved from text in a vector-layer?

I`m using OpenLayers to show POIs on a map. These POIs are loaded from a textfile and I`m using a Vector Layer to get it onto the map - works great. Now I want to use the cluster strategy to have ...
2
votes
1answer
1k views

Unable to see whole world map by decreasing panzoom bar?

I am seeing one weird thing in Openlayers today. I am unable to see whole map by using panzoombar, previously i used to. <html> <head> <title>OpenLayers Example</title> ...
3
votes
1answer
1k views

How to send WPS request using OpenLayers

I have generated the WPS request below using GeoServer's WPS Request Builder. I wish to append more parameters to this request (geometry selection), and then send it either using GET or POST from ...
1
vote
2answers
405 views

Openlayers controls outside the map

I want put OpenLayers controls outside a map but dont know how. I find this example http://openlayers.org/dev/examples/editingtoolbar-outside.html but its not what i want. I have a button and want ...
2
votes
3answers
2k views

Change zIndex of Vectors in openlayers

I have a bunch of linestring features on a vector layer. Some of them overlap. If I trigger the hover event on those features, I want them be in front. I did find some functions to set the z-index of ...
1
vote
1answer
536 views

openlayers trigger hover event

I have a bunch of tracks on screen in a vector layer. I used some hover and select styles in the layer styleMap and these styles are properly triggered by: var highlightCtrl = new ...
1
vote
1answer
1k views

OpenLayers.Format.GML parser problem

I'm trying to parse WFS reponse using OpenLayers.Format.GML parser. However, an exception thrown in my try-catch block is TypeError: a is undefined. Any pointers as to what I may be doing wrong will ...
11
votes
1answer
2k views

Dealing with overlapping features in OpenLayers

If users create a polygon feature that completely overlaps another one, like this … … then there's no way you can select the inner feature, i.e. the one that's overlapped by the other. I'm ...
0
votes
1answer
510 views

GeoServer: Cross Layer Filtering vs Layer Groups

To pull features using WFS from several layers in one request, I have two options: One, create a layer group, and then get features from the layer group, as opposed to individual layers. Two, use ...
1
vote
2answers
1k views

Problem with setting up proxy in Apache

I've downloaded sample proxy.cgi file from here. I've placed it in Apache's cgi-bin directory. However, whenever I try to access it, it throws the error Can't find string terminator '"' anywhere ...
3
votes
1answer
179 views

Setting Center Point of Pixmap Symbol for Mapserver

It seems like all the Mapserver documentation on changing the center-point of a symbol only deals with TYPE 'vector' symbols. I have pixmap symbol (the standard looking Google marker image thingy) ...
3
votes
1answer
2k views

Problems adding KML layer in OpenLayers

I'm stuggling to add a KML layer to a simple test OpenLayers map - no errors are shown, but the KML layer does not display on the map. I've tried multiple samples including the Sundials on a ...