-
Login to InfraMarker
- Generate a token to be used by the public map.
-
Select the project that contains the dataset you want to embed
-
In the dataset list, check the public map option
-
An embed button will appear.
-
Click the embed button to bring up the Embed Dataset Dialog.
-
In Embed Dataset Dialog, choose any popup information that you want to show, as well as enter in the API key you created before.
-
Once you are done with your choices, click "Generate Code" and you will see a blob of HTML and Javascript.
-
Embed that code into a webpage. The most simple one would be something like this:
<HTML>
<HEAD>
<TITLE>InfraMarker Embed Example</TITLE>
</HEAD>
<BODY>
<SCRIPT><!-- EMBED CODE GOES HERE !-->
</BODY>
- Here is an example of an embedded dataset hosted on github. The embed code was formatted for readability and the dimensions were changed for viewing.
- Which results in a map similar to this
Comments
0 comments
Please sign in to leave a comment.