Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/peopledrivemecrazy/here-maps-svelte

Svelte Wrapper for Here Maps
https://github.com/peopledrivemecrazy/here-maps-svelte

here-maps-api heremaps heremaps-js sveltejs

Last synced: about 2 months ago
JSON representation

Svelte Wrapper for Here Maps

Awesome Lists containing this project

README

        

# Svelte wrapper for Here Maps

Check [here maps JavaScript API](https://developer.here.com/develop/javascript-api) for detailed documentation.

## Quick Start

Install `npm i here-maps-svelte`

```html

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,
},
],
},
};



#map {
height: inherit;
width: inherit;
}

```

## Note

- Currently supports bubble texts and accepts html. You might need to play with it.
- Have `` a child of a `div` and supply custom css for height/width.

## Upcoming features

- Dynamic Markers
- Search
- Polylines, routing, shapes
- Custom Icon Support