Check here maps JavaScript API for detailed documentation.
Install npm i here-maps-svelte
<script>
import Map from "here-maps-svelte";
let options = {
api: "Your API Key",
mapdata: {
zoom: 3,
center: {
lat: 48.8567,
lng: 2.3508,
},
markers: [
{
bubbletext: `<p>Bubble text</p>`,
lat: 48.8567,
lng: 2.3508,
},
],
},
};
</script>
<div id="map">
<map options="{options}"></map>
</div>
<style>
#map {
height: inherit;
width: inherit;
}
</style>
<Map {options}/>
a child of a div
and supply custom css for height/width.