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

learn more… | top users | synonyms

0
votes
1answer
8 views

Openlayers Vector Layer Features are empty even after DrawFeature executed

I am new to Openlayers and Javascript. I am creating a web map that will allow users to draw shapes on top of a base map. I'm trying to figure out how to access the coordinates of the shapes that are ...
0
votes
0answers
2 views

Binding JqxGrid and Openlayers map

I want to represent the layer features in Table format using JqxWidgets. How to bind the jqxGrid with Openlayers 2.x map (i.e., WMS layer). Please help out this.
1
vote
0answers
4 views

WFS layer using isWithinDistance function in SLD?

I want to create a cector layer. After querying the layer, if any two of the features are within 300 meters distance, I want to join those two lines and give buffer around the line and display. Is ...
0
votes
0answers
23 views

How to organize database with objects having GPS coordinates (in radians)

I have a huge database of different objects organized in tables. For instance photos in one table and metadata of each photo in other. Most of them have their GPS coordinates in radians stored as a ...
0
votes
0answers
7 views

display thematic map using openlayers

iam displaying map from mapfile(mapserver) in c# using openlayers mapfile is connected to postgres it is working well but now i want to diaplay thematic map using the postgrs database using ...
2
votes
1answer
32 views

Oracle / GeoServer / WFS-T / Openlayers many polygons as one feature

Newbie question regarding Oracle / GeoServer / WFS-T / Openlayers. I am creating a table that will hold geometry features a user creates/updates. My question is, I would like to have just one record ...
1
vote
1answer
14 views

How do I disable mouse scroll zoom in OpenLayers 3?

I'm trying to override it 'cause it's so dang sensitive. Bonus points if you can also demonstrate a elegant way to override, but, well, I can probably figure that out.
0
votes
1answer
18 views

OpenLayers measure map rendering time

I am using OpenLayers version 3 (answers with ver 2 are also OK) and want to measure how long it takes to render the vector layer. So, I have a vector layer with features: var vectorLayer = new ...
1
vote
1answer
30 views

How to update back to GeoServer/Oracle from OpenLayers

Folks, I have followed the example to setup a WFS Transaction successfully: http://dev.openlayers.org/examples/wfs-protocol-transactions.html My environment is GeoServer 2.6.1/OpenLayers 2.12.1. I ...
0
votes
2answers
14 views

getFeatureInfo is working only if line of polygon is clicked, does not work inside polygon

I have issue with getFeatureInfo function. I can get features of polygon only if it is clicked on line (border) of polygon. By clicking on line, i get features of few polygons, and i want to click ...
1
vote
1answer
23 views

How to implement a WPS client in OpenLayers 3?

I was wondering if it is possible (and what is the recommended way) to use OpenLayers 3 to do the work of theOpenLayers.WPSClient? As shown in the old WPS client example, OpenLayers 2 can be used to ...
0
votes
1answer
27 views

How check if a point is inside a map

I have a map and one point. I want create an area and check if a point is inside the area. map = new OpenLayers.Map("map"); map.addLayer(new OpenLayers.Layer.OSM()); var lonLat = new ...
1
vote
1answer
21 views

Function to intersect another polygon using openlayers

I wonder if someone here have a function JS that when I draw a polygon I can see if i drawing on another polygon, like intersect.... if polygon intersect say to me a alert...using openlayers. Thanks! ...
0
votes
0answers
30 views

WFS without Geometry data type in openlayers [closed]

Is it possible to display layer as WFS if layer does not have field with data type "Geometry" ? I have shape file which imported in postgresql and want to display or access as wfs layer from ...
1
vote
1answer
34 views

QGIS/OpenLayers - How to add a “labels-only” reference layer (basemap focused on labels)?

In ArcGIS you can add a "reference basemap" which features labels for key locations as in: http://www.arcgis.com/home/item.html?id=8b3d38c0819547faa83f7b7aca80bd76 however, in QGIS, I cant figure ...
1
vote
0answers
9 views

Keep dragbox visible

I'm using a dragbox to capture coordinates from an openlayers 3 map. Is there a way to keep the dragbox visible once you release the mouse buttom and have it disappear only once you start a new ...
1
vote
1answer
26 views

Google Hybrid Map tiles won't load in OpenLayers when centered on certain position

Since the Google Maps API update to V3.2 (17 Feb 2015) our maps have not been loading to their initial state, centered over the Gulf of Mexico. When the center location is: center: new ...
2
votes
0answers
17 views

OpenLayers 3 don't go beyond given coordinates

In Openlayers 3 Max Extent there is mentioned how to set a max extent. But how can I set coordinates in such a way that it is not possible to drag the map beyond the some given coordinates? Extent ...
1
vote
1answer
27 views

Openlayers how to display wfs with another projection than EPSG:4326

Here is some OpenLayers code: var projection = "EPSG:3009"; map = new OpenLayers.Map('map', { // projection: "EPSG:900913", // displayProjection: projection, // displayProjection: ...
0
votes
0answers
30 views

web2py - openlayers

I have used web2py and there is test.py under controllers which shows a map as below: and its code is: for url in [ 'http://dev.openlayers.org/theme/default/style.css', ...
0
votes
1answer
36 views

Reprojecting vector layer from EPSG 3857 to 4326

based on examples from: http://acanimal.github.io/thebookofopenlayers3/chapter03_10_reading_writing_features.html http://acanimal.github.io/thebookofopenlayers3/chapter07_07_editing_features.html I ...
0
votes
0answers
8 views

How to get Point feature from Mouse interaction in openlayers 3

I am unable to get point features from event coordinate like below $(map.getViewport()).on('click', function (evt) { //var pixel = map.getEventPixel(evt.originalEvent); var ...
1
vote
1answer
43 views

why are all polygons of geojson-layer in OpenLayers 3 black?

I want to color each polygon of my geojson according to its Hex-Value at "DN". I tried this: var map = new ol.Map({ target: 'map', layers: [ new ol.layer.Tile({ source: ...
0
votes
1answer
10 views

Hide an OpenLayers Marker but Keep the Line String associated with it

I'm drawing circles as range rings around a point using line strings. I will be "attaching" the rings to a moving item Is it possible to delete or hide the default orange marker without deleting or ...
0
votes
0answers
8 views

Openlayers 2.11 migration to 2.13 opens annoying popup “featureOver”

I'm building an AngularJS application with Openlayers. I was using ol version 2.11 and everything worked fine, and then I started to use grunt and the build failed because of Openlayers. I switched to ...
1
vote
1answer
15 views

OpenLayers filter on null and 0

I have this filter: var filter_unset = new OpenLayers.Filter.Comparison({ type: OpenLayers.Filter.Comparison.EQUAL_TO, property: attribute, value: 0 }); Now, I want the ...
0
votes
1answer
11 views

Fetch the selected value from scale toolbar

can somebody guide me how to fetch that value shown in the image? using jquery and or PHP language?
0
votes
1answer
28 views

OpenLayers 3: How to Refresh map after changing a Feature's style?

I have an OpenLayers 3.2.0 map that features some vector sources (ol.source.Vector) and associated vector layers (ol.layer.Vector) When Features (ol.Feature) are added to the vector sources, they are ...
1
vote
1answer
66 views

Add GeoJSON layer to OpenLayers 3

I have a GeoJSON file called mygeojson.json and I want to add it as a layer in OpenLayers 3 on top of an openstreetmap layer. So far I could display the openstreetmap world including zoom etc. but for ...
2
votes
1answer
38 views

How to project a GeoJSON on the fly in OpenLayers 3?

I have been trying to load a GeoJSON without success. I have a map with a background layer from OSM. I have some data in 4326 I want to overlay on that map. I do not want to transform coordinates one ...
-1
votes
0answers
26 views

OpenLayers 3 export map not working in Internet Explorer?

OpenLayers 3, in export to map functionality, I am unable to download map. In Chrome it is working fine.
3
votes
3answers
61 views

Difference between GeoServer and OpenLayers

I recently installed GeoServer and downloaded OpenLayers also. I am a bit lost about which one to use when it comes to add functionality in my web map. For example, I want to add layer switcher, ...
0
votes
1answer
19 views

WFS layer without features

I have a layer with many features and when I add it to a map as WMS layer it works. But if I add the layer as WFS it seems there are no features. The code I use to load WFS layer is: var ...
0
votes
0answers
20 views

Exporting Map to a PDF…it all jumps around! [duplicate]

When I try to export my map from the composer into a PDF or image the base map (Google map using open layers) It moves and so isn't inline with the other layers I've put on.... It jumps different ...
0
votes
1answer
27 views

How to apply partial opacity in a WMS layer, using OpenLayers?

I am working on a GIS API, and I can't share the code, so I will try to explain what I want. I want to apply a style map on a single layer, where I have some elements with opacity 1 and other with ...
0
votes
1answer
32 views

Openlayers Load Blank Tiles - How To Combine OpenLayers 3 to MapServer version 6.0.3 (MS4W 3.0.6)

I Have Some Experiences With Openlayers 2 Now I Want To Combine OpenLayers 3 And Mapserver And I Tried The Below Configs And Code On OpenLayers And MapServer But The Openlayers Load White And Blank ...
0
votes
0answers
32 views

WMSGetFeatureInfo with Geoserver HTTP Auth

I'm using Geoserver and OpenLayers to call Geowebcache with WMS layers. My application and Geoserver are on different servers so I'm using OpenLayer.ProxyHost and a URL rewrite on the map server. We ...
0
votes
1answer
29 views

BoundingBox of Layer seems to be unnaturally large

I retrieve the bbox of my main Layer via GetCapabilities. Now, if I instantiate my map like this, I would expect to have the map centered within the bbox. map = new OpenLayers.Map({ div : ...
1
vote
1answer
25 views

Bounding Box Coordinates are given in different Projection - how do I find out which

All the layers in my application are EPSG:31466. However, if I retrieve the capabilites: var wms = new OpenLayers.Format.WMSCapabilities(); OpenLayers.Request.GET({ url: ...
0
votes
1answer
19 views

OpenLayers3/GEOJSON - Feature 'source'?

I'm fresh with OpenLayers/GEOJSON... Anyway,vector layer with features (lines, polygons..dots..) and it pulls those data from GEOJSON ("type":"FeatureCollection") file. Is there a way to see ...
0
votes
0answers
31 views

Disable selection of clusters OpenLayers 3

At the moment I have my map set up to cluster icons upon zooming out. I want to disable the ability to select clusters but allow the user to select individual markers if they zoom in. Preferably, ...
0
votes
0answers
8 views

Rotated custom tile set in OpenLayers

I'm thinking of using Openlayers for an interactive map of a building. I'll have custom tile layers for each floor of the building's interior overlaying regular world map tiles. The building is on a ...
0
votes
0answers
7 views

Geoserver - Bounding Box Of Layer [duplicate]

GeoServer-> Layer Preview: When I click on the "Open Layers" Link of a Layer, a Window opens, showing a WMS-representation of the layer within a bounding box. How do I directly retrieve the ...
0
votes
0answers
24 views

How to use openlayers 3 and Mapserver (WMS

I'm not able to centralize my map in OpenLayers / MapServer , it appears at the top . The " center " do not work . Below my code to better analyze . I did not post the mapfile why I did an experiment ...
1
vote
0answers
8 views

OL2: Zoom specific WMS [duplicate]

I'm desperately looking for a way to use multiple WMS on my application. If a user zooms in/out another baselayer is supposed to be selected. As for now, I've come across the following: ...
0
votes
0answers
11 views

Retrieve Extent of Map in specific projection [duplicate]

Geoserver WMS Layer and WFS Layers that I display with OpenLayers. MaxExtent of the map is hard-coded. map = new OpenLayers.Map({ div : "map", projection : 'EPSG:31466', units : "m", ...
0
votes
1answer
18 views

OpenLayers getCentroid problem

I have a polygon from a select feature event. I can see the polygon using firebug but I'm getting an error saying Type Error: getCentroid is not a function. Can anyone help please? var poly = ...
1
vote
1answer
24 views

How do I catch PostgreSQL/ PostGIS RAISE messages in OpenLayers?

Is it possible to catch Raise Warning, Raise Notice and Raise Exception in OpenLayers while using a WFS-T-Layer (stored in a PostGIS-Database) to save edits? Example: A trigger is used to check values ...
0
votes
0answers
30 views

OpenLayers ZoomToExtent doesn´t seem to work properly with WFS layer

My website has a list of routes and a map. When I click on each route it appears its associated information and the WFS layer is selected. As a base layer I have all the routes obtained with WMS. ...
0
votes
0answers
27 views

OpenLayers/GeoServer layer zooms in and then out again - I Added VIDEO OF PROBLEM

I have a strange ZOOM behavior. I am using GeoServer 2.6.1/OpenLayers 2.13.1. I have a layer I created from a MrSid file and am serving as a wms layer. Lets call it the "problematic" layer. When I ...