![]() Basically this is a summary of a culmination of all the above steps. Image by Author | After all tile images have been saved to the local folders, it should resemble the above. If the type of basemap getting hosted is a Satellite map, due to high resolutions of Satellite imagery, the final output often amounts to a few GB so it will be wise to ensure enough disk space is available before saving the tile images to the local disk drive.Generally, raster tiles from map services such as OpenStreetMap comprising of zoom levels 11 to 17 for a single country takes up approximately ~500MB. The output tile images are going to take up a fair amount of disk space.Above zoom level 17 will increase the duration of running the code significantly This step can take up to a few hours if the specified zoom level upper limit is high e.g.Stream the tile images into the local folders createdĪfter initialisation of the folder structure, we can now retrieve tile images of zoom levels which fall within the range of minZoomLevel and maxZoomLevel (inclusive) from the basemap service. For example, assuming my objective is to host the basemap of the country, Singapore, my browser shall look like this:Ĭode snippet by Author | Output is: Folder structure for zoom levels 11 to 15 has been created. 11 and ensure that the current browser viewport is currently capturing ALL the map tile images which are rendering the Region/Province/Country/Continent. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |