You can change the default icons used as driver and store's pin in the map by setting "driverIcon" and "storeIcon" parameter.
Specific configuration parameters
Parameter | Description |
---|---|
driverIcon | Allows you to custom the driver's icon on map |
storeIcon | Allows you to custom the store icon on map |
destinationIcon | Allows you to custom the destination icon on map |
Usage Example
Consider the following example:
<!DOCTYPE html>
<head>
<title>LSW v3 Embed</title>
</head>
<body>
<div id="instaleap-lsw-v3"></div>
</body>
<script src="https://xandar-lsw-v3.instaleap.io/lib/lsw.js"></script>
<script>
const params = {
job: "myJob",
token: "myToken",
container: "#instaleap-lsw-v3",
driverIcon: "driver-icon-url",
storeIcon: "store-icon-url",
destinationIcon: "destination-icon-url",
}
window.instaleap.lsw.render(params)
</script>
</html>
You will see the following content: