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

learn more… | top users | synonyms

2
votes
3answers
197 views

How to change 0,360 WKT string to -180,180?

I'm reading POLYGON WKT strings using OpenLayers.Format.WKT().read(). The polygons use 0,360 longitudes but my map is -180,180. When I display the polygons on the map they are displayed outside of the ...
0
votes
0answers
29 views

Proxy.cgi for OpenLayers reading from GeoRSS but not from WFS

I'm having trouble with the standard proxy.cgi written in Python for OpenLayers. Here's my code: #!C:/Python27/python.exe -u """This is a blind proxy that we use to get around browser restrictions ...
1
vote
2answers
535 views

502 Bad Gateway

I am trying to access the featureInfo in my application and I keep getting 502 Bad Gateway Network error. In teh console log under the response tab I am getting this error, This proxy does not allow ...
0
votes
1answer
317 views

Read GeoJSON with openlayers

I generated a GeoJSON a projected table in EPSG: 4326 domeu postgis SELECT ST_AsGeoJSON(geom) FROM "onibus" I put in the www folder on my server I'm running geoserver locally my pages are also in ...
0
votes
0answers
6 views

OpenLayers 3 TypeError: a is null loading WMS Layer

I am trying to load a WMS Layer and am getting the following javascript error: a is null (ol.js:145) Here is the code: <!doctype html> <html lang="en"> <head> <link ...
0
votes
0answers
17 views

How to open a url by clicking on map? [on hold]

Hi i published some layers to geoserver and i want to load specific url by clicking on the map canvas. I have already put the url paths in the puplished layers attribute tables.
0
votes
0answers
17 views

OpenLayers 3: “goog is not defined”

First time using OpenLayers. I am getting an error "goog is not defined". Here are the steps I performed: Downloaded and unzipped v3.0.0-gamma.4 It created the following directory structure: ...
2
votes
1answer
27 views

Extract a polyline f rom a geoserver shapefile

I've been Googling my question for 3-4 hours now but I couldn't come up with an answer. I have a GeoServer which contains a shapefile with some roads on it. Is it possible to programmatically query ...
0
votes
0answers
7 views

openlayers clickevent for undercoat features polygon on multiple vector layers

I'm using two timers that give me coordinates and some data for my features (Sensors(de Sensoreinheit) & receiving unit (de Empfangseinheit)), deleting all features on the Layers and placing new ...
1
vote
0answers
15 views

Dividing a polygon into two OpenLayers

I'm using OpenLayers to draw a polygon to my users. I want the ability to implement through a line, split the polygon into two, with the cutoff line that the user drew. Does anyone know if this is ...
1
vote
0answers
15 views

Openlayers text symbology is not being shown

I have a Vector Layer in a .json file: { "type" : "FeatureCollection", "features": [ { "type": "Feature", "properties": { "Station_Id":107, "NAME":"ARDEBIL(F)","ELEVATION":"1314.3"}, ...
2
votes
1answer
1k views

GeoServer GetCapabilities Not Working

I am trying to learn how to use the OpenGeo suite by following the tutorials on the site. The one I'm currently trying to follow is http://workshops.opengeo.org/geoext/stores/capabilities.html. Most ...
0
votes
1answer
343 views

how to display the coordinates of a openlayers map with a jquery in my asp.net textbox?

this is my initmap.js OpenLayers.Control.Click = OpenLayers.Class(OpenLayers.Control, { defaultHandlerOptions: { }, initialize: function (options) { this.handlerOptions = ...
4
votes
2answers
75 views

Feature not added to KML Vector Layer in Firefox

UPDATE simplified with JSFiddle example: here is the most simplistic JSFiddle showing what I mean: http://jsfiddle.net/eflowbeach/75eq1mqe/ You can see in Chrome and IE that the feature appears, in ...
0
votes
0answers
33 views

How to calculate the Azimuth between two points in PostGIS?

I have a GIS API based on OpenLayers. I have been trying to implement Azimuth calculation in JavaScript and I needed some way to calculate the Azimuth in order to perform tests. I started using ...
1
vote
2answers
604 views

OpenLayers vector does not draw (or re-draw) on zoom level change or layerswitcher off/on

Here is the full code (i'll highlight the important parts after): jQuery(document).ready(function($) { // ...
2
votes
0answers
13 views

OpenLayers.Renderer.Symbols custom named by function

Is there any approach to define custom OpenLayers.Renderer.symbol by a function? For example, instead of making a symbol for each 3-pointed, 4-pointed, 5-pointed etc. star ...
0
votes
1answer
102 views

WMS render geotiff as a small image

Hye! I am facing Strange problem,My Geoserver 2.2.4 was stop working suddenly so i made a backup of Dir folder and install Geoserver 2.3.5 and replaced workspace folder with new one. Now all ...
3
votes
1answer
2k views

How do you put GeoJSON attribute information in a popup with OpenLayers

I am having some trouble putting GeoJSON attribute information in a pop-up. The selection control is working, and I create an alert (for testing) and this is working. But I can't figure out how you ...
2
votes
0answers
27 views

Any solution to mosaic Modis MOD13Q1 using batch file?

I have a Modis MOD13Q1 product for Pakistan, four tiles cover my complete area and I have data consisting of 14 years, after every 16-day interval. I want to mosaic them using a batch file which ...
0
votes
0answers
40 views

GeoServer, OpenLayers and updatable views: unable to edit data of WFS-T feature layer

I am developing an web application, where the user is able to view and update some feature attribute of a WFS layer. My problem: the edited data is not saved at all. Here's the situation: GeoServer ...
0
votes
1answer
80 views

how to get json from describe feature type

i m using geoserver 2.1.3 i want to get the fields of layer from database http://[localhost]/geoserver/wfs?request=describeFeatureType&typename=topp:states this reurns me output in xml format how ...
1
vote
1answer
366 views

Select features of layer which is not on top in OpenLayers

I have posted this question before on the general StackOverflow forum: http://stackoverflow.com/questions/16278569/select-features-of-layer-which-is-not-on-top In short my problem is that I have a ...
3
votes
1answer
678 views

Limit Zoom on WMTS Layer using Openlayers 2.12

I'm implementing a baselayer to be used by a Plone addon (collective.geo.openlayers). My implementation specifically creates a layer and returns it to the addon, which enables many different layers to ...
0
votes
0answers
9 views

Working with different source WMS data

I have a geoserver and WMS services on it. For example my water valve layer is point data and published from geoserver. (I am using postgis to saving data.) An external WMS service publishes polygon ...
6
votes
1answer
163 views

Load third-party APIs only when the corresponding map layer is requested?

OpenLayers allows multiple map layers to be hosted on a common platform. If the map application supports a wide variety of maps, say from Google, Yahoo and Microsoft, I find that upon initialization, ...
0
votes
0answers
7 views

OpenLayers.Layer.Vector - addFeatures() weird behaviour

I have noticed that the addFeatures() of the OpenLayers.Layer.Vector add a lot of features and not just the feature that we pass to the function: var vectorLayer = new ...
0
votes
1answer
90 views

OpenLayers SVG sprite externalGraphic only works in Firefox

I am trying to set the externalGraphic property of a vector layer's style to an SVG sprite that has various viewboxes to position the icons dynamically by creating different views within my SVG file: ...
1
vote
1answer
163 views

problem with popup conclusion on pressing a marker

I have markers on pressing to which popup has to be brought. how to make it? (coordinates of markers undertake from a DB) var map; var markers; function ejecutar() { init(3); ...
1
vote
1answer
19 views

featureId filtering in wfs openlayers

I want to define a featureId fiter for wfs layer like below: wfs = new OpenLayers.Layer.Vector("WFS Vectore", { strategies: [new OpenLayers.Strategy.BBOX(), saveStrategy], projection: ...
1
vote
1answer
491 views

How can i use snapp point in when i use measurecontrol?

I have problem about measurecontrol . I can use measurecontrol and i can show length to use measure control . But my problem is that .i didnt use in snap because measurecontrol is a control not ...
1
vote
0answers
9 views

Error during visualization of many layers on Chrome (ExtJS, GeoExt, OpenLayers)

I've noticed that on the latest version of Chrome (36.0.01985) my application crashes when a lot of layers are displayed (and/or the browser is maximized and the map is zoomed out). In particular, the ...
2
votes
2answers
572 views

Getting/downloading shapefile from OpenLayers/Web page and saving to local disk

I have developed a web application where i am using GeoServer and OpenLayers. I have displayed some Layers over Google map in a ASP.Net Web Page. I want to know is there any Method or Script available ...
2
votes
1answer
738 views

Problem with WFS-T save strategy in Openlayers

In my web map application, I have added the editable wfs vector layer for feature editing. But in save strategy method, Insert and Update Geometry is working fine.But Update Attributes is not saved in ...
0
votes
0answers
22 views

web-based 3D mapping system using nVidia 3D vision [on hold]

I just started working on a very interesting project as part of my university research for 3D visualization of earth's surface in 3D (not 3D modeling but real 3D!) using nVidia 3D vision in browser ...
0
votes
1answer
33 views

Force openlayers to not use browser cache for tiles refresh

I use OpenLayers.Layer.XYZ to display tiles from TileStache server without using the cache option of the server. However, I notice that the tiles stay in cache (probably the browser cache) until the ...
1
vote
1answer
47 views

Moving from OpenLayers to Leaflet breaks tilecache

My tilecache.cfg is like so (working with MapServer) [mylayer] type=WMS url=http://server/mapserver/app spherical_mercator=true layers=mylayer The following works just fine var mylayer = new ...
1
vote
1answer
114 views

Error in displaying wfs layer from mapserver/postgis

I have read and tested all the relative posts but I still don't have a solution for my problem. I have a layer suscribers (points) stored in postgis database with srid=32232. I would like to display ...
0
votes
1answer
232 views

Openlayers draw multiple coordinates off KML data coming from the database

I am a pure beginner of openlayers, I have a KML data coming from the database which describes all the cordinates of zip code 45050, I would like to draw these coordinates onto openlayers map as ...
1
vote
1answer
14 views

Dynamically changed url in my Vector layer protocol not taken into account after refresh

I have a map which I try to change dynamically its url when the user clicks a radio button. Here is my code : var refreshLayer = new OpenLayers.Strategy.Refresh({ force: true, active: true }); var ...
0
votes
0answers
17 views

Issues at reprojecting coordinates using gdalwarp and OpenLayers

I have an interpolated raster image with EPSG:27700 (British National Grid), after I warp it using gdalwarp into EPSG:3857 (WGS84 Web Mercator (Auxiliary Sphere)): gdalwarp -s_srs EPSG:27700 -t_srs ...
0
votes
1answer
92 views

JS/browser API library to show/interact with many markers with the best performance?

What's the best Javascript library that can show about 50000 (and more) clickable markers without resorting to things like clustering markers,etc? The markers are clickable and I want to associate ...
1
vote
2answers
122 views

OpenLayers label without using StyleMap

I need to show label of each feature based on attribute field value. I know that I can use ${attribute} notation for this purpose. But this approach works only if I make StyleMap and pass it to vector ...
2
votes
2answers
395 views

onSelect sometimes firing before onUnselect

I have a map that displays satellite coverage zones. Some of these coverages overlap. I am using the SelectFeature functionality to fire off onSelect and onUnselect events. However, when moving ...
0
votes
1answer
23 views

Using Arcgis and OSM tiles in Openlayers application

I created a map object and specified options according to Arcgis tiled map tiles. var options = { scales: [120000, 60000, 30000, 15000, 5000, 2500, 500], resolutions: ...
2
votes
1answer
337 views

OpenLayers and custom Proj4 Projection

ok so I'm a newbee in using OpenLayers. I try to map some planetary data on my webMap server using OpenLayers. I defined a proj4 projection as follow: Proj4js.defs["MYDATUM"] = "+proj=longlat ...
1
vote
1answer
20 views

Can't send an array via Protocol.HTTP()

I'm trying to send a JSON file to my Node.js app via Protocol.HTTP. The file is correctly sent, but I can't access to an array. Here is the relevant code : Client side (...) var vectorProtocol = ...
0
votes
1answer
768 views

OpenLayers create marker (feature with icon) from WKT

I have a point object WKT. Like this: POINT (25.04568 48.221548). Also I have an icon in my project folder. My goal is to show on a map an icon that represents a feature. Can it be just a normal ...
0
votes
1answer
168 views

I can not override my WMS layer in Google Maps as a base

I can not override my WMS layer in Google Maps as a base: I have a WMS layer in geoserver am using openlayers to show them. Calling only works WMS layer:   see my code, I am using using the bounds ...
3
votes
2answers
6k 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 ...