GWT-OpenLayers is a Java wrapper for the OpenLayers JavaScript API. It allows GWT projects to use the OpenLayers JavaScript API.
Questions tagged [gwt-openlayers]
57 questions
11
votes
3 answers
gwt-openlayers with openstreetmap example
I'd like to integrate OSM in GWT.
I found this library called gwt-openlayers, but I don't understand how can I make it work with the OSM map.
Can anyone provide me a short example?

Tughi
- 1,093
- 1
- 11
- 20
6
votes
2 answers
Openlayers3 get map from element
Is there a way in Openlayers 3 to get the map that is attached to a specific html element?
Something like:
var map = new ol.Map({
view: new ol.View({
center: [0, 0],
zoom: 1
}),
layers: [
new ol.layer.Tile({
source: new…

Tyler DeWitt
- 23,366
- 38
- 119
- 196
6
votes
1 answer
Is automated testing of Open Layers possible?
I am attempting to use selenium to test OpenLayers-2.13.1 functionality.
I am having problems with mouse clicks, mouse downs etc....
I found a couple of out-dated posts with similar problems but their resolution didn't help me.
Does anyone know of…

John
- 3,965
- 21
- 77
- 163
4
votes
1 answer
mousemove events in gwt-openlayers
I am trying to capture mouse events in gwt-openlayers.
The following handler does receive events, however I am
unable to extract mouse position from EventObject object.
Anybody can help ?
mapPanel.getMap().getEvents().register("mousemove",…

t.aldo
- 131
- 4
3
votes
2 answers
Is it possible to overlay an icon on top of a geometry object in Open Street Map?
I was wondering if it was possible to overlay an icon marker over a geometry object in Open Street Maps. I am using gwt-openlayers which is a java wrapped version of the open layers api with an Open Street Map tile server in Eclipse. If anyone has…

Mr.Powers
- 163
- 7
3
votes
1 answer
How to fit screen on map by setting zoom level manually?
I am new in openlayer maps,When you click on checkbox it will fit the maker on screen with full zoom in but I want to fit maker on screen with zoom level 11.
map.getView().fit(source.getExtent(), map.getSize());

v. josh
- 119
- 1
- 1
- 12
3
votes
0 answers
Openlayers 4 build not working
I forked the official openlayers repo, and I followed the instructions from here to make a local build, but i get the following error when i run 'make build':
node tasks/build.js config/ol.json build/ol.js
info ol Parsing dependencies
ERR!…

N. Silviu
- 113
- 1
- 8
3
votes
1 answer
Programmatically trigger a select event in open layers 4
Is there any chance to trigger a manual selection for an ol.feature in ol4? I saw the post here, but i have the same issue : the custom selection style is not applied. Any workarounds to get programmatically selection working as normal…

N. Silviu
- 113
- 1
- 8
3
votes
2 answers
how to draw circle with radius in openlayers
I want to draw a circle in openlayers with specific radius in km. with the center of specific geo point? I follow same as http://demo.gwt-openlayers.org/gwt_ol_showcase/GwtOpenLayersShowcase.html?example=Draw%20Regular%20Polygon%20Example but I want…

Mayank Pandya
- 1,593
- 2
- 17
- 40
3
votes
0 answers
Marker Drag Event in GWT openLayers
How do I create a drag event for a openlayers Marker? I have a Marker that inherits the openlayers Marker class, and I need to be able to drag the Marker

Rana Shouman
- 106
- 9
2
votes
2 answers
gwt-openlayers - display a route
I use gwt-openlayers.
I still haven't found how to display a route.
Is it possible to display a route with gwt-openlayers?

ZehnVon12
- 4,026
- 3
- 19
- 23
2
votes
0 answers
GWT-OpenLayers: Highlighting points with different styles on a layer
I have several points on a layer and all might have different styles associated with them. So I'm doing
VectorFeature pointFeature = new VectorFeature(point,pointStyle)
It all works fine until I do the select(i.e. click the point). When I do a…

pratZ
- 3,078
- 2
- 20
- 29
2
votes
3 answers
How to create a clickable grid layer on top of a map using OpenLayers
I'm somehow new in making web services using Openlayers and Javascript. I would like to create a clickable grid layer on top of a map (e.g. OSM) which first has a defined spatial resolution (e.g. 200 m) and of course when user zooms the grid size…

James Mc
- 37
- 1
- 5
2
votes
2 answers
Display WMS layer in GWT-Openlayers
I use GWT-Openlayers and i want to add a WMS layer to my Map. Here is the code:
...
MapOptions defaultMapOptions = new MapOptions();
defaultMapOptions.setNumZoomLevels(7);
//Create a MapWidget
MapWidget mapWidget = new…

Imreking
- 309
- 1
- 2
- 13
2
votes
1 answer
How can I programmatically select a VectorFeature in GWT-OpenLayers?
The javascript version provides OpenLayers.Control.SelectFeature.select, but the Java/GWT version does not.
Thanks.

BLuFeNiX
- 2,496
- 2
- 20
- 40