![]() Thanks to the SDK’s offline maps feature, the application can extract the raw geometry and tags from the vector tiles even if the user puts the phone in Airplane Mode.įor this application, though, I want to get some additional metadata about the bridge that’s normally omitted from the vector tiles to reduce data usage. ![]() The feature’s raw geometry allows me to draw a highlight over the road, using a shape annotation, but I could just as easily position a popover somewhere along the road or display the road’s name in the navigation bar. The SDK uses this data to draw the map, which is why you can easily switch styles or tilt the map without having to redownload any map tiles.įirst, I obtain the bridge feature under the user’s finger via the - method. The SDK fetches Mapbox Vector Tiles, which contain raw data and associated metadata for each business, building, street, and pond. Roebling’s other suspension bridges, including the famed Brooklyn Bridge. Tap on the Roebling Suspension Bridge to reveal John A. When you press and hold on a bridge on the map, the bridge is highlighted and images of other works by the bridge’s designer pop up: I built a simple application for iPhone and iPad, shown below. ![]() Now that you can connect OpenStreetMap and Wikidata, let’s see how you can use feature querying in your own application to take advantage of these two open data projects. Feature querying uses the data that the user has already downloaded in order to view the map, so it even works offline. Feature querying gives you access to the raw geometry and metadata that the SDK uses to draw the map, whether it’s the OpenStreetMap-based Mapbox Streets source that powers the default base map or your own datasets that you manage in Mapbox Studio. That way you don’t have to clutter up the map itself with these details. With feature querying in the latest release of our iOS SDK, your iOS application can take any street, landmark, or business that’s on the map and display additional information about it anywhere on the screen. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |