1/**************************************************************************** 2** 3** Copyright (C) 2017 The Qt Company Ltd. 4** Contact: https://www.qt.io/licensing/ 5** 6** This file is part of the documentation of the Qt Toolkit. 7** 8** $QT_BEGIN_LICENSE:FDL$ 9** Commercial License Usage 10** Licensees holding valid commercial Qt licenses may use this file in 11** accordance with the commercial license agreement provided with the 12** Software or, alternatively, in accordance with the terms contained in 13** a written agreement between you and The Qt Company. For licensing terms 14** and conditions see https://www.qt.io/terms-conditions. For further 15** information use the contact form at https://www.qt.io/contact-us. 16** 17** GNU Free Documentation License Usage 18** Alternatively, this file may be used under the terms of the GNU Free 19** Documentation License version 1.3 as published by the Free Software 20** Foundation and appearing in the file included in the packaging of 21** this file. Please review the following information to ensure 22** the GNU Free Documentation License version 1.3 requirements 23** will be met: https://www.gnu.org/licenses/fdl-1.3.html. 24** $QT_END_LICENSE$ 25** 26****************************************************************************/ 27 28/*! 29\example itemview_transitions 30\title MapItemView Transitions (QML) 31\ingroup qtlocation-examples 32\brief How to use transitions together with MapItemView. 33\image itemview_transitions.jpg 34 35\e {MapItemView Transitions} demonstrates how to use the \l{Map} item to render a map. 36It shows the minimum amount of code needed to display the map, and can be used 37as a basis for further experimentation. 38 39\include examples-run.qdocinc 40 41\section1 QML Code 42 43In \c main.qml, two \e {MapItemView} elements are used, to add to the 44map the administrative districts for the Oslo region, and to add a marker 45upon long-press. 46 47\snippet itemview_transitions/main.qml MarkerView 48 49The marker view specifies both the add and the remove transition, to 50create a bouncing marker effect. 51 52\snippet itemview_transitions/main.qml OsloAdministrativeRegions 53 54The administrative districts view specifies only the add transition, 55to create a district growing effect. 56 57\section1 Requirements 58 59The example requires a working internet connection to download 60\c OpenStreetMap map tiles. An optional system proxy should be picked 61up automatically. 62*/ 63