OpenStreet vs. Google Map

The OpenStreet Map is the default tile provider for our map implementation. If you want to use Google map instead of OpenStreet, simply configure the map implementation. This is possible via mobile.xml

<?xml version="1.0" encoding="UTF-8"?>
  <!-- general -->
  <!-- react only --> 

It's also possible to set the map implementation via deployment descriptor (web.xml), e.g.


and finally it's also possible to set the parameter

to “true”. A parameter can be set via request stream, URL parameter or as application parameter in application.xml.

If you want to set the google API key, simply set the parameter:

… or in your source code, write:

  getFactory().setProperty("", "apikey");

to set the apikey.

Usage is very similar to usage in vaadinUI.

This website uses cookies for visitor traffic analysis. By using the website, you agree with storing the cookies on your computer.More information