Streaming is available in most browsers,
and in the WWDC app.
Meet high-performance MapKit JS
Since we only asked for the map library, we would need to load the annotations library to be able to put our pirate ship and treasures back on the map. And that's where our second optimization comes in handy. A new method is offered just for that MapKit download. It loads additional libraries asynchronously on demand. And if any library you load requires another, it will be handled automatically. And here it is in action. Simply call MapKit download method to load the annotations library. Add a listener for the load event, then add your annotation when it is called. And of course, you can load more than annotations. For example, services encompass all services APIs like search and geocoder. Full map loads all the features available on the MapKit map class. And that includes basic map, overlays, annotations, and user location display. And GeoJSON loads the GeoJSON importer.
Now, this is a good loading experience, but we can do even better than this. This is the third feature we are going to introduce today: prioritized map start-up. With the new load priority property, we can instruct MapKit JS to show points of interest sooner to give feral pirates a better head start. When setting the load priority, you should cater to the best experience that your user needs. There are three load priority options available. Points of Interest instructs MapKit map to show the map labels and points of interest sooner, even before your annotations. Land Cover, on the other hand, will service just the land cover, roads, and borders. As these options will interfere with some map behaviors during start-up, like rotation or precise map region of the viewport, you can turn off load priority altogether by setting it to none. And here is what it looks like in action. Simply use load priority in the map constructor option to specify the desired priority. Here we ask MapKit map to show the points of interest first.
Now that's an even better loading experience. Today, we introduced three new features designed to improve the map load experience of your application. We believe that you can integrate MapKit JS while ensuring that the overall user experience remains seamless and unimpaired. For your existing application, feel free to adopt these new features gradually, as each will bring its own benefit. Be sure to check out the detailed documentation and the Maps Server API session shown below. We look forward to seeing how you take advantage of these new features. Thank you.
Looking for something specific? Enter a topic above and jump straight to the good stuff.
An error occurred when submitting your query. Please check your Internet connection and try again.