Skip to content
This repository has been archived by the owner on Nov 22, 2023. It is now read-only.

Map4D/map4d-web-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Map4D Web SDK

Map4D SDK for Web, written in Javascript.

Map4D Web SDK

Installation

<script defer
  src="https://api.map4d.vn/sdk/map/js?version={SDK_VERSION}&key={API_KEY}&callback={FUNCTION}"></script>

Hello, World

<!DOCTYPE html>
<html>
<head>
  <script defer
    src="https://api.map4d.vn/sdk/map/js?version={SDK_VERSION}&key={API_KEY}&callback={FUNCTION}"></script>
</head>
<body>
  <div id="map" style="width:100%;height:250px;"></div>
  <script>
    function initMap() {
      let options = {
        center: {lat: 16.072163491469226, lng: 108.22690536081757},
        zoom: 15,
        controls: true
      }
      let map = new map4d.Map(document.getElementById("map"), options)
    }
  </script>
</body>
</html>

Document

https://docs.map4d.vn/map4d-web-sdk

License

Copyright (C) 2020 IOT Link Ltd. All Rights Reserved.