Tagged Questions

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

learn more… | top users | synonyms

0
votes
3answers
1k views

OpenLayers: Error message 404 (Not Found)

I've created a map using openlayers contains osm, google layers and some vector features, On loading it shows two errors like: GET http://tile.openstreetmap.org/0/0/1.png 404 (Not Found). How to ...
3
votes
2answers
3k views

Detecting map changes using Openlayers

Is it possible to delete a vector layer when a user pans or zooms a map? I saw in the documentation that there is a function called onMapResize. Can this also be used to detect a pan change? I want ...
1
vote
2answers
784 views

User Input in Openlayers Problem

I thought you could give me some advice regarding my problem. I have a working WFS Layer and I want to be able to type in some text which then should be used as the filter value. Afterwards the map ...
2
votes
2answers
875 views

how to buffer inside a polygon in Javascript

I'd like to know if it's possible to buffer a polygon on the INSIDE only using OpenLayers and other Javascript tools (e.g. jsts). Here's what I found about the topic in general: Buffering INSIDE a ...
8
votes
6answers
13k views

OpenLayers - redrawing map after container resize

In my web application, I want to enable users to set the size of the map container. Everything worked fine when the container was expanded slightly (apparently this is because the tiles that were ...
0
votes
1answer
673 views

Openlayers shapefile polygons hover effect

I have shapefile polygons. I'm using OpenLayers with OpenStreetMap tiles. Is it possible to create hover effect which will show up info window with some informations about that polygons? Is it the ...
4
votes
1answer
2k views

How can I remove a layer from layerswitcher in openlayers?

I have several vectors and WMS layers in layer switcher.But i don't need these layers to be displaying in layer switcher.How can i remove these layers from layer switcher? Thanks in advance..
1
vote
1answer
1k views

Problems using geoserver and postgis to perform wfs transaction?

I have been following the tutorial for transaction. I am using apache webserver and jetty powered geoserver for hosting and using proxy.cgi file for bypassing XHR requests. as described in tutorial ...
4
votes
1answer
6k views

OpenLayers, zoom to vector layer extent

It seems quite simple thing to me, but I get an error. map declaration map = new OpenLayers.Map('map_element', {... projection : _projObj.mercator, displayProjection : _projObj.wgs84 } layer ...
1
vote
1answer
138 views

Using AndNav tiles storage as input for OpenLayers.TMS

Is there a possibility to use map tiles from AndNav (created wit Mobile Atlas Creator) that are in format: Mapnik\12\2241\1369.png.andnav (I know that 12 is the zoom level but don't have idea what is ...
1
vote
1answer
192 views

Web mapping with Openlayers

On a pedestrian wayfinding scenario, I need to drape some extruded buildings close to the road as the user navigates along the road on a 2D Map Background. I hope I can use OpenLayers and ReadyMap for ...
1
vote
1answer
143 views

How to “page” through a set of features and display an infoWindow for each feature?

In the ArcGIS Server JS API the Popup object may be defined against an array of features. In that case the Popup contains Next/Previous buttons to allow the user to "page" through each feature in ...
1
vote
1answer
249 views

OpenLayers “Text” layer always visible on load

I'm trying to load a layer as an overlay and make it initially not visible airBoss = new OpenLayers.Layer.Text( "AirBoss Locations", { location:"./airboss.txt"} , { visibility: false, ...
1
vote
0answers
398 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 ...
0
votes
2answers
356 views

How to change a marker on click

I've crated a map and tried, but it doesn't change until another event is caught or zooming map or by switching the browser tabs. What is the reason for this. please help me I've fiddle the code here ...
6
votes
3answers
1k views

30,000 data points… can this be reasonably served using openlayers?

I'm trying to tackle a web GIS problem and need to figure out the best strategy. I have a map with 30,000 cells on it forming a grid for the province of Alberta. I have a list of data points for ...
1
vote
1answer
2k views

map extent to show specific country

I use openlayers in my web app.I want to set map extent on specific country to show cities of that country but i don't know which option of map can show specific country in map!. How can i show ...
2
votes
2answers
2k views

How to skip drag event to stop a feature being dragged

I am new to OpenLayers and I'm trying to drag markers and skip some markers from being dragged, I've tried dragFeature.deactivate(); it will deactivate entire features please help me. Please check ...
1
vote
1answer
1k views

OpenLayers : How to make a marker fixed [duplicate]

Possible Duplicate: How to skip drag event to stop a feature being dragged I've created a map and added markers to baselayer on click by using this code : vectorLayer = new ...
3
votes
1answer
809 views

Is there a map-level event to signal the start/end of drawing?

In OpenLayers, is there an event which fires when the map starts drawing any layer, and another for when the map has finished drawing all layers? I wish to display a "waiting" animation while any ...
1
vote
0answers
22 views

Show vehicle traveled route as animation [duplicate]

Possible Duplicate: Animate feature in openlayers I create map web app with openlayers and yii php framework. I want to show vehicle traveled route as animation like below site in my ...
2
votes
0answers
324 views

Creating a Geodesic Polyline Buffer in OpenLayers

I have a feeling that the answer is going to be 'You can't do that without some very complex coding' but I thought I'd go for it anyway. I recently asked a question on how to create a Polyline Buffer ...
3
votes
2answers
428 views

LineString in OpenLayers: Is it possible to draw segments in different colors?

I'm a newbie in OpenLayers. Can you help me with this: Is it possible to assign color not to the whole linestring, but to different segments?
1
vote
1answer
935 views

OpenLayers : Map not loading

If i use a single wmslayer as map baselayer it loads the map, but adding different layers like (google,yahoo) to map it won't works. Can anyone tell me how to overcome this.. thanks in advance.. ...
1
vote
0answers
581 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 ...
2
votes
1answer
1k views

OpenLayers.Bounds transform not working as expected

I have problem with transforming bounds. It is not working for the first time, later it works just fine. At first i thought that something was still loading butsearching in firebug shows that nothing ...
5
votes
3answers
3k views

Slow IE8 responsiveness with OpenLayers and many features

Background Adding about 700 sites to an OpenLayers Map. Firefox 11 and Google Chrome display the sites just fine. IE8, which is the organization's standard and will not be upgraded for the ...
3
votes
2answers
4k views

Creating a Polyline Buffer in OpenLayers

I was wondering if there was a way to create a buffer around a polyline feature in OpenLayers. I have created a tool that allows the user to draw a circle buffer zone of whatever size and style they ...
1
vote
1answer
914 views

how to change marker angle in openlayers?

I want show one marker with normal angle 90 degrees(it is default of openlayers) and other marker with 120 degrees in openlayers. To differentiate with the normal ones. how can i do this.
3
votes
3answers
7k views

OpenLayers change feature's style

Working with OpenLayers 2.11, I'm desperately trying to change my feature style as the user selects it (fairly simple I agree!). Indeed, It seems easy but I can't see where It fails, perhaps someone ...
5
votes
2answers
3k views

Animate feature in openlayers

In my map web app, I have a play pause button that show vehicle route history.I get lat lon from database and create route that vehicle traverse. At below site go to history tab after and choose ...
1
vote
3answers
2k views

Label in the middle of linestring in OpenLayers

Is there anyone can put label in the middle of the linestring dynamically? I've used labelAlign option. I've changed this value from bc, cc, cm, etc. But it doesn't work at all. There's also option ...
0
votes
0answers
380 views

How to draw features with openlayers?

i have a DrawFeature tool. create= new OpenLayers.Control.DrawFeature(myVecLayer, OpenLayers.Handler.Polygon); app.mapPanel.map.addControl(create); i have a store. st = ...
1
vote
2answers
1k views

OpenLayers WMS disappears when including OpenStreetMap

Setup: ArcSDE 9.3.2 Oracle 11g GeoServer 2.1.4 OpenLayers (latest build) OpenStreetMap InternetExplorer 7.0/ Google Chrome EDIT: I have updated information just below the screen shots ...
1
vote
2answers
475 views

Popup is stationary does not move with the location

I am using the GeoExt example and used the same code in my application. This is my code The problem I am facing is that the Popup box in my application on http://128.196.142.94/geo/test/test.html is ...
1
vote
1answer
452 views

Loading features incrementally in a vector layer

I am new to OpenLayers. In one experiment I am doing I want to load, incrementally, features in a vector layer. In my setting, these features should be loaded from distinct OSM files (generated ...
0
votes
1answer
129 views

removing multiple additions to popup

I am using the GeoExt example and this is the js code and trying to get rid of the multiple lat and lon that get added into the PopUp on multiple clicks. Not sure which is the code that I need to ...
1
vote
0answers
275 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({ ...
2
votes
1answer
1k views

OpenLayers Vector KML draw black when change the style

I am trying to change the style of an OpenLayers.Vector using radio buttons and redraw it, but the result is a black vector. I tried own build OpenLayers11 and 12, beside api openlayers hosted. ...
3
votes
1answer
143 views

How to determine layers affected by a user-drawn polygon

Scenario: I have a set of layers, each covering one country. In my OpenLayers client, I enable users to randomly draw a polygon. A user is then able to perform analysis based on the drawn polygon. ...
0
votes
1answer
3k views

OpenLayers not refresh a layer

i have a problem with refreshing layers. I have WMS and WFS layers from one source. I edit WFS and after do wms_layer.redraw(true) but layer redraw only after zoom in or zoom out. Same with WFS. i ...
2
votes
1answer
1k views

'undefined' is not a constructor (evaluating 'new > OpenLayers.Layer.GML'

My OpenLayers map was working fine before, showing a KML overlay. Suddenly it broke. Now I see this error in my browser error console. TypeError: 'undefined' is not a constructor (evaluating 'new ...
2
votes
0answers
237 views

OpenLayers ArcGIS93Rest layer not showing up

So this seems like it should be super obvious, but I can't for the life of me figure out why I can't get any ESRI layers to show up on my map. I've tried different layers and messing around with the ...
1
vote
0answers
286 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 ...
6
votes
3answers
969 views

OpenLayers WFS flip coordinates

I have a problem integrating WMS and WFS. Basically what i want is when user clicks on WMS then a clicked polygon is added to vector (and selected). The problem is that the WMS is in version 1.3.0 and ...
3
votes
3answers
3k views

How to zoom to object on WMS layer with OpenLayers?

I have a map with WMS layer. And want to zoom to selected object. Now i use GetCapabilities from Geoserver and zoom to bbox of whole layer. So how to do what i want? Or can u tell me how to get ...
1
vote
1answer
315 views

Inner shadow of a OpenLayers map container?

Not sure if this question should be here in the GIS section or if I should move over to a more common html/css place, but here we go: I'd like to have an inner shadow of my OpenLayers map canvas so ...
1
vote
1answer
1k views

OpenLayers ModifyFeature and styling

In OpenLayers, I have a Vector layer with a StyleMap and SelectFeature and ModifyFeature controls, like this: vector_layer = new OpenLayers.Layer.Vector('My Vector Layer', {extractAttributes: true, ...
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
249 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', { ...