XYZ Maps is an experimental and work in progress open-source map editor written in TypeScript/JavaScript. The editor module provides an API for editing map data that can be used to easily access, add, remove and edit various types of map data. Changes can be automatically synchronized with various remote backends services.
Install XYZ Map Editor by using
# install using npm
npm install @here/xyz-maps-editor
or
# install using yarn
yarn add @here/xyz-maps-editor
Create a map editor
import MapDisplay from '@here/xyz-maps-display';
import {Editor} from '@here/xyz-maps-editor';
const map = new MapDisplay( display, {
zoomLevel : 18,
center: {
longitude: 8.53422,
latitude: 50.16212
},
// add layers to the display
layers: layerSetup
});
const editor = new Editor( map, {
// add the layers that should be edited
layers: layerSetup
});
-
Install node module dependencies
yarn install
In case yarn is not installed already: install yarn
-
watch for source code changes and build dev version
yarn run watch-dev
Builds are located in located in
./dist/
-
build dev version once
yarn run build-dev
(located in packages/*/dist/) -
build release version only
yarn run build-release
(minified...)
Copyright (C) 2019-2022 HERE Europe B.V.
This project is licensed under the Apache License, Version 2.0 - see the LICENSE file for details