You can download it for free from Google Play and App Store or get the source code for further development of their own app. There is a sample app for iOS and Android, which demonstrates the capabilities of mobile SDK and its’ performance. There are other open-source SDKs for native mobile apps like TangramES or Carto/Nutiteq SDK. The source code of the MapLibre SDKs is available on GitHub. The open-source MapLibre SDK for iOS and SDK for Android provides the most natural way how to display the tiles and styles in a mobile app natively. MapTiler Cloud uses the open GL Style for defining the map design. This means the tiles are compatible with all software tools implementing this format specification. The maps are encoded in the widely used and openly documented vector tile format. The code is translated into native code and has lower hardware requirements. Using mobile SDK to create a native mobile app is mostly the best choice. It is possible to combine map data from MapTiler Cloud with data from MapTiler Data for offline mode. You can also use QT SDK to develop desktop software. Right after where we declare the variable with the API key we write the following: can create a mobile app with maps either using an SDK or JavaScript and HTML. We will create an array with these values and assign them a text and a color. If we look at the alphanumeric data of the buildings layer we will see that for the currentUse field there are 6 possible values. You can also use the apps in the MapTiler Cloud to style your data and create a map with it In this case, we are going to use the currentUse field to do the classification. To create the choropleth map of the buildings, we are going to change the style of the buildings layer and use the alphanumeric data associated with the buildings to classify and paint them according to the value of a given field. There are numerous ways to send your requests to the API whether you are a fan of API clients or go with the good old curl, don’t forget to set the Authorization header in the form of Token ) Create a choropleth map of the buildings We have already mentioned that you can upload data directly to the MapTiler Cloud from MapTiler Engine another way to upload MBTiles is through the MapTiler Cloud Admin API. In the GDAL example, we have to define the zoom levels and indicate the transformations of the alphanumeric data types so that they are valid data types in MBTiles. To transform the gml file to mbtiles using the MapTiler Engine you must execute the following command: maptiler-engine -o guixols.mbtiles A.ES.SDGC.BU.Īs we can see, MapTiler Engine is in charge of calculating the optimal zoom levels for our data and performing the corresponding transformation of the data types. If you want to know more about MapTiler Engine, check out the MapTiler Engine Support page. MapTiler Engine CLI: It creates automated workflows with the full power of MapTiler Engine. GDAL/ogr2ogr: if you have GDAL/ogr2ogr installed on your computer you can also transform the GML file into an MBTiles using the following command: ogr2ogr -f MVT guixols.mbtiles A.ES.SDGC.BU. -dsco MAXZOOM=18 -dsco MINZOOM=9 -mapFieldType DateTime=String If you want to know more, check out the Vector tiles generating (basic) article. We can also directly upload the transformed data to our cloud account. MapTiler Engine: this tool allows us to transform our data into MBTiles or GeoPackage easily.To transform the GML file to MBTiles we have several options: Inside the zip file, there is a file called A.ES.SDGC.BU. with the building’s information this file is in GML format. Once we have downloaded the data, we will unzip the zip file. The data can be downloaded from the following link: SANT FELIU DE GUIXOLS/A.ES.SDGC.BU.17170.zip In the example, we will use the data of the municipality of Sant Feliu de Guixols. The first thing we will do is download some building’s data from the Cadastre of Spain.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |