javascript - OneMap API Access Key -


so having problem onemap api access key. here how set base map:

html

<div id="divmain"></div> 

javascript

<script type='text/javascript' src='http://www.onemap.sg/api/js?accesskey=xkg8vru6ol+gmh+suamkrieb7fkzhwmvfmo/2u8ujcfhdvr4yn1gutmuia3a6r3ldhot215ovvkzvnrzjl28tnuzgyfsswoi'></script>  <script language="javascript" type="text/javascript">   var centerpoint="28968.103,33560.969" var levelnumber=8; var onemap = new getonemap('divmain','sm',{level:levelnumber,center:centerpoint});   </script> 

reference onemap api documentation these codes work when access key token legal. somehow, access key turns illegal no reason. , when keep refreshing, not solve bug. url starts localhost:2752/...

any guides? because can considered significant issue when trying debug new features, onemap stop working.

thanks in advance.

the api key works 1 domain. when register api key, should use domain using on pc obtaining api key. try use fake domain lvh.me:2752, etc.


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -