setEnvironment

Deprecated

This method will be changed to `setEnvironment(environment: IEnvironment)` and will not return anything in a next release

Sets the global environment for the map, points of interest, etc.

Except for the Itineraries service, which is independent. You can set its environment using setItinerariesEnvironment.

Make sure to set the environment before any other interaction with the WemapSDKs. Otherwise, your changes will be ignored until the related objects are re-created.