MapRoute QML Type
MapRoute タイプは地図上にルートを表示します。詳細...
Import Statement: | import QtLocation 6.8 |
Since: | QtLocation 5.0 |
- 継承されたメンバを含むすべてのメンバの一覧
- MapRoute はQML Maps Plugin に含まれています。
プロパティ
- line
- line.color : color
- line.width : int
- route : Route
詳細説明
MapRoute タイプは、RouteModel またはその他の手段で取得した Route を、Route のパスに沿った Polyline として Map 上に表示します。
MapRoute は実際にはMapPolyline ですが、coordinates で直接ではなくroute プロパティを使用してパスを指定します。
デフォルトでは、ルートは 1 ピクセルの太さの黒い線として表示されます。これは、line.width とline.color プロパティを使用して変更できます。
使用例
import QtQuick import QtPositioning import QtLocation Map { RouteModel { id: routeModel } MapItemView { model: routeModel delegate: routeDelegate } Component { id: routeDelegate MapRoute { route: routeData line.color: "blue" line.width: 5 smooth: true opacity: 0.8 } } }
プロパティの説明
このプロパティは line プロパティグループの一部です。line プロパティグループは、線を描くのに使われる幅と色を保持する。
幅はピクセル単位で、地図のズームレベルとは無関係です。デフォルト値は幅1ピクセルの黒枠に対応します。
線を引かない場合は、幅 0 または透明色を使用します。
route : Route |
このプロパティは、1 つの地理的なルートを表すために使用できる、描画するルートを保持します。
© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.