Skip to main content

Import the DAS Embed Script

<script src="https://embed.dasintel.io/v1/das_map.umd.cjs"></script>
note

The v1 in the path will change as new versions are released. Customers will need to use the appropriate path for the version of the component they are embedding.

Importing the DAS Embed Map Component will enable the das-map HTML tag on your web page.

<das-map
id="das-map"
height="400px"
width="100%"
zoom="13"
embed-farm-id="unique-farm-identifier"
farm-name=""
client-id=""
address=""
lat=""
lng=""
enable-search-bar="true"
enable-save-btn="true"
enable-kml="true"
enable-paddock="true"
jwt-token=""
mode=""
>
</das-map>

DAS Embed Component Properties

The following properties are supported by the component.

Reactive properties will make the map react to changes in its values.

Property
TypeRequiredDescriptionExampleReactive
addressstringNoSets the initial location for the map.
The first matching result will be returned. It is recommended to use a fully structured address with street name, number, postcode and state.
2150 Cressy Rd, Ombersley VIC 3241Yes
client-idstringNoClient identifier associated with the farm.VRM0001Yes
embed-farm-idstringNoUnique farm identifier. If included, the map will return the existing property (farm) allocated to the value. If empty, a random identifier will be assigned to the farmc96ad9cf-bf5b-468d-8e83-2636fab006fcYes
enable-kmlbooleanNoDefault true. Enable/disable KML upload button.trueYes
enable-paddockbooleanNoEnable/disable paddock layer instead of cadastre layer.
Important: Once the map is loaded, the state of the paddock layer should not be changed.
Note: Only supported when region is au (the default)
trueYes
enable-buildingbooleanNoDefault true. Enable/disable Building layertrueYes
enable-save-btnbooleanNoEnable/disable the save button on embedtrueYes
enable-search-barbooleanNoFlag that enables or disables the embedded address bar.falseYes
farm-namestringNoName of the farm.Volk Remote FarmYes
heightpxYesHeight of the map component400pxNo
jwt-tokenstringYesRS256 Json Web Token to verify the authenticity of the request.eyJhbGciOiJS...Yes
latnumberNoSets the latitude for the initial map location.38.140312Yes
lngnumberNoSets the longitude for the initial map location.143.796523Yes
width%, pxYesWidth of the map component100%No
zoomstringNoThe zoom level determines how much of the world is visible on a map. Min zoom level is 1316No
modestringNoSets the mode for the map component. By default it is empty and all UI elements are available. To enable view-only mode set it to "view".viewYes
property-boundary-colorstringNoSets the color for the property boundary. The value must be a valid hex color. By default it is set to #e54bff.#4cc0ba, #ff4000, #0080ff ...Yes