OpenLayers is a JavaScript library for creating dynamic map widgets for web sites.
1
vote
1answer
78 views
Running OpenLayers in .NET 4.5 breaks
So, I'm writing an web mapping application using OpenLayers in WebForms in .NET 4.5.
It was working wonderfully until my browser upgraded to IE9. Now the JavaScript fails. After researching I found ...
1
vote
0answers
30 views
How to bring workspace layer to one combo box and once layer selected in this attribute of this layer in other combo box
I want a layers in workspace in combo box.Once i select combo box i want attribute in selected layer to in other combo box. how can i do it. I am using geoserver, openlayers, Geoext and ext js.
Can ...
4
votes
2answers
73 views
How do I parse getStyle request?
I am having problem parsing
http://localhost:8080/geoserver/wms?request=GetStyles&layers=topp%3Astates&service=wms&version=1.1.1
getStyle response from geoserver of layer topp:states.
...
1
vote
0answers
70 views
How to add legend in WFS openlayers
How i can publish WFS openlayer with legend, have tried different examples such as http://api.geoext.org/1.0/examples/vector-legend.js. But when i used tried this fire-bug shows an error=> ...
1
vote
2answers
43 views
Is 'Shortest Route/Distance' analysis is possible in Geoserver using Openlayers 2.8…?
I have configured a web based GIS Map using Geoserver & Openlayers controls.Now I want to add 'Shortest Route' analysis in the same...
Any solution....???
Thanks In advance
Regads
Sandipan
1
vote
0answers
26 views
OpenLayers getFeature loading indicator
I need to set up loadMask for OpenLayers.Control.GetFeature. I know i should hide the mask on featureselected event or on protocol callback but when should i show the mask?
Here is code (assume i ...
0
votes
0answers
24 views
Switching between different feature sets / Change orientation of Openlayers Map
Setup
Entities postgis table:
id | name | the_geom | campus_id
1 | bldg_1 | <b1_geom> | 1
2 | bldg_2 | <b2_geom> | 2
3 | bldg_3 | <b3_geom> | 1
4 | bldg_4 | ...
3
votes
1answer
42 views
Can i do everything with openlayers mobile like openlayers api?
Where can I download openlayers mobile api?
Can i do everything with openlayers mobile like openlayers api?
Thank you very much
0
votes
0answers
15 views
Showing all points or features at border if point coords out of visible range in Openlayers
I'm building user-friendly map-system with openlayers and think its very usefull thing
it looks like if we go out from area with point, then point will be displayed at border, and it can be clicked ...
0
votes
0answers
26 views
WMS layer is not overlaying exactly when zooming out. How to add WMS layers to google map layer in openlayers?
My openlayers code is as follows. But there is shift in between both the layers. How to rectify it?
map = new OpenLayers.Map( 'map_element',{} );
var gsat = new ...
1
vote
0answers
32 views
Editing a vector layer with openlayers
i am trying to develop a webmapping application using openlayers, geoserver, JSF javascript. I published my postgis layers on geoserver and added them to a google basemap on a xhtml page using a ...
2
votes
1answer
64 views
How to show/hide labels with mapserver and openlayers
I'd like to have a check/uncheck option like this print checkbox to show/hide labels in my WMS layers served by mapserver 5.6.7 in openlayers 2.11. I have a toolbar where to put this using probably ...
0
votes
1answer
20 views
how to stretch GMT raster with gdal to work with google
How can I stretch a PNG raster coming from GMT (Generic Mapping Tools 4.5.6) in such a way that does align with google satellite or bing? such raster is in wgs84 and crosses two UTM zones (17 and 18 ...
1
vote
3answers
115 views
How to use WKT in Google Map V3?
We have a shape with the following WKT. The problem with google map we normally extract out each of the lat and long value and put into an array and finally will do something like this. It works fine ...
0
votes
0answers
16 views
OpenLayers popup control doesn't work after selecting another control
I have created an application using OpenLayers which by default includes the navigation control and the draw feature control. These controls are selected using a control bar similar to the one shown ...
0
votes
0answers
21 views
openlayers addUniqueValueRules default style not displaying
I'm trying to alter the colour of displayed points using addUniqueValueRules in OpenLayers. If I don't use addUniqueValueRules all my points display the default colour (green). However, when I add ...
0
votes
0answers
16 views
How to retrieve latlon values of point that is searched by user?
I want to create a shortest route in openlayers. I created the sql queries of shortest route algorithms and can query shortest route in sql. Now I want to create a search functionality so that the ...
1
vote
3answers
71 views
Openlayers vector feature coordinates are not transforming,
I have a OpenLayers vector with a single feature [0]. It's coordinates are in the map projection (EPSG:3413) and I want them in WGS84 (EPSG:4326) decimal degrees. I have the following code which ...
-2
votes
1answer
88 views
Adding Google map layer in Openlayers - what about this function?
How to add Google map as a layer (something like "var gmap = new OpenLayers.Layer.Google("Google Streets", {visibility: false})"?) to this mymap.js function i already have:
var map = new ...
0
votes
1answer
41 views
Wrong projection on WFS layer with OSM baselayer [duplicate]
I am trying to add a vector layer with a WFS protocol.
var wfs = new OpenLayers.Layer.Vector("WFS", {
strategies: [new OpenLayers.Strategy.BBOX({resFactor: 1})],
...
2
votes
2answers
34 views
How to add logical operators in wfs openlayers
How i can add logical operators AND, OR both togehter in WFS openlayers.
<script type="text/javascript">
var map;
function init() {
var bounds = new OpenLayers.Bounds(
...
0
votes
1answer
67 views
How get Map extents for draw polygon when final click is done?
I am using openLayer js to draw a polygon and now i want map extents of the drawn polygon one final click (i.e. user finish drawing polygon or double click is done). For drawing the polygon i am using ...
1
vote
1answer
37 views
Reverse Vector Layer Feature order
I have a vector layer where some features are found entirely within other features and therefore I can't select that feature because the other feature is on top of it. Is there a way to reverse the ...
1
vote
1answer
31 views
Openlayers Overview - disappearing layers
when I do this:
var options = {
autoPan : true,
size : new OpenLayers.Size(300, 200),
layers : this.map.layers,
mapOptions : {
allOverlays : true
...
1
vote
1answer
68 views
Win7 Senior users_Which pgRouting and postGIS versions are stable with postgreSQL8.4?
I'm working on a postgreSQL ,postGIS and pgRouting project on Windows 7
I need to work on a stable version (no time for risks), and I can see that many people are asking the same question many ...
0
votes
1answer
49 views
OpenLayers generate random polygon
I have a world map. I need randomly to generate polygons and render them on map.
I have no problem with rendering, but can anybody suggest how to generate polygons with random geometry? (I need n ...
2
votes
1answer
56 views
Styling a WFS layer, how to control title in legend?
I have a problem with styling a WFS in OpenLayers. I tried different ways (from the examples) to style the WFS, but I could only get the default style in orange. Then I found one way, which worked for ...
1
vote
3answers
99 views
How to add wms layer in OpenLayers from a geoserver?
How to overlay a wms layer from geoserver (localhost)in Open layers? What is the basic syntax of Geoserver WMS Layer?
Details are as follow !
workspace name: india
layer name:hospitals.
<script ...
1
vote
2answers
40 views
simplify point geometry
I have a great amount of points and I need to show them on map. I am using OpenLayers. Is it possible to simplify point geometry in order to speed up the process of rendering?
0
votes
0answers
61 views
OpenLayers zoomToExtent when no layers in map
In my app user starts with empty map and can dynamically add new layers. When user adds new layer i do the following:
send request to geoserver for layer capability to get layer extent.
zoom to ...
0
votes
0answers
21 views
openlayers clustering alternative
Is there some alternative to group features in OpenLayers? My goal is to speed-up the process of rendering. Clusters allow to do that a bit faster than rendering just plain features. So, any ...
0
votes
0answers
34 views
OpenLayers Vector Line Feature hard to select
I have a measurement control on an OpenLayers map which allows the user to (unsurprisingly) measure lines and areas on the map. They draw the line/area they want, OpenLayers does the measurements ...
0
votes
0answers
50 views
Add dynamic layer to geoext tree
I'm trying to add a dynamic OpenLayers Layer in a folder(children) of tree.
I've tryed the following code and it works, but I don't know how to associate the layer with a layer of OpenLayers() type:
...
0
votes
2answers
56 views
How to display vectors in arcgis json format in openlayers?
For this project I am working on, I would like to display an ArcGIS Online FeatureService (JSON) in a webmap that I have built using OpenLayers.
I am able to read the JSON from the service, but I ...
1
vote
1answer
28 views
How to change the color of the layer after searching
My task is searching a single house from a layer and then zoom to the center. I did this part but i can't clearly identify this house. I am try to do this by adding a fillcolor to the searched area. ...
0
votes
1answer
80 views
openlayers python proxy.cgi script is not taking parameters
I have setup the python proxy.cgi in cgi-bin folder in my server.
[myserver]/cgi-bin/proxy.cgi returns the openlayers website
[myserver]/cgi-bin/proxy.cgi?url=www.openlayers.org returns list index ...
0
votes
0answers
22 views
Can I add a color fill style to a point [duplicate]
I am working with openlayers.
I need to fill a different color for the searched area like a house.
In order to perform searching I used:
first find the points and make bound the two points.
After ...
1
vote
1answer
69 views
Openlayers - how to display base layer before overlays and display overlays as they are being loaded?
This is my first question here. I already found a lot of good information here about openlayers so I guess it is the right place to ask. I am not a programer, I just usually adapt what I can find to ...
0
votes
1answer
61 views
How to add google satellite as a base layer for a geoserver generated openlayers page
İ have added a shape file to geoserver and generate a wms page. I want to add google satellite as a base layer but i can't do it. would you please give me a hint how to add google satellite as a base ...
0
votes
0answers
37 views
How to obtain the center of Vector layer created using WFS query?
I created a vector GML layer using a WFS query with a filter. The layer renders fine . However, the layer does not appear to have any features associated with it (layer.features.length is 0 )
I need ...
0
votes
1answer
26 views
OpenLayers Clustering Adds Features to Selected Features Array on Zoom
This is my first posted question despite using StackExchange for a few years now. I've been stuck for quite some time trying to figure out this issue with OpenLayers. The problem is as follows:
I ...
0
votes
1answer
30 views
Displaying a multi-zoom image layer in open
I am displaying an image on a map in OpenLayers. The problem is: if I zoom out, the image vanishes. If I zoom in, it works as it should. How do I display an image layer in OpenLayers so that when I ...
2
votes
1answer
72 views
OpenLayers: make polygons not zoom
I have a simple OpenStreetMap for which I want to display a series of circles. Each circle represents readership for that area, so its radius will change based on the numbers.
However, when I create ...
2
votes
0answers
44 views
OpenLayers - Weird behaviour when a feature is zoomed in
The problem is when I zoom on a feature inside OpenLayers with any browsers, at a certain zoom level the feature flip like you can see in those pictures
3
votes
2answers
50 views
Performance loss for OpenLayers EPSG transformation? Storing GeoJSON coordinates in lat/lon or in native map projection?
For a project the map projection is EPSG:32468 (tiles). On top of the map, two or three GeoJSON LineStrings should be displayed using OpenLayers. Each LineString has about 1500 coordinates.
...
5
votes
1answer
83 views
how to display polygons as points until certain zoom level?
can somebody tell me how to display polygons as points until you zoom to some level. I'm speaking about OpenLayers.
So, for example, if the zoom level is less then 10 than it should display feature as ...
0
votes
0answers
54 views
Long/lat to tile row and column for a certain layer on EPSG:900913
I have a bunch of XYZ layers rendered in OpenLayers. I want to give a lon, lat and Z value and the system would return the X and Y location of the tile of that XYZ layer.
I found the following 2 ...
0
votes
1answer
36 views
How to convert osm way xml to openlayers feature?
I am displaying the osm data through a popup with openlayers. For now i am using the overpass api to get data.
But my app needs to reflect the rapidly changing data i.e. one changes the data then ...
1
vote
0answers
40 views
OpenLayers IE performance issues
I have an Openlayers map set up, it is all working well except in IE7 (which most of our users have) where performance is slow.
I load in several layers of vector features and then switch these layers ...
1
vote
1answer
35 views
Display mouse position from graph on a map
i need to develop a web application which shows a map, that displays a GPS Route.
So far I can do this using Openlayers or ArcGIS Server.
Now I want to add an interactive graph below the map. In this ...



