File tree Expand file tree Collapse file tree 10 files changed +97
-4
lines changed
cpp/Esri/ArcGISRuntime/Toolkit Expand file tree Collapse file tree 10 files changed +97
-4
lines changed Original file line number Diff line number Diff line change 33<plist version =" 1.0" >
44<dict >
55 <key >CFBundleDisplayName </key >
6- <string >calite_test </string >
6+ <string >calcite_test </string >
77 <key >CFBundleExecutable </key >
8- <string >calite_test </string >
8+ <string >calcite_test </string >
99 <key >CFBundleGetInfoString </key >
1010 <string >ArcGIS </string >
1111 <key >CFBundleIcons </key >
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ ApplicationWindow {
2424 id: appWindow
2525 width: 800
2626 height: 800
27- title: " Calite_test "
27+ title: " Calcite_test "
2828 visible: true
2929
3030 Component .onCompleted : {
Original file line number Diff line number Diff line change @@ -292,7 +292,7 @@ namespace Toolkit {
292292 {
293293 double displayDistance = distance;
294294 LinearUnit displayUnit = selectLinearUnit (distance, unitSystem);
295- if (displayUnit.unitId () != m_baseUnit.unitId ())
295+ if (displayUnit.wkid () != m_baseUnit.wkid ())
296296 {
297297 displayDistance = m_baseUnit.convertTo (displayUnit, displayDistance);
298298 }
Original file line number Diff line number Diff line change 1+ // Copyright 2022 ESRI
2+ //
3+ // All rights reserved under the copyright laws of the United States
4+ // and applicable international laws, treaties, and conventions.
5+ //
6+ // You may freely redistribute and use this sample code, with or
7+ // without modification, provided you include the original copyright
8+ // notice and use restrictions.
9+ //
10+ // See the Sample code usage restrictions document for further information.
11+ #include " ScalebarDemo.h"
12+
13+ ScalebarDemo::ScalebarDemo (QObject* parent) :
14+ BaseDemo(parent)
15+ {
16+ }
17+
18+ ScalebarDemo::~ScalebarDemo ()
19+ {
20+ }
Original file line number Diff line number Diff line change 1+ // Copyright 2022 ESRI
2+ //
3+ // All rights reserved under the copyright laws of the United States
4+ // and applicable international laws, treaties, and conventions.
5+ //
6+ // You may freely redistribute and use this sample code, with or
7+ // without modification, provided you include the original copyright
8+ // notice and use restrictions.
9+ //
10+ // See the Sample code usage restrictions document for further information.
11+ #ifndef ARCGIS_RUNTIME_TOOLKIT_CPP_QUICK_DEMO_SCALEBARDEMO_H
12+ #define ARCGIS_RUNTIME_TOOLKIT_CPP_QUICK_DEMO_SCALEBARDEMO_H
13+
14+ #include " BaseDemo.h"
15+
16+ #include < QObject>
17+ #include < QQmlEngine>
18+
19+ class ScalebarDemo : public BaseDemo
20+ {
21+ Q_OBJECT
22+ QML_ELEMENT
23+ public:
24+ Q_INVOKABLE ScalebarDemo (QObject* parent = nullptr );
25+ ~ScalebarDemo () override ;
26+ };
27+
28+ #endif // ARCGIS_RUNTIME_TOOLKIT_CPP_QUICK_DEMO_SCALEBARDEMO_H
Original file line number Diff line number Diff line change 1+ // Copyright 2022 ESRI
2+ //
3+ // All rights reserved under the copyright laws of the United States
4+ // and applicable international laws, treaties, and conventions.
5+ //
6+ // You may freely redistribute and use this sample code, with or
7+ // without modification, provided you include the original copyright
8+ // notice and use restrictions.
9+ //
10+ // See the Sample code usage restrictions document for further information.
11+ //
12+
13+ import QtQuick 2.12
14+ import QtQuick.Controls 2.12
15+ import Esri.ArcGISRuntime 100.15
16+ import Esri.ArcGISRuntime.Toolkit 100.15
17+ import DemoApp 1.0
18+
19+ DemoPage {
20+ mapViewContents: Component {
21+ MapView {
22+ id: view
23+ Scalebar {
24+ anchors {
25+ bottom: parent .attributionTop
26+ left: parent .left
27+ margins: 10
28+ }
29+ mapView: parent
30+ }
31+ OverviewMapDemo {
32+ geoView: view
33+ }
34+ }
35+ }
36+ }
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ HEADERS += $$PWD/AuthenticationViewDemo.h \
1212 $$PWD /NorthArrowDemo.h \
1313 $$PWD /OverviewMapDemo.h \
1414 $$PWD /PopupViewDemo.h \
15+ $$PWD /ScalebarDemo.h \
1516 $$PWD /SearchViewDemo.h \
1617 $$PWD /TimeSliderDemo.h
1718
@@ -24,5 +25,6 @@ SOURCES += $$PWD/AuthenticationViewDemo.cpp \
2425 $$PWD /NorthArrowDemo.cpp \
2526 $$PWD /OverviewMapDemo.cpp \
2627 $$PWD /PopupViewDemo.cpp \
28+ $$PWD /ScalebarDemo.cpp \
2729 $$PWD /SearchViewDemo.cpp \
2830 $$PWD /TimeSliderDemo.cpp
Original file line number Diff line number Diff line change 99 <file>NorthArrowDemoForm.qml</file>
1010 <file>OverviewMapDemoForm.qml</file>
1111 <file>PopupViewDemoForm.qml</file>
12+ <file>ScalebarDemoForm.qml</file>
1213 <file>SearchViewDemoForm.qml</file>
1314 <file>TimeSliderDemoForm.qml</file>
1415 </qresource>
Original file line number Diff line number Diff line change @@ -72,6 +72,8 @@ Control {
7272 contentItem: TextField {
7373 id: apiKeyInput
7474 placeholderText: " Enter your API Key here."
75+ Keys .onReturnPressed : apiKeyPopup .accept ()
76+ Component .onCompleted : forceActiveFocus ()
7577 }
7678 anchors .centerIn : demoPage
7779 standardButtons: Dialog .Ok | Dialog .Cancel
Original file line number Diff line number Diff line change @@ -49,6 +49,10 @@ const TOOLS = [
4949 "name" : "Time slider" ,
5050 "url" : "TimeSliderDemoForm.qml"
5151 } ,
52+ {
53+ "name" : "Scalebar" ,
54+ "url" : "ScalebarDemoForm.qml"
55+ } ,
5256 {
5357 "name" : "Authentication view" ,
5458 "url" : "AuthenticationViewDemoForm.qml" ,
You can’t perform that action at this time.
0 commit comments