Skip to content
English
  • There are no suggestions because the search field is empty.

Full example

<html>
<head>
<title>Simple Map</title>
<meta name="viewport" content="initial-scale=1.0">
<meta charset="utf-8">
<style>
html, body { margin: 0; padding: 0; height: 100%}
.dummy-header {
top: 0;
left: 0;
width: 100%;
height: 150px;
background-color: pink;
z-index: 1;
text-align: center;
line-height: 150px;
color: white;
font-size: 2em;
}
.dummy-footer {
position: relative;
background-color: gray;
height: 50vh;
width: 100%;
text-align: center;
line-height: 50vh;
color: white;
font-size: 2em;
}
#map {
z-index: 0;
height: calc(100vh - 150px);
width: 100%;
}
#wayfinder-map {
height: 100%;
}
</style>
</head>


<body>


<div id="wayfinder-map"></div>


</body>
<script src="<https://cdn.wayfinder.acquiredigital.com/live/js-api/wf.js>"></script>
<script type="text/javascript">
ACQ.init(document.getElementById("wayfinder-map"), {
apiKey: "your-key-here",
controls: "default",
disableUnusedMeshes:true,
startupMapId: 120,
map:{
shadows: true,
lowerQuality: false,
antialiasing: true,
tilt: 45,
angle: 45,
perspective: true,
popupInfo: true,
zoomToRoute: false,
routeTilt: 80,
transitionTime: 500,
background: {
color: {
r: 255,g: 255,b: 255
}
},
label:{
style: {
fontName: 'arial',
sizeInPx: 30,
padding: 10,
alignment: 'center'
},
color: {
r: 255,g: 0,b: 0
},
hover: {
r:0,g:255,b:255
},
selected: {
r:255,g:255,b:0
}
},
destinations: {
hover: {
r:0, g:255,b:255
},
selected: {
r:0, g:0,b:255
}
},
routeLine : {
color: {
r: 100,
g: 255,
b: 100
},
size: 0.25
},
routeDot: {
color: {
r: 0,
g: 0,
b: 0
},
size: 0.3
}
},

autoCloseOnRoute:true,
dontLoadCSS:false
})
</script>
</htm