Mapbox's Static Maps API creates an embedded, customizable map for web and mobile apps, without the interactivity.
The Static Maps block allows you to create these maps based on your data streams, and publish that map in real time. This works great for apps that don't require real-time geolocation tracking, but still want to display an updated location to a user at a custom time, or based on a custom action.
This block uses the Mapbox Static Map API to generate a visual static map using the provided latitude, longitude, and zoom values.
For more information, please review the Mapbox Static documentation on the API page.
Input Channel: mapbox-static-channel (configurable)lat latitude of the center point of the maplng longitude of the center point of the mapzoom zoom value
{ "lat": 70, "lng": 30, "zoom": 4 }
The block appends the picture of the map returned by the Mapbox Static Map API into the message payload. Please refer to the Mapbox documentation for config information
{ "lat": 70, "lng": 30, "zoom": 4, "map": "<map url>" }
Need help? Contact PubNub Support.
Copyright (c) 2018 PubNub
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.