React Implementation

If you wish to integrate our SDK in a React project and you render the map into a portion of the DOM tree that is managed by your instance of React, you will have to take some precautions.

We have created a simple React sample using our SDK as a guide which can be downloaded here.

📘

Removing a map

The "destroy" function should be called when you wish to remove a map from a page e.g. if you have a tabbed UI, it should be called when the user clicks away from the tab if that content is going to be removed from the DOM. If it is simply hidden/shown it should not be called. In Ionics tabbed UI the tab content is removed and re-added each time, so this must be used.