{"id":65,"date":"2020-12-02T10:35:44","date_gmt":"2020-12-02T02:35:44","guid":{"rendered":"http:\/\/192.168.100.201\/?page_id=65"},"modified":"2021-04-26T14:29:20","modified_gmt":"2021-04-26T06:29:20","slug":"contact","status":"publish","type":"page","link":"http:\/\/www.kxtxlogistic.com\/index.php\/contact\/","title":{"rendered":"\u8054\u7cfb\u6211\u4eec"},"content":{"rendered":"\n<meta http-equiv=\"Content-Type\" content=\"text\/html; charset=gb2312\">\n<meta name=\"keywords\" content=\"\u767e\u5ea6\u5730\u56fe,\u767e\u5ea6\u5730\u56feAPI\uff0c\u767e\u5ea6\u5730\u56fe\u81ea\u5b9a\u4e49\u5de5\u5177\uff0c\u767e\u5ea6\u5730\u56fe\u6240\u89c1\u5373\u6240\u5f97\u5de5\u5177\">\n<meta name=\"description\" content=\"\u767e\u5ea6\u5730\u56feAPI\u81ea\u5b9a\u4e49\u5730\u56fe\uff0c\u5e2e\u52a9\u7528\u6237\u5728\u53ef\u89c6\u5316\u64cd\u4f5c\u4e0b\u751f\u6210\u767e\u5ea6\u5730\u56fe\">\n<title>\u767e\u5ea6\u5730\u56feAPI\u81ea\u5b9a\u4e49\u5730\u56fe<\/title>\n<!--\u5f15\u7528\u767e\u5ea6\u5730\u56feAPI-->\n<style type=\"text\/css\">\n    html,body{margin:0;padding:0;}\n    .iw_poi_title {color:#CC5522;font-size:14px;font-weight:bold;overflow:hidden;padding-right:13px;white-space:nowrap}\n    .iw_poi_content {font:12px arial,sans-serif;overflow:visible;padding-top:4px;white-space:-moz-pre-wrap;word-wrap:break-word}\n<\/style>\n<script src=\"http:\/\/api.map.baidu.com\/getscript?v=2.0&amp;ak=06NrDeRjIDejARedq6B6o2SoLB3zHUli\"><\/script>\n\n<!--\u767e\u5ea6\u5730\u56fe\u5bb9\u5668-->\n<div style=\"width:885px;height:950px;border:#ccc solid 1px;\" id=\"dituContent\"><\/div>\n\n<script type=\"text\/javascript\">\n    \/\/\u521b\u5efa\u548c\u521d\u59cb\u5316\u5730\u56fe\u51fd\u6570\uff1a\n    function initMap(){\n        createMap();\/\/\u521b\u5efa\u5730\u56fe\n        setMapEvent();\/\/\u8bbe\u7f6e\u5730\u56fe\u4e8b\u4ef6\n        addMapControl();\/\/\u5411\u5730\u56fe\u6dfb\u52a0\u63a7\u4ef6\n        addMarker();\/\/\u5411\u5730\u56fe\u4e2d\u6dfb\u52a0marker\n    }\n    \n    \/\/\u521b\u5efa\u5730\u56fe\u51fd\u6570\uff1a\n    function createMap(){\n        var map = new BMap.Map(\"dituContent\");\/\/\u5728\u767e\u5ea6\u5730\u56fe\u5bb9\u5668\u4e2d\u521b\u5efa\u4e00\u4e2a\u5730\u56fe\n        var point = new BMap.Point(121.376818,31.273943);\/\/\u5b9a\u4e49\u4e00\u4e2a\u4e2d\u5fc3\u70b9\u5750\u6807\n        map.centerAndZoom(point,18);\/\/\u8bbe\u5b9a\u5730\u56fe\u7684\u4e2d\u5fc3\u70b9\u548c\u5750\u6807\u5e76\u5c06\u5730\u56fe\u663e\u793a\u5728\u5730\u56fe\u5bb9\u5668\u4e2d\n        window.map = map;\/\/\u5c06map\u53d8\u91cf\u5b58\u50a8\u5728\u5168\u5c40\n    }\n    \n    \/\/\u5730\u56fe\u4e8b\u4ef6\u8bbe\u7f6e\u51fd\u6570\uff1a\n    function setMapEvent(){\n        map.enableDragging();\/\/\u542f\u7528\u5730\u56fe\u62d6\u62fd\u4e8b\u4ef6\uff0c\u9ed8\u8ba4\u542f\u7528(\u53ef\u4e0d\u5199)\n        map.enableScrollWheelZoom();\/\/\u542f\u7528\u5730\u56fe\u6eda\u8f6e\u653e\u5927\u7f29\u5c0f\n        map.enableDoubleClickZoom();\/\/\u542f\u7528\u9f20\u6807\u53cc\u51fb\u653e\u5927\uff0c\u9ed8\u8ba4\u542f\u7528(\u53ef\u4e0d\u5199)\n        map.enableKeyboard();\/\/\u542f\u7528\u952e\u76d8\u4e0a\u4e0b\u5de6\u53f3\u952e\u79fb\u52a8\u5730\u56fe\n    }\n    \n    \/\/\u5730\u56fe\u63a7\u4ef6\u6dfb\u52a0\u51fd\u6570\uff1a\n    function addMapControl(){\n        \/\/\u5411\u5730\u56fe\u4e2d\u6dfb\u52a0\u7f29\u653e\u63a7\u4ef6\n\tvar ctrl_nav = new BMap.NavigationControl({anchor:BMAP_ANCHOR_TOP_LEFT,type:BMAP_NAVIGATION_CONTROL_LARGE});\n\tmap.addControl(ctrl_nav);\n        \/\/\u5411\u5730\u56fe\u4e2d\u6dfb\u52a0\u7f29\u7565\u56fe\u63a7\u4ef6\n\tvar ctrl_ove = new BMap.OverviewMapControl({anchor:BMAP_ANCHOR_BOTTOM_RIGHT,isOpen:1});\n\tmap.addControl(ctrl_ove);\n        \/\/\u5411\u5730\u56fe\u4e2d\u6dfb\u52a0\u6bd4\u4f8b\u5c3a\u63a7\u4ef6\n\tvar ctrl_sca = new BMap.ScaleControl({anchor:BMAP_ANCHOR_BOTTOM_LEFT});\n\tmap.addControl(ctrl_sca);\n    }\n    \n    \/\/\u6807\u6ce8\u70b9\u6570\u7ec4\n    var markerArr = [{title:\"\u4e0a\u6d77\u5feb\u884c\u5929\u4e0b\u4f9b\u5e94\u94fe\u7ba1\u7406\u6709\u9650\u516c\u53f8\",content:\"\u5730\u5740\uff1a\u4e0a\u6d77\u5e02\u666e\u9640\u533a\u7ee5\u5fb7\u8def470\u5f04128\u652f\u5f04<br\/>\u8054\u7cfb\u4eba\uff1a\u8c22\u94b0<br\/>\u8054\u7cfb\u65b9\u5f0f\uff1a<br\/>\u7535\u5b50\u90ae\u7bb1\uff1a\",point:\"121.376822|31.273935\",isOpen:0,icon:{w:21,h:21,l:0,t:0,x:6,lb:5}}\n\t\t ];\n    \/\/\u521b\u5efamarker\n    function addMarker(){\n        for(var i=0;i<markerArr.length;i++){\n            var json = markerArr[i];\n            var p0 = json.point.split(\"|\")[0];\n            var p1 = json.point.split(\"|\")[1];\n            var point = new BMap.Point(p0,p1);\n\t\t\tvar iconImg = createIcon(json.icon);\n            var marker = new BMap.Marker(point,{icon:iconImg});\n\t\t\tvar iw = createInfoWindow(i);\n\t\t\tvar label = new BMap.Label(json.title,{\"offset\":new BMap.Size(json.icon.lb-json.icon.x+10,-20)});\n\t\t\tmarker.setLabel(label);\n            map.addOverlay(marker);\n            label.setStyle({\n                        borderColor:\"#808080\",\n                        color:\"#333\",\n                        cursor:\"pointer\"\n            });\n\t\t\t\n\t\t\t(function(){\n\t\t\t\tvar index = i;\n\t\t\t\tvar _iw = createInfoWindow(i);\n\t\t\t\tvar _marker = marker;\n\t\t\t\t_marker.addEventListener(\"click\",function(){\n\t\t\t\t    this.openInfoWindow(_iw);\n\t\t\t    });\n\t\t\t    _iw.addEventListener(\"open\",function(){\n\t\t\t\t    _marker.getLabel().hide();\n\t\t\t    })\n\t\t\t    _iw.addEventListener(\"close\",function(){\n\t\t\t\t    _marker.getLabel().show();\n\t\t\t    })\n\t\t\t\tlabel.addEventListener(\"click\",function(){\n\t\t\t\t    _marker.openInfoWindow(_iw);\n\t\t\t    })\n\t\t\t\tif(!!json.isOpen){\n\t\t\t\t\tlabel.hide();\n\t\t\t\t\t_marker.openInfoWindow(_iw);\n\t\t\t\t}\n\t\t\t})()\n        }\n    }\n    \/\/\u521b\u5efaInfoWindow\n    function createInfoWindow(i){\n        var json = markerArr[i];\n        var iw = new BMap.InfoWindow(\"<b class='iw_poi_title' title='\" + json.title + \"'>\" + json.title + \"<\/b><div class='iw_poi_content'>\"+json.content+\"<\/div>\");\n        return iw;\n    }\n    \/\/\u521b\u5efa\u4e00\u4e2aIcon\n    function createIcon(json){\n        var icon = new BMap.Icon(\"http:\/\/app.baidu.com\/map\/images\/us_mk_icon.png\", new BMap.Size(json.w,json.h),{imageOffset: new BMap.Size(-json.l,-json.t),infoWindowOffset:new BMap.Size(json.lb+5,1),offset:new BMap.Size(json.x,json.h)})\n        return icon;\n    }\n    \n    initMap();\/\/\u521b\u5efa\u548c\u521d\u59cb\u5316\u5730\u56fe\n<\/script>\n","protected":false},"excerpt":{"rendered":"<p>\u767e\u5ea6\u5730\u56feAPI\u81ea\u5b9a\u4e49\u5730\u56fe<\/p>\n","protected":false},"author":1,"featured_media":1954,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"_links":{"self":[{"href":"http:\/\/www.kxtxlogistic.com\/index.php\/wp-json\/wp\/v2\/pages\/65"}],"collection":[{"href":"http:\/\/www.kxtxlogistic.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"http:\/\/www.kxtxlogistic.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"http:\/\/www.kxtxlogistic.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.kxtxlogistic.com\/index.php\/wp-json\/wp\/v2\/comments?post=65"}],"version-history":[{"count":29,"href":"http:\/\/www.kxtxlogistic.com\/index.php\/wp-json\/wp\/v2\/pages\/65\/revisions"}],"predecessor-version":[{"id":2208,"href":"http:\/\/www.kxtxlogistic.com\/index.php\/wp-json\/wp\/v2\/pages\/65\/revisions\/2208"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.kxtxlogistic.com\/index.php\/wp-json\/wp\/v2\/media\/1954"}],"wp:attachment":[{"href":"http:\/\/www.kxtxlogistic.com\/index.php\/wp-json\/wp\/v2\/media?parent=65"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}