0.0.5 • Published 5 years ago

map4dsdk v0.0.5

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

Map4D SDK

Map4D SDK for Web, written in Javascript.

CocoaPods

Important Changelogs

  1. Version 1.2.0
  • Use api key for api request
  1. Version 1.3.1

Installation

  1. Download map4dsdk from here

  2. Add script to your website

<script src="[PATH]/map4dsdk@[version].js"></script>

Note: SDK script name must contains "map4dsdk@"

Using

  1. Initialize map with access key
<body>
<div id="map"></div>

<script src="[PATH]/map4dsdk@[version].js"></script>

<script>
  let map = new map4d.Map(document.getElementById("map"),
      {
        center: [105.828042, 21.007651],
        zoom: 17,
        geolocate: true,
        controls :true,
        tilt: 0,        
        accessKey: `${your-key}`
      }
    )
  //set switch mode Auto for automatically switching between 2D & 3D
	map.setSwitchMode(map4d.SwitchMode.Auto)
	map.enable3dMode(true)
</script>

</body>
  1. Style your view
  <style>
	body {
	  margin: 0px;
	  height: 100%;
	}

	#map {
	  position: absolute;
	  width: 100%;
	  height: 100%;
	  background-color: #f2efe9;
	}
  </style>

Document references

1. Getting started

2. Map user interaction

3. Type

4. Map events

5. Marker

6. Marker cluster

7. Polyline

8. Polygon

9. Circle

10. 3D objects

11. Tile area

12. Effect

13. LatLngBounds

14. Map utils

15. Data layer

16. Leaflet Integrated

17. Place

License

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