Other map types

There is only Google map viewer in the CUBA Platform now, but do you have plans to add other map types support, for example OpenStreetMap or Yandex?
If no, how can I add another map viewer type myself?


In case of OpenStreetMap you could integrate Vaadin add-on: https://vaadin.com/directory/component/openlayers-3-wrapper-for-vaadin/1.3
Check documentation on Vaadin component integration: https://doc.cuba-platform.com/manual-6.8/vaadin_addon_sample.html

If you want to use Yandex, you can either build custom JavaScript component or use BrowserFrame to embed it.

It seems that BrowserFrame is the fastest way for me now.
How can I interact with map in BrowserFrame? For example, how to get coordinates of marker?

Interaction is possible only in JavaScript, since BrowserFrame shows all the content inside of <iframe> element. You could use window.postMessage from JavaScript: https://developer.mozilla.org/en-US/docs/Web/API/Window/postMessage It is not so easy, if you really want to interact with Map component I’d recommend that you implement custom JS-based component.