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

learn more… | top users | synonyms

1
vote
0answers
46 views

Change The OpenLayers 3 script into openlayers 2.13

Hi all I want to change the code from pgrouting latest workshop which is used the Openlayers 3 beta to Openlayers 2.13 The code is in here http://workshop.pgrouting.org/chapters/ol3_client.html I ...
3
votes
2answers
109 views

Problem with loading GeoJSON file in OpenLayers generated by PHP

I'm trying to read some geo-data from PostGIS database using PHP, creating a GeoJSON file and showing it on a base map using OpenLayers. The PHP code works just fine. The generated data in GeoJSON ...
1
vote
0answers
35 views

Problem with custom projection in OpenLayers

I'm using OpenLayers 2 with Proj4JS 1.10. When trying to change the map's projection using Proj4js.defs['STEREOGRAPHIC:180,90'] = "+proj=stere +lat_0=90 +lon_0=180 +a=3396190.0 +b=3396190.0 +over=F ...
1
vote
3answers
57 views

Sending and receiving gis data to map

I have a spatial database in Sql server and I am working in asp.net mvc. My project must show stored shape in web page that uses openlayers js and user must see and edit shapes and send the result to ...
0
votes
1answer
33 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
48 views

How to get mouseposition (openlayers) in decimal degrees?

I want to display the mouseposition in Degree Decimal rather than in meters. See my code: <script type="text/javascript"> var map, ia_wms; function init(){ map = new ...
0
votes
0answers
43 views

Admin Sample GXP Viewer

I have Geospatial application which is using GXP, GeoServer, GeoExt and PostgisSQL. We would like to enhance the application by adding a user friendly Admin system, similar to what GeoNode has. This ...
1
vote
2answers
49 views

GML coordinates from vector layer

Is it possible to get GML from a local vector layer (OpenLayers.Layer.Vector)? What I would like to do is use the output geometry from my buffer tool to spatially limit a WPS gs:Aggregate request ...
3
votes
2answers
35 views

How to set high value clustered feature to the front?

Here is the clustered vector layer I just added to the map. var defaultStyle = new OpenLayers.Style({ strokeColor : "#FFFFFF", strokeOpacity : 1, strokeWidth : 2, ...
1
vote
0answers
53 views

responsive design openlayers - bootstrap or foundation

im looking to use zurb foundation or twitter bootstrap with my map app but before i pick a platform i was trying to find out if people had done this already it seems lots of people have had issues ...
0
votes
0answers
46 views

WMS MODIS Data OnEarth

I want to add OnEarth WMS MODIS in Openlayers. Web Map Tile Service (GIBS) does not fit because I want to get the images from 2006 to 2010. But I can not even imagine how code should look for WMS ...
0
votes
1answer
37 views

How to add Routing Table Query-Result on pgrouting?

I've followed the pgrouting latest workshop http://workshop.pgrouting.org. I wanted to know how to add the routing table query-result into my webpage directly after the route showed up? regards
0
votes
0answers
45 views

openlayers get feature info in variable

i m using openlayer and geoserver2.1.3 i have setup proxy issue but what i get function handler(request) { alert(request); alert("respnse : " + request.responseXML); ...
0
votes
0answers
19 views

OpenLayers.Request.GET returning xmlHttpRequest erroe [duplicate]

I want to get the url result into a variable but function handler(request) { alert(request); alert("respnse : " + request.responseXML); alert("text : " ...
1
vote
0answers
23 views

alternative to mapClickEvent

I use gwt-openlayers lib in my GWT app. I have added a drawFeature control and now I want to show a radius of circle while I draw a feature. Now it looks like this: ...
0
votes
0answers
24 views

Label should appear inside the polygon only

I'm working on vectorLayers of OpenLayers and I'm labeling my layer based on some attribute, while the label appear at some certain zoom level. The problem I'm facing is that though label appears at ...
1
vote
1answer
58 views

Retrieving polygon shapes from postgis database and display it to the browser

I have a codes that will convert polygon shapes that is stored in the database into kml format and count all the rows in it and display it to the browser. models.py #my model in creating fields in my ...
1
vote
1answer
66 views

How to get the result of wms getFeatureInfo Request result into a array

I am using openlayers 2.1.3 and using open layers i get the featureinfo result but it is a web page i want to get the output fields into a variable so i can display them in grid, Plz help me
0
votes
0answers
20 views

Only display polygons that contain points with OpenLayers using spatial filter

After getting some values from the server, I filter a layer made of points, then refresh it. After that, it only shows the point filtered. I also have a layer made of polygons. What I want to do, is ...
4
votes
2answers
227 views

Why is using Bing Maps with QGIS free but not with ArcGIS?

Since the end of 2013 a free use of Bing Maps in ArcGIS is no longer possible. You have to obtain a Bing Maps key directly from Microsoft. In QGIS (with OpenLayers plugin) it is possible to use Bing ...
2
votes
1answer
153 views

Add TMS layer to OpenLayers

I have found some examples but haven't managed yet to adapt them to my needs... I have an image that is served as TMS (tiles already statically rendered): ...
0
votes
0answers
37 views

I'd like to accelerate the refresh of a Open Layers vector layer throught a jqueryui slider in Firefox

I want to develop a kind of timemap combining the jquery-ui slider component and the OpenLayer library. I'm simply using the Vector layer of OpenLayers with Rules style. map = new ...
1
vote
2answers
77 views

WFS layer doesn't display in OpenLayers

I have a few layers in a PostGIS database that I serve through Geoserver and that I try to display in OpenLayers. When I had the geoserver installed on localhost, it worked flawlessly. Now that I ...
0
votes
1answer
54 views

Routing result not showed up [closed]

I'm following the http://workshop.pgrouting.org/ but my routing result not showed up at all, like the picture below: my firebug also didn't give me an error, I'm using geoserver 2.4.2, postgresql ...
1
vote
1answer
64 views

JSONP working with Geoserver and OpenLayers

I'm in this scenario (fighting with the same origin police issue): I have a map initialized with OpenLayers and a WFS request trough the Protocol.Script object that is giving me this error: ...
2
votes
1answer
55 views

How can one read the response of a GetFeature request with Openlayers?

I am using Openlayers to send a GetFeature request to Geoserver. With the help of Firebug I can see that the response contains some of the attribute data I need. I am interested in showing some ...
0
votes
0answers
25 views

Launching Open Layer

Bound Image....I currently have a few shapefiles of a place with a background map of that place. I have imported both shapefiles into postgresql and geoserver. After loading the layers onto geoserver ...
0
votes
0answers
61 views

How to make a geo reference image using GeoTool based on a matrix mapped data?

My ultimate objective is to make a geo reference image and make it as a raster layer to overlay the image above my openlayers map. I have a set of geo coordinate data, and each coordinate is assigned ...
0
votes
0answers
31 views

Openlayers KML script loads slow

Hy, I made a map with multiple KML layers with large datasets (total 500.000 markers). It works fine but as expected it takes a very long time for the script to load al markers. Is there a way to ...
0
votes
0answers
44 views

OpenLayers drawing features on clustered layers

I'm having problems adding and moving features on a clustered (wfs) layer. When I add a new feature all the clustered ones disappear from view. Plus much hacking needed to actually save the new ...
0
votes
1answer
44 views

Filter on a array of value in OpenLayers

I'm running into an issue. I have an array of value coming from a JSON POST. After retrieving these values and storing them into a var, I need to filter an OpenLayers layer with this values. I'm ...
0
votes
1answer
104 views

How did OpenLayers 3 managed to export map from other domain?

As far as I know, you cannot use canvas.toDataURL() on a tainted canvas (i.e. cross-origin). Looking at this example it seems the tiles are coming from different origin (tile.openstreetmap.org). How ...
1
vote
0answers
34 views

Rendering OSM with QGIS for MapServer to use in OpenLayers

I want to show tiles in OpenLayers offline. I've installed QGIS 2.0, TileCache, and MapServer on Windows. Enabled plugin OpenLayers in QGIS. What kind of data I suppose to extract from QGIS with my ...
1
vote
0answers
64 views

How to create a regular polygon grid in Openlayers?

I am trying to create a grid in my map and do some calculations. I seen the following links:- Create regular polygon grid using postgis Create regular polygon grid inside a polygon using postgis ...
0
votes
0answers
83 views

Openlayers can't get KML layer to work

I'm trying to load multiple KML layers with this example project from openlayers.org I can make the KML work in almost all other examples but somehow this code doesen't load. It even breaks the code ...
1
vote
0answers
79 views

pgrouting php problem “pg_fetch_result(): Unable to jump to row 0 on PostgreSQL result index 3”

I'm trying to build a simple routing web-app using pgrouting, followed some tutorial and the latest workshop. Because I'm using PostgreSQL 9.3(x64), Postgis 2.1.1, and pgrouting 2.0 so I did some ...
0
votes
1answer
22 views

Zooming on point cluster in openlayers

I have clustering enabled on an OpenLayers map and have used code from the first answer in: Openlayers zoom in on cluster to zoom in on a cluster. function onFeatureClick(event) { if ...
1
vote
1answer
99 views

case insesitive CQL-openlayers filter

I have the following filter in openlayers 2.13 var filter_c = new OpenLayers.Filter.Comparison({ type: OpenLayers.Filter.Comparison.LIKE, property: 'p_name', value: ...
1
vote
1answer
44 views

Base Layers switching of OpenLayers

I want to know what happen when we switch between the baseLayers of an openLayers Map, I mean when we switch the baseLayer, does it use the layer.setVisibility() to false for all the remaining layers ...
2
votes
0answers
21 views

different maps for different zoom levels in openlayers? [duplicate]

I'm trying to create a mixture of maps that will load in depending on zoom level However, it will only show as one map to the user, and depending on the zoom level, it will load in a different map I ...
3
votes
2answers
106 views

Displaying OSM file with markers

I'm trying to show OSM file which I exported from openstreetmap api. However, layer I add with OSM file is displaying like just polygons, I cannot show markers (street names, names of buildings etc.) ...
1
vote
1answer
55 views

repeat skobbler maps horizontally with OpenLayers?

I'm trying to get skobbler maps to repeat horizontally if you load this page http://developer.skobbler.com/demo/skobbler-tiles-openlayers.html and zoom out, the map will not repeat horizontally ...
0
votes
1answer
39 views

only one popup displayed on the openlayers

The issue is that i only one popup on the map is dispalyed. I can see all the points but popup can see only on the last point of the list. Please check my code http://jsfiddle.net/3HSjY/24/ I'm stack ...
0
votes
0answers
35 views

Selecting WMS Layer on hover - Error Openlayers.REQUEST.GET params

I have wms baselayer and wms shapefile. I want to select the wms shapefile feature while hovering and change its color. I tried SLD Select and adding Selecting and Hover Vectors separately, but ...
1
vote
0answers
40 views

openLayers and geoserver: WMSGetFeatureInfo does not return feature beyond wrapdateline

I built a map made of several layers. I need to display the layers features fields at the place where the user clicks (see the controler code hereafter). The layers are correctly displayed and go ...
2
votes
0answers
72 views

Add a layer as input with code of OpenLayers / GeoExt using GeoServer

I try to develop a GIS app with raster data. I have integrated the code of the following openlayers example in my app. http://dev.openlayers.org/releases/OpenLayers-2.13.1/examples/wps.html I have ...
0
votes
0answers
39 views

Openlayers / QuantumGIS, export or sync features Offline

writing from Spain. I am developing a web application based on OpenLayers , GeoServer and PostgisSQL , packaged under OpengeoSuite . The issue has to do with vector layers and their features. Until ...
4
votes
1answer
76 views

Maximum number of layers in openlayers with geoext

i have been developing webgis application that requires around 45 different layers served from geoserver. I had created openlayers wms layers and added them to geoext, everything works fine till the ...
0
votes
1answer
196 views

OpenLayers - Cannot draw a circle using createRegularPolygon

I have been trying this for a while but I cannot manage to draw a circle on a vector layer although my polygons are being created without any problems. this.pj_epsg_900913 = new ...
1
vote
1answer
117 views

Execute OpenLayers WPS request using WPS Client

I am having trouble executing WPS processes with the OpenLayers WPS Client. I can execute the processes in Geoserver, however when I try to execute the process from my OpenLayers test app I keep ...