1: the introduction of js: & lt; Script type="text/javascript" SRC="http://api.map.baidu.com/library/DistanceTool/1.2/src/DistanceTool_min.js" charset="utf-8" & gt; </script>
2: map can display properly, indicate the code is as follows:
Var map=new BMap. The map (" mapDiv ");
Var myDis=new BMapLib. DistanceTool (map);
MyDis. The open ();
Below is executing code after effect, can appear the mark, but no effect, after the click
The same code I will run HTML pages directly in a browser can be normal use ranging function, but can not, after the embedded WebBrowser
Also which great god can help me answer to solve the trouble!!!!!!!!!!
Be very grateful!
CodePudding user response:
Half-way up the yourself, don't sink