Skip to content

v1.0.7

Choose a tag to compare

@jonathanlurie jonathanlurie released this 21 Mar 11:54
· 132 commits to main since this release
6811710

What's new?

  • The apiKey can now be specified in the Map constructor (will propagate to config)
  • The language can now be specified in the Map constructor (will not propagate to config and will apply only to this specific instance)
  • Map now has the method .getSdkConfig() to retrieve the config object.
  • Map now 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.