Get SDK
CDN introduction
Reference the js file in the
<head>section of the HTML file.<script src ='https://delivery.mapmost.com/cdn/sdk/webgl/v9.16.0/mapmost-webgl-min.js'></script>
NPM installation
1. Set the source
Add
.npmrcfile in the project directory, the content is:registry = "https://registry.npmjs.org/"
@mapmost:registry="https://npm.mapmost.com/"
2. Installation
Enter the following command in the terminal to install the SDK:
npm install @mapmost/mapmost-webgl
3. Introduction
-Introduce in the files that need to use the SDK:
import mapmost from '@mapmost/mapmost-webgl';