A facade that abstracts over the Google and HERE map JavaScript SDKs
npm install geo-map
import { GeoMap } from "geo-map";
async function main() {
const element = document.getElementById('map');
const map = GeoMap.create({
config: {
provder: Types.GeoMapProvider.Google,
auth: {
apiKey: '',
}
}
});
await map.mount(element, { center: { lat: 0, lng: 0 } })
}
main().catch(err => {
throw err;
})
Apache License 2.0