Created
September 30, 2019 19:54
-
-
Save agraebe/67642d89d9f7915f80e7854d9d3a1076 to your computer and use it in GitHub Desktop.
Filter embed view by metadata
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Coding view instructions | |
const baseUrl = "https://embed.hypertrack.com/devices"; | |
const publishableKey = "xyz"; | |
const metadataObject = { | |
vehicle_type: "scooter" | |
}; | |
const metadataFilter = JSON.stringify(metadataObject); | |
# Embeddable widget for Get Devices Status by metadata | |
<iframe width="400px" height="400px" src=`{baseUrl}?metadata_filter={metadataFilter}&publishable_key={publishableKey}` /> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment