@mapxus/mapxus-map
TypeScript icon, indicating that this package has built-in type declarations

7.10.0 • Public • Published

Mapxus map js sdk

Dependency

maplibre-gl

Install

npm install @mapxus/mapxus-map

Tips: We do not recommend you install maplibre-gl by yourself. Each version of @mapxus/mapxus-map uses a specific version of maplibre-gl,
@mapxus/mapxus-map will automatically install it with the matched version.

Example

import 'maplibre-gl/dist/maplibre-gl.css';
import maplibregl from 'maplibre-gl';
import * as MapxusMap from '@mapxus/mapxus-map';

const maplibreMap = new maplibregl.Map({
	container: 'map',
	zoom: 17,
});

const map = new MapxusMap.Map({
	map: maplibreMap,
	appId: 'your_appId',
	secret: 'your_secret',
	buildingId: 'building_id', // example: elements_hk_dc005f
	// or
	// venueId: 'venue_id',
	// floorId: 'floor_id',
	// poiId: 'poi_id',
});

More sample page at MapxusMap Sample Web

Documentation

Docs are available at MapxusMap JS SDK API Docs

License

3-Clause BSD

Readme

Keywords

Package Sidebar

Install

npm i @mapxus/mapxus-map

Weekly Downloads

52

Version

7.10.0

License

BSD-3-Clause

Unpacked Size

519 kB

Total Files

10

Last publish

Collaborators

  • mapxus