onemap api没有显示点

时间:2017-03-03 11:45:17

标签: javascript php json

任何人都可以帮助我。当我使用这个代码。本地服务器没有显示任何内容。如何在一张地图上获得积分?感谢。

<script language="JavaScript" type="text/JavaScript">

    //add map with defined center location and zoom level
    var centerPoint = "21090.3965989332,40152.827324621125"
    var levelNumber = 1;
    var pointers="29320.30692133441,29190.96332578225|29520.30692133441,29190.96332578225:http://www.onemap.sg/icons/Hotels/hotel.gif|29420.30692133441,29190.96332578225:D1"
    var OneMap = new GetOneMap('divMain', 'SM', { level: levelNumber, center: centerPoint, points: pointers});
    //dojo.require("esri.map");
    //dojo.require("esri.tasks.geometry");
    //dojo.require("esri.layers.graphics");
    //dojo.addOnLoad(initialize);





    var search = 'txtSearchText';


    function GetCurrentLevel() {
        alert("Current Level:" + OneMap.map.getLevel())
    }

</script>

            <div id="divMain" style='width: 756px; height: 399px;'>

            </div>

0 个答案:

没有答案