mstahv / v-leaflet

Leaflet add-on for Vaadin
Other
43 stars 38 forks source link

Feature Request: Interactive, Responsive HTML Code on map #198

Open strxetics opened 5 years ago

strxetics commented 5 years ago

Hello,

is there a way to render zoom-responsive, interactive Components on the map? If so that would be a great feature. E.g. for a user placing notes on the map a in resizable Rich-Text-Editor.

Thanks in advance and best regards

Stefan

mstahv commented 5 years ago

I think the best way is to use plain Vaadin features to accomplish that. You can use Window to be placed on the map, AbsoluteLayout (put both map and the overlay component there) or work with CSS to put the components there. Do you have a more detailed wireframe or some other illustration what you'd like to accomplish? I'm pretty sure it is possible today, but we'll just need an example.

strxetics commented 5 years ago

What i want is to render a Vaadin component on the map, which has an anchor at a location. So that, if i move the map, the component moves with it.

E.g. I put a component with two buttons(compared to a Marker which is only one button) to New York, then i move the map to Turku ;), and as soon as New York leaves the map, my component is also not visible anymore.

As far as i understand, if i were to do it the way you described, the component would be static?!

Thanks for your help!