0

i'm getting this error in mappls.direction is not function

enter image description here

I'm getting this error in web

  1. mappls.direction is not function
  2. Please check credentials invalid

even i'm using his default code (https://about.mappls.com/api/web-sdk/vector-plugin-example/Direction/mappls-tracking-direction-plugin)

Siguza
  • 21,155
  • 6
  • 52
  • 89

1 Answers1

0

First You have to Register from this link

You can get client Id and secret from console

to generate access_token from here Generate Token

and than put in your code

<script src="https://apis.mappls.com/advancedmaps/api/<Token>/map_sdk?layer=vector&v=3.0&callback=initMap1"></script>
<script src="https://apis.mappls.com/advancedmaps/api/<token>/map_sdk_plugins?v=3.0"></script>
Hemant Rajpoot
  • 683
  • 1
  • 11
  • 29