XWWitPark/witpark_szjsc/xw_szjsc_web/public/widgets/streetscape/streetscape.html

2 lines
2.1 KiB
HTML
Raw Permalink Normal View History

2024-09-12 00:10:00 +00:00
<!-- 2020-9-24 14:48:24 | 版权所有 军懋国兴 -->
<!DOCTYPE html><html class="no-js css-menubar" lang="zh-cn"><head><title>&#x5F39;&#x7A97;&#x5B50;&#x9875;&#x9762;</title><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"><meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no,minimal-ui"><meta name="author" content="&#x706B;&#x661F;&#x79D1;&#x6280; http://cesium.marsgis.cn "><meta name="renderer" content="webkit"><link rel="icon" type="image/png" href="../../img/favicon/favicon.png"><meta name="mobile-web-app-capable" content="yes"><link rel="icon" sizes="192x192" href="img/favicon/apple-touch-icon.png"><meta name="apple-mobile-web-app-capable" content="yes"><meta name="apple-mobile-web-app-status-bar-style" content="black"><meta name="apple-mobile-web-app-title" content="&#x706B;&#x661F;&#x79D1;&#x6280;MarsGIS"><link rel="apple-touch-icon-precomposed" href="../../img/favicon/apple-touch-icon.png"><meta name="msapplication-TileImage" content="../../img/favicon/app-icon72x72@2x.png"><meta name="msapplication-TileColor" content="#62a8ea"><script src="../../lib/include-lib.js?time=20200510" libpath="../../lib/" include="jquery,haoutil"></script><script src="http://api.map.baidu.com/api?v=3.0&amp;ak=qObioeG8HeeQVrOVAGScPVhDzlmv6rL9"></script><style>body,html{width:100%;height:100%;margin:0;font-family:"微软雅黑"}#streetscapeMap{width:100%;height:100%}</style></head><body><div id="streetscapeMap"></div><script>var panorama;function setPosition(a){panorama.setPosition(new BMap.Point(a.x,a.y))}$(document).ready(function(){var a=haoutil.system.getRequest(),e=new BMap.Point(a.x,a.y),n=new BMap.Map("streetscapeMap");n.centerAndZoom(e,15),n.addTileLayer(new BMap.PanoramaCoverageLayer),(panorama=new BMap.Panorama("streetscapeMap")).setPosition(e),panorama.setPov({heading:-40,pitch:6}),panorama.addEventListener("position_changed",function(a){var e=panorama.getPosition();e=parent.mars3d.pointconvert.bd2wgs([e.lng,e.lat]),parent.streetscapeWidget.centerAt({x:e[0],y:e[1]})})})</script></body></html>