v1.0.7
What's new?
- The
apiKeycan now be specified in theMapconstructor (will propagate toconfig) - The
languagecan now be specified in theMapconstructor (will not propagate toconfigand will apply only to this specific instance) Mapnow has the method.getSdkConfig()to retrieve the config object.Mapnow has the method.getMaptilerSessionId()to retrieve the MapTiler session ID
Both .getSdkConfig() and .getMaptilerSessionId() are handy for layers or control built outside of the SDK that still need some of the configurations to interact with the server. Those components do not always have access to the internal of the SDK (especially that the config is scoped) but can access the Map instance to which they are added with the implementation of the .onAdd() method.