Getting started
Install
npm init
npm login --userconfig ".npmrc" --scope "@deepmap" --registry "https://repo.deepmap.de/repository/npm"
npm i @deepmap/hdm-web-map-sdk
code
<div style="height: 50%" id="deepMap-getting-started"></div>
import '@deepmap/hdm-web-map-sdk/styles/index.scss';
import {DeepMapFactory} from '@deepmap/hdm-web-map-sdk';
const config = {
projectName: 'campushd_mbstyle',
mapServiceUrl: 'https://ssp.deepmap.de/geo',
target: 'deepMap-getting-started'
};
const map = DeepMapFactory.bootstrap(config);
map.setMapViewControllerDidStart(function (map) {
console.log("DeepMap initiated!");
});
map.setMapViewControllerFailedStart(function (error) {
console.log("error", error);
});