<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <!-- qdeclarativegeomaptype.cpp --> <title>MapType QML Type | Qt Location 5.12.6</title> <link rel="stylesheet" type="text/css" href="style/offline-simple.css" /> <script type="text/javascript"> document.getElementsByTagName("link").item(0).setAttribute("href", "style/offline.css"); // loading style sheet breaks anchors that were jumped to before // so force jumping to anchor again setTimeout(function() { var anchor = location.hash; // need to jump to different anchor first (e.g. none) location.hash = "#"; setTimeout(function() { location.hash = anchor; }, 0); }, 0); </script> </head> <body> <div class="header" id="qtdocheader"> <div class="main"> <div class="main-rounded"> <div class="navigationbar"> <table><tr> <td >Qt 5.12</td><td ><a href="qtlocation-index.html">Qt Location</a></td><td ><a href="qtlocation-qmlmodule.html">QML Types</a></td><td >MapType QML Type</td></tr></table><table class="buildversion"><tr> <td id="buildversion" width="100%" align="right"><a href="qtlocation-index.html">Qt 5.12.6 Reference Documentation</a></td> </tr></table> </div> </div> <div class="content"> <div class="line"> <div class="content mainContent"> <div class="sidebar"> <div class="toc"> <h3><a name="toc">Contents</a></h3> <ul> <li class="level1"><a href="#properties">Properties</a></li> <li class="level1"><a href="#details">Detailed Description</a></li> </ul> </div> <div class="sidebar-content" id="sidebar-content"></div></div> <h1 class="title">MapType QML Type</h1> <span class="subtitle"></span> <!-- $$$MapType-brief --> <p>The <a href="qml-qtlocation-maptype.html">MapType</a> type holds information about a map type. <a href="#details">More...</a></p> <!-- @@@MapType --> <div class="table"><table class="alignedsummary"> <tr><td class="memItemLeft rightAlign topAlign"> Import Statement:</td><td class="memItemRight bottomAlign"> import QtLocation 5.12</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Since:</td><td class="memItemRight bottomAlign"> QtLocation 5.5</td></tr></table></div><ul> <li><a href="qml-qtlocation-maptype-members.html">List of all members, including inherited members</a></li> </ul> <a name="properties"></a> <h2 id="properties">Properties</h2> <ul> <li class="fn"><b><b><a href="qml-qtlocation-maptype.html#cameraCapabilities-prop">cameraCapabilities</a></b></b> : CameraCapabilities</li> <li class="fn"><b><b><a href="qml-qtlocation-maptype.html#description-prop">description</a></b></b> : string</li> <li class="fn"><b><b><a href="qml-qtlocation-maptype.html#metadata-prop">metadata</a></b></b> : VariantMap</li> <li class="fn"><b><b><a href="qml-qtlocation-maptype.html#mobile-prop">mobile</a></b></b> : bool</li> <li class="fn"><b><b><a href="qml-qtlocation-maptype.html#name-prop">name</a></b></b> : string</li> <li class="fn"><b><b><a href="qml-qtlocation-maptype.html#night-prop">night</a></b></b> : bool</li> <li class="fn"><b><b><a href="qml-qtlocation-maptype.html#style-prop">style</a></b></b> : enumeration</li> </ul> <!-- $$$MapType-description --> <a name="details"></a> <h2 id="details">Detailed Description</h2> <p>This includes the map type's <a href="qml-qtlocation-maptype.html#name-prop">name</a> and <a href="qml-qtlocation-maptype.html#description-prop">description</a>, the <a href="qml-qtlocation-maptype.html#style-prop">style</a> and a flag to indicate if the map type is optimized for mobile devices (<a href="qml-qtlocation-maptype.html#mobile-prop">mobile</a>).</p> <!-- @@@MapType --> <h2>Property Documentation</h2> <!-- $$$cameraCapabilities --> <div class="qmlitem"><div class="qmlproto"> <div class="table"><table class="qmlname"> <tr valign="top" class="odd" id="cameraCapabilities-prop"> <td class="tblQmlPropNode"><p> <a name="cameraCapabilities-prop"></a><span class="name">cameraCapabilities</span> : <span class="type"><a href="qml-qtlocation-cameracapabilities.html">CameraCapabilities</a></span></p></td></tr> </table></div> </div><div class="qmldoc"><p>This property holds the camera capabilities for this map type.</p> <p>This property was introduced in QtLocation 5.10.</p> </div></div><!-- @@@cameraCapabilities --> <br/> <!-- $$$description --> <div class="qmlitem"><div class="qmlproto"> <div class="table"><table class="qmlname"> <tr valign="top" class="odd" id="description-prop"> <td class="tblQmlPropNode"><p> <a name="description-prop"></a><span class="name">description</span> : <span class="type">string</span></p></td></tr> </table></div> </div><div class="qmldoc"><p>This read-only property holds the description of the map type as a single formatted string.</p> </div></div><!-- @@@description --> <br/> <!-- $$$metadata --> <div class="qmlitem"><div class="qmlproto"> <div class="table"><table class="qmlname"> <tr valign="top" class="odd" id="metadata-prop"> <td class="tblQmlPropNode"><p> <a name="metadata-prop"></a><span class="name">metadata</span> : <span class="type">VariantMap</span></p></td></tr> </table></div> </div><div class="qmldoc"><p>This property holds optional, extra metadata related to a specific map type. The content of this property is entirely plugin-specific.</p> <p>This property was introduced in QtLocation 5.10.</p> </div></div><!-- @@@metadata --> <br/> <!-- $$$mobile --> <div class="qmlitem"><div class="qmlproto"> <div class="table"><table class="qmlname"> <tr valign="top" class="odd" id="mobile-prop"> <td class="tblQmlPropNode"><p> <a name="mobile-prop"></a><span class="name">mobile</span> : <span class="type">bool</span></p></td></tr> </table></div> </div><div class="qmldoc"><p>Whether the map type is optimized for the use on a mobile device.</p> <p>Map types for mobile devices usually have higher constrast to counteract the effects of sunlight and a reduced color for improved readability.</p> </div></div><!-- @@@mobile --> <br/> <!-- $$$name --> <div class="qmlitem"><div class="qmlproto"> <div class="table"><table class="qmlname"> <tr valign="top" class="odd" id="name-prop"> <td class="tblQmlPropNode"><p> <a name="name-prop"></a><span class="name">name</span> : <span class="type">string</span></p></td></tr> </table></div> </div><div class="qmldoc"><p>This read-only property holds the name of the map type as a single formatted string.</p> </div></div><!-- @@@name --> <br/> <!-- $$$night --> <div class="qmlitem"><div class="qmlproto"> <div class="table"><table class="qmlname"> <tr valign="top" class="odd" id="night-prop"> <td class="tblQmlPropNode"><p> <a name="night-prop"></a><span class="name">night</span> : <span class="type">bool</span></p></td></tr> </table></div> </div><div class="qmldoc"><p>Whether the map type is optimized for use at night.</p> <p>Map types suitable for use at night usually have a dark background.</p> <p>This property was introduced in QtLocation 5.4.</p> </div></div><!-- @@@night --> <br/> <!-- $$$style --> <div class="qmlitem"><div class="qmlproto"> <div class="table"><table class="qmlname"> <tr valign="top" class="odd" id="style-prop"> <td class="tblQmlPropNode"><p> <a name="style-prop"></a><span class="name">style</span> : <span class="type">enumeration</span></p></td></tr> </table></div> </div><div class="qmldoc"><p>This read-only property gives access to the style of the map type.</p> <ul> <li><a href="qml-qtlocation-maptype.html">MapType</a>.NoMap - No map.</li> <li><a href="qml-qtlocation-maptype.html">MapType</a>.StreetMap - A street map.</li> <li><a href="qml-qtlocation-maptype.html">MapType</a>.SatelliteMapDay - A map with day-time satellite imagery.</li> <li><a href="qml-qtlocation-maptype.html">MapType</a>.SatelliteMapNight - A map with night-time satellite imagery.</li> <li><a href="qml-qtlocation-maptype.html">MapType</a>.TerrainMap - A terrain map.</li> <li><a href="qml-qtlocation-maptype.html">MapType</a>.HybridMap - A map with satellite imagery and street information.</li> <li><a href="qml-qtlocation-maptype.html">MapType</a>.GrayStreetMap - A gray-shaded street map.</li> <li><a href="qml-qtlocation-maptype.html">MapType</a>.PedestrianMap - A street map suitable for pedestriants.</li> <li><a href="qml-qtlocation-maptype.html">MapType</a>.CarNavigationMap - A street map suitable for car navigation.</li> <li><a href="qml-qtlocation-maptype.html">MapType</a>.CycleMap - A street map suitable for cyclists.</li> <li><a href="qml-qtlocation-maptype.html">MapType</a>.CustomMap - A custom map type.</li> </ul> </div></div><!-- @@@style --> <br/> </div> </div> </div> </div> </div> <div class="footer"> <p> <acronym title="Copyright">©</acronym> 2019 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners.<br/> The documentation provided herein is licensed under the terms of the <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation License version 1.3</a> as published by the Free Software Foundation.<br/> 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. </p> </div> </body> </html>