标签layer \hotspot 用法实例

1.layer 全局

<layer name="huxing" url="skin/close_Map.png" align="righttop" scale="0.3" zorder="2" alpha="1" x="0" y="66" keep="true" onclick="openmap();"/>

2.hotspot

  • 场景传送门
<hotspot name="spot1" ath="39.008" atv="39.874" url="skin/redian/ck1.png" onclick="loadscene(get(linkedscene), null,MERGE,BLEND(1));" scale="0.4" edge="bottom" linkedscene="scene_b-1-1"/>
  • 二维静态,如消防栓等标识
<hotspot name="spotnew_1" atv="-21.651" ath="-24.555" enabled="false" url="skin/hotspot/caiguang.png" scale="0.5" edge="bottom"/>
  • 三维静态,如库高等标识
<hotspot name="hs1" enabled="false" url="skin/hotspot/jinggao.png" ath="102.623" atv="-15.201" distorted="true" rx="-8.45" ry="-6.45" rz="0.061052" width="121" height="1268" scale="0.27" depth="1000" polyline="false" scaleflying="true" tx="0" ty="0" tz="0"/>
  • 多边形热力点,如鸟瞰图范围框定
<hotspot name="area_136" borderwidth="3.0" bordercolor="0xff0000" borderalpha="1.0" fillalpha="0.0" htype="area" enabled="false" visible="false">
    <point atv="63.344" ath="-304.974"/>
    <point atv="59.976" ath="-303.432"/>
    <point atv="54.164" ath="-302.035"/>
    <point atv="34.172" ath="-300.041"/>
    <point atv="23.328" ath="-347.762"/>
    <point atv="25.078" ath="-357.066"/>
    <point atv="25.326" ath="-0.499"/>
    <point atv="25.543" ath="-11.885"/>
    <point atv="21.466" ath="-42.900"/>
    <point atv="26.782" ath="-49.279"/>
    <point atv="52.659" ath="-81.640"/>
    <point atv="69.892" ath="-62.380"/>
    <point atv="56.110" ath="-45.218"/>
    <point atv="57.011" ath="-19.499"/>
    <point atv="57.768" ath="-19.259"/>
    <point atv="51.328" ath="-348.266"/>
</hotspot>

猜你喜欢

转载自blog.csdn.net/m0_37285193/article/details/80415003
今日推荐