Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Add the file to the webapp/data/maps folderĀ folder.

Now we can add the map to the application. Add the UiTopoMapFactory to the component Class and UiExtenstion.Builder() for the Class.

Code Block
languagejava
linenumberstrue
protected final UiTopoMapFactory topoMapFactory =
        () -> ImmutableList.of(
                new UiTopoMap("south_america", "South America", "*south_america", 0.9)
        );

return protected UiExtension extension = 
	new UiExtension.Builder(CL, coreViews)
        .messageHandlerFactory(messageHandlerFactory)
        .topoOverlayFactory(topoOverlayFactory)
        .topoMapFactory(topoMapFactory)
        .resourcePath(CORE)
        .build();

...