Including jQuery Library, Leaflet Library, Tangram Library and Base Service File and API Script File

jQuery Library:

Include jQuery Library in your script block as shown below:

<script src="https://code.jquery.com/jquery-2.2.0.min.js"></script>
Leaflet Library:

Include Leaflet Library in your script block as shown below.

<script src="https://unpkg.com/leaflet@0.7.7/dist/leaflet.js"></script> 
<link rel="stylesheet" type="text/css" href="https://unpkg.com/leaflet@0.7.7/dist/leaflet.css" />

Tangram Library:

Include Tangram Library in your script block as shown below:

<script src="https://unpkg.com/tangram@0.15.5/dist/tangram.min.js"></script>
YAML Files for Maps Vector Tile Themes:

There are three yaml files corresponding to three different themes of Maps vector tiles. These files are a part of JavascriptSdk download, and are placed in the folder named resources adjacent to JavascriptSdk PreciselySDK-11.0.0-min.js. The folder contains:

  • iron.yaml for iron theme
  • bronze.yaml for bronze theme
  • steel.yaml for steel theme
Note: You must provide attribution on all Raster and Vector maps as described in Appendix O - Map Attribution. Using Precisely Maps does not eliminate your responsibility to provide attribution..

API JavaScript File:

Next, include the specific API JavaScript file in your JavaScript code, as shown below:

<script src="PreciselySDK-11.0.0-min.js"></script>