However, many devices have this ratio different and ideally, you would need different tiles for different devices. The suffix generates images that are double the size in both dimensions, so it’s ideal for devices with a device pixel ratio equal to 2. The device pixel ratio tells you how many pixels you need to use on the specific device so that the final content looks the same across all the devices. In reality, the devices have various displays with different physical sizes and pixel resolutions. It is intended to be used on devices with very fine pixels (such as mobile phones) so that the labels remain readable and the map style looks as intended. Therefore all the lines are “thicker” and all the labels are “bigger”. In addition to the different tile sizes, it is also possible to request a HiDPI (also called “retina”) version of the tile by adding a suffix before the extension.īoth the default and the HiDPI versions display exactly the same area and content, but the HiDPI version simply contains more pixels. Note: The StyleJSON specification and the Style editor use the zoom-level numbering based on the 512x512 tile size, so when requesting the 256x256 tiles instead, you need to shift the zoom levels by 1 to get the same visual style. We recommend sticking with the 512x512 tiles because these usually result in better application performance – fewer network requests are required to cover the same area.īoth 256x256 and 512x512 have exactly the same content scale (identical pixel size of features and labels), the only difference is in the covered area. By default, MapTiler Cloud rasterizes each requested tile as a 512x512 image, but you can also explicitly request a 256x256 image instead (using a 256/ prefix). The first parameter is the size of the tile. See the API specification of the endpoint for details on how to use them. There are two different endpoint parameters, which affect how the resulting tile is rasterized from the vector data. In case your application is not able to display the vector maps directly, or if you need the maps as raster tiles for compatibility or performance reasons, it is possible to use the on-the-fly rasterized map tiles. ![]() The maps available in MapTiler Cloud are primarily vector-based and it is recommended to display the maps as vectors whenever possible. It does not apply when requesting Tiles, which are pre-generated and there is no dynamic processing involved. The differences between rasterized map tiles described in this article only apply to on-the-fly rasterized Maps requested from MapTiler Cloud (and MapTiler Server). You will learn what is the difference between larger tile size and scale as well as what to choose when developing your application. This article explains what are the several types of rasterized map tiles available in MapTiler Cloud.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |