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"
embedfarmid="unique-farm-identifier"
farmname=""
clientid=""
address=""
lat=""
lng=""
enablesearchbar="true"
enablesavebtn="true"
enablekml="true"
enablepaddock="true"
jwttoken=""
>
</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.

PropertyTypeRequiredDescriptionExampleReactive
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
clientidstringNoClient identifier associated with the farm.VRM0001Yes
embedfarmidstringNoUnique 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
enablekmlstringNoDefault true. Enable/disable kml upload buttontrueYes
enablepaddockstringNoEnable/disable paddock layer. Important: Once the map is loaded, the state of the paddock layer should not be changed.trueYes
enablesavebtnstringNoEnable/disable the save button on embedtrueYes
enablesearchbarstringNoFlag that enables or disables the embedded address bar.falseYes
farmnamestringNoName of the farm.Volk Remote FarmYes
heightpxYesHeight of the map component400pxNo
jwttokenstringYesRS256 Json Web Token to verify the authenticity of the request.eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXV...Yes
latstringNoSets the latitude for the initial map location.38.140312Yes
lngstringNoSets 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