It’s really easy to use the External locations in WYF. To do this you need to initialize the module programmatically instead of with the xml. There are examples on how to do this.
When loading the module you have to enable the external locations like this:
LibrarySettings librarySettings = new LibrarySettings(); librarySettings.useExternalLocations(true); SitumMapsLibrary mapsLibrary = new SitumMapsLibrary(R.id.maps_library_target, this, librarySettings);
After doing this you just need to start the positioning and add your location whenever you want.
ExternalLocation externalLocation = new ExternalLocation.Builder("building_id", "floor_id", 4.55555,5.666666).build(); mapsLibrary.addExternalLocation(externalLocation);