Contents

MapKit JS 6

Use the most up-to-date version of MapKit JS on your website.

Overview

This document includes release notes for updates to MapKit JS 6. You can learn more about MapKit JS version numbers and how to automatically link to the latest available version in Loading the latest version of MapKit JS.

6.0

MapKit JS 6.0 adopts modern web platform conventions. For detailed guidance on updating your code, see Migrating from Version 5 to Version 6.

New features

Updates

  • All MapKit JS classes that previously extended MapKitEventTarget now extend the native EventTarget interface. The third argument to addEventListener is now the standard EventListenerOptions object instead of a thisObject.

  • Optional properties and return values now return null instead of undefined for absent values.

  • Images, including tile images and annotation images, now require CORS. ImageSource objects must contain only CORS-clean pixel data.

  • TileOverlay no longer turns off map rotation or snaps zoom to integer levels.

Deprecated features

The framework has deprecated the following:

See Also

Versions