Mapbox.js’s low-level L.mapbox.geocoder interface now supports multiple placenames as an array and automatically uses the batch geocoding interface to process them in a single request.
Querying ['austin', 'houston'] returns an array of results to use in your application.
The control interface to geocoding is improved too: alternative positions, like topright or bottomleft now rearrange the UI to fit properly.
In an effort to feature our map sources better, Mapbox.js now displays attribution information expanded by default instead of collapsed behind a button icon. This is the intended attribution for any map of regular to large screen size. This is particularly designed to feature one of our most important map sources, OpenStreetMap, better. The default content of the attribution control continues to feature an Improve This Map link designed to help map users quickly update map data where needed.
The L.mapbox.infoControl API is still available as an option for maps with long attribution or smaller viewports:
API Improvements and Bugfixes
This release also includes numerous documentation improvements and bugfixes: chief amongst them a fix for vector layers in IE8.
We’re now exposing traditional constructors from the Mapbox.js interface. Leaflet’s pattern is that each object can be initialized with new or without: