Tuning for mobile and low-bandwidth environments | Mapbox

Maps can be a challenge in low bandwidth scenarios—they rely on dynamic content being loaded fast and being constantly interactive. We’re tackling this challenge with native mobile SDKs and fast APIs: here are a few ways the full-stack performance of Mapbox is killer. When you embed a Mapbox-hosted map into your site or app, you refer to it by including the map ID, e.g. justin.gocbkbg3. A tile image URL for this map might look like the following: Another map ID on my account is justin.pdx_overlay - a neighborhood boundaries layer with partial transparency that I designed in TileMill using open data from Portland’s RLIS portal. Let’s look at the same tile from that map: Creating a map of these three combined would traditionally require a tile from each map at each position, making the performance equation simply: three times slower than a single map. We changed that with on-the-fly compositing: you can combine map layers in the URL with a comma, and only one request is required. These composite tiles are served at scale from our global network after being generated in milliseconds behind the scenes with the open source node-blend library. Need to squeeze more tiles for every kilobyte? The Mapbox image quality API dynamically resamples images, changes PNG bit depth or JPEG quality, and converts between the two formats on the fly. In many cases, the difference isn’t obvious visually, and in others, the trade-off of speed for detail makes sense. Your app or site could even do bandwidth detection and adjust the map quality on the fly for the best download experience. You can combine the image quality API with the compositing API, since each of these tiles is actually a server-side composition of three separate source tiles. Both the compositing and image quality APIs let you customize your maps for speed and low-bandwidth. Whether you use our web services to load images directly or our iOS SDK with full support for the image quality API, Mapbox is mobile-ready and built with the best possible user experience in mind. Source.

Яндекс.Метрика Рейтинг@Mail.ru Free Web Counter
page counter
Last Modified: April 18, 2016 @ 4:05 pm