Follow these steps to embed your data:
-
Login to AmigoCloud.
- Generate a token to be used by the public map or do it later in the step 8.
-
Select the project that contains the dataset you want to embed.
-
In the dataset options, click on "Dataset Settings".
-
Allow the public map option.
-
An "Embed </>" button will appear.
-
Click the embed button to bring up the Embed Dataset Dialog.
-
Inside the Embed Dataset Dialog, choose any popup information that you want to show and the window size of the map. Then you will need to enter the API key created before or generate a new one in "manage your API Tokens" link. When generating a token API, your dataset will be available even if you are not logged in.
-
Once you are done with your settings, 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>AmigoCloud 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 changed for viewing.
- You can see the results on the following map inserted, using this free-download dataset on crime statistics from the Boston Police Department (BPD)
Boston Crimes. 2009
Comments
0 comments
Please sign in to leave a comment.