That’s unfortunate, but I can find another solution I guess
Another question:
I have implemented a FeatureModificationListener. As it appears, the ModificationListener fires while I am still dragging a feature (it fires if a hold the mouse still for a second). Is there an option to only fire once I release the mouse button? Or how else could I detect that the feature drag has been finished (e.g. mouse button released)?
Any ideas regarding this point?
I want to perform some action as soon as the user finishes dragging a feature. However I cannot detect when the dragging is finished, as the FeatureModificationListener already fires when the mouse movement is paused for too long.
I am also new to OL, is there any info about basic stuff, I am looking into source code but i can’t figure out how to add clicklistener to an marker, popup window, how to define marker cluster or so, is there anything about this?
I have set up a local tile server for a solo country in Ubuntu.
Now I have examined the examples in your project in github, but I couldn’t find a way to connect to my local tile server. Is there any option to do this ?
I have a problem with run maps on Demo example. OpenStreetMap not loading - show in attachment.
The problem is non-loading map with openlayers in version 3.9, which is included in this wrapper.
When I update openlayers into 3.20.1 version I have other error:
VM156:10134 Uncaught TypeError: h.Id is not a function
at Zp.ge (eval at Yud (org.vaadin.AppWidgetSet-0.js:NaN), <anonymous>:10134:110)
at aq.ve (eval at Yud (org.vaadin.AppWidgetSet-0.js:NaN), <anonymous>:10306:115)
at W.l.Kn (eval at Yud (org.vaadin.AppWidgetSet-0.js:NaN), <anonymous>:12042:16)
at oi.f (eval at Yud (org.vaadin.AppWidgetSet-0.js:NaN), <anonymous>:3914:16)
Can anyone help?
What more do i need to get the add-on? My project is seeing only some of the types but not all.
Eg. org.vaadin.addon.vol3.layer.OLTileLayer, org.vaadin.addon.vol3.client.source.OLMapQuestLayerName, etc are there but not org.vaadin.addon.vol3.source.OLMapQuestSource.
What am i missing!?
new to OSM and maps-- please bear with me. not that old on Vaadin, either.
// >>>
OLSelectInteractionOptions opts = new OLSelectInteractionOptions();
OLStyle style = new OLStyle();
OLStrokeStyle strokeStyle = new OLStrokeStyle();
strokeStyle.color = “rgb(255,0,0)”;
style.strokeStyle = strokeStyle;
List styles = new ArrayList<>();
styles.add(style); opts.setStyles(styles);
final OLSelectInteraction select = new OLSelectInteraction(opts);
I think, I should see red lines, but they still behave in theire standard mode blue.
My aim is to modify also the selection mode (adding and removing without shift), but this is then the next question. There isn’t any functionality in the wrapper therefore. But it seems to be easy to add it, if the connector basic functionality would work.
I used v-ol3 1.2 with vaadin 7. Everything worked well. Thank you for this good job !
After migrating to vaadin 8 and v-ol 2.1, I have a problem with the text on the polygons. The text does not display. Yet, the text is perfectly displayed on lines and points. Here the style that I use for my features.
I don’t see anything obvious wrong with your code. Indeed there seems to be a problem when displaying text labels on polygons with the latest OL3 wrapper version. One possible cause might be that the wrapper does not provide all the apis for the TextStyle available in the wrapped JS library. Could it be that the labels get “cleaned” by the declutter feature for instance? That would be my first bet.
I tried to find a workaround but unfortunately failed. When I have more time, I could try to wrap the remaining TextStyle features and see whether there is a combination that works. No promises about the schedule though.