Skip to content

Commit 1036d48

Browse files
committed
Add offline data.
1 parent b473d1a commit 1036d48

File tree

3 files changed

+39
-2
lines changed

3 files changed

+39
-2
lines changed

Samples.xcodeproj/project.pbxproj

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,8 @@
227227
D7044B972BE18D8D000F2C43 /* EditWithBranchVersioningView.Views.swift in Copy Source Code Files */ = {isa = PBXBuildFile; fileRef = D7044B952BE18D73000F2C43 /* EditWithBranchVersioningView.Views.swift */; };
228228
D704AA5A2AB22C1A00A3BB63 /* GroupLayersTogetherView.swift in Sources */ = {isa = PBXBuildFile; fileRef = D704AA592AB22C1A00A3BB63 /* GroupLayersTogetherView.swift */; };
229229
D704AA5B2AB22D8400A3BB63 /* GroupLayersTogetherView.swift in Copy Source Code Files */ = {isa = PBXBuildFile; fileRef = D704AA592AB22C1A00A3BB63 /* GroupLayersTogetherView.swift */; };
230+
D705390A2CD0122D00F63F4A /* mil2525d.stylx in Resources */ = {isa = PBXBuildFile; fileRef = D70539032CD0122D00F63F4A /* mil2525d.stylx */; settings = {ASSET_TAGS = (ApplyDictionaryRendererToFeatureLayer, ); }; };
231+
D70539102CD012BB00F63F4A /* militaryoverlay.geodatabase in Resources */ = {isa = PBXBuildFile; fileRef = D705390F2CD0127700F63F4A /* militaryoverlay.geodatabase */; settings = {ASSET_TAGS = (ApplyDictionaryRendererToFeatureLayer, ); }; };
230232
D7054AE92ACCCB6C007235BA /* Animate3DGraphicView.SettingsView.swift in Sources */ = {isa = PBXBuildFile; fileRef = D7054AE82ACCCB6C007235BA /* Animate3DGraphicView.SettingsView.swift */; };
231233
D7054AEA2ACCCC34007235BA /* Animate3DGraphicView.SettingsView.swift in Copy Source Code Files */ = {isa = PBXBuildFile; fileRef = D7054AE82ACCCB6C007235BA /* Animate3DGraphicView.SettingsView.swift */; };
232234
D7058B102B59E44B000A888A /* StylePointWithSceneSymbolView.swift in Sources */ = {isa = PBXBuildFile; fileRef = D7058B0D2B59E44B000A888A /* StylePointWithSceneSymbolView.swift */; };
@@ -925,6 +927,8 @@
925927
D701D72B2A37C7F7006FF0C8 /* bradley_low_3ds */ = {isa = PBXFileReference; lastKnownFileType = folder; path = bradley_low_3ds; sourceTree = "<group>"; };
926928
D7044B952BE18D73000F2C43 /* EditWithBranchVersioningView.Views.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = EditWithBranchVersioningView.Views.swift; sourceTree = "<group>"; };
927929
D704AA592AB22C1A00A3BB63 /* GroupLayersTogetherView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = GroupLayersTogetherView.swift; sourceTree = "<group>"; };
930+
D70539032CD0122D00F63F4A /* mil2525d.stylx */ = {isa = PBXFileReference; lastKnownFileType = file; path = mil2525d.stylx; sourceTree = "<group>"; };
931+
D705390F2CD0127700F63F4A /* militaryoverlay.geodatabase */ = {isa = PBXFileReference; lastKnownFileType = folder; path = militaryoverlay.geodatabase; sourceTree = "<group>"; };
928932
D7054AE82ACCCB6C007235BA /* Animate3DGraphicView.SettingsView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Animate3DGraphicView.SettingsView.swift; sourceTree = "<group>"; };
929933
D7058B0D2B59E44B000A888A /* StylePointWithSceneSymbolView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = StylePointWithSceneSymbolView.swift; sourceTree = "<group>"; };
930934
D7058FB02ACB423C00A40F14 /* Animate3DGraphicView.Model.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Animate3DGraphicView.Model.swift; sourceTree = "<group>"; };
@@ -1500,11 +1504,13 @@
15001504
792222DB2A81AA5D00619FFE /* a8a942c228af4fac96baa78ad60f511f */,
15011505
D7464F202ACE0910007FEE88 /* b5f977c78ec74b3a8857ca86d1d9b318 */,
15021506
D7F8C03F2B605E720072BFA7 /* b5106355f1634b8996e634c04b6a930a */,
1507+
D70539042CD0122D00F63F4A /* c78b149a1d52414682c86a5feeb13d30 */,
15031508
00D4EF8128638BF100B9CC30 /* cb1b20748a9f4d128dad8a87244e3e37 */,
15041509
4D126D7629CA3B3F00CFB7A7 /* d5bad9f4fee9483791e405880fb466da */,
15051510
D77572AC2A295DC100F490CD /* d1453556d91e46dea191c20c398b82cd */,
15061511
D75E5EEB2CC0466900252595 /* da301cb122874d5497f8a8f6c81eb36e */,
15071512
D7E7D0862AEB3C36003AAD02 /* df193653ed39449195af0c9725701dca */,
1513+
D70539082CD0122D00F63F4A /* e0d41b4b409a49a5a7ba11939d8535dc */,
15081514
F111CCC2288B63DB00205358 /* e1f3a7254cb845b09450f54937c16061 */,
15091515
D7C5233F2BED9BBF00E8221A /* e4a398afe9a945f3b0f4dca1e4faccb5 */,
15101516
D7F8C03C2B605AF60072BFA7 /* e12b54ea799f4606a2712157cf9f6e41 */,
@@ -2009,6 +2015,22 @@
20092015
path = "Group layers together";
20102016
sourceTree = "<group>";
20112017
};
2018+
D70539042CD0122D00F63F4A /* c78b149a1d52414682c86a5feeb13d30 */ = {
2019+
isa = PBXGroup;
2020+
children = (
2021+
D70539032CD0122D00F63F4A /* mil2525d.stylx */,
2022+
);
2023+
path = c78b149a1d52414682c86a5feeb13d30;
2024+
sourceTree = "<group>";
2025+
};
2026+
D70539082CD0122D00F63F4A /* e0d41b4b409a49a5a7ba11939d8535dc */ = {
2027+
isa = PBXGroup;
2028+
children = (
2029+
D705390F2CD0127700F63F4A /* militaryoverlay.geodatabase */,
2030+
);
2031+
path = e0d41b4b409a49a5a7ba11939d8535dc;
2032+
sourceTree = "<group>";
2033+
};
20122034
D7058B0B2B59E44B000A888A /* Style point with scene symbol */ = {
20132035
isa = PBXGroup;
20142036
children = (
@@ -3168,6 +3190,7 @@
31683190
AddVectorTiledLayerFromCustomStyle,
31693191
Animate3DGraphic,
31703192
AnimateImagesWithImageOverlay,
3193+
ApplyDictionaryRendererToFeatureLayer,
31713194
ApplyScheduledUpdatesToPreplannedMapArea,
31723195
AugmentRealityToShowTabletopScene,
31733196
ChangeCameraController,
@@ -3248,6 +3271,7 @@
32483271
D7BB3DD22C5D781800FFCD56 /* SaveTheBay.geodatabase in Resources */,
32493272
D74C8C022ABA6202007C76B8 /* emoji-mobile.stylx in Resources */,
32503273
D7CE9FA32AE2F595008F7A5F /* san-diego-eagle-locator in Resources */,
3274+
D70539102CD012BB00F63F4A /* militaryoverlay.geodatabase in Resources */,
32513275
D76000B72AF19FCA00B3084D /* SanFrancisco.mmpk in Resources */,
32523276
D762AF652BF6A96100ECE3C7 /* loudoun_anno.geodatabase in Resources */,
32533277
792222DD2A81AA5D00619FFE /* AIS_MarineCadastre_SelectedVessels_CustomDataSource.jsonl in Resources */,
@@ -3265,6 +3289,7 @@
32653289
798C2DA72AFC505600EE7E97 /* PrivacyInfo.xcprivacy in Resources */,
32663290
D7E7D09A2AEB3C47003AAD02 /* san_diego_offline_routing in Resources */,
32673291
F111CCC4288B641900205358 /* Yellowstone.mmpk in Resources */,
3292+
D705390A2CD0122D00F63F4A /* mil2525d.stylx in Resources */,
32683293
D77572AE2A295DDE00F490CD /* PacificSouthWest2 in Resources */,
32693294
D75E5EEC2CC0466900252595 /* esri_test_data.kmz in Resources */,
32703295
10D321932BDB187400B39B1B /* naperville_imagery.tpkx in Resources */,

Shared/Samples/Apply dictionary renderer to feature layer/ApplyDictionaryRendererToFeatureLayerView.swift

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,14 @@ struct ApplyDictionaryRendererToFeatureLayerView: View {
2323
}
2424
}
2525

26-
#Preview {
27-
ApplyDictionaryRendererToFeatureLayerView()
26+
private extension URL {
27+
/// The URL to the local "Joint Military Symbology MIL-STD-2525D" mobile style file.
28+
static var mil2525dStyleFile: URL {
29+
Bundle.main.url(forResource: "mil2525d", withExtension: "stylx")!
30+
}
31+
32+
/// The URL to the local "Military Overlay" geodatabase.
33+
static var militaryOverlayGeodatabase: URL {
34+
Bundle.main.url(forResource: "militaryoverlay", withExtension: ".geodatabase")!
35+
}
2836
}

Shared/Samples/Apply dictionary renderer to feature layer/README.metadata.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
"DictionaryRenderer",
1010
"DictionarySymbolStyle"
1111
],
12+
"offline_data": [
13+
"c78b149a1d52414682c86a5feeb13d30",
14+
"e0d41b4b409a49a5a7ba11939d8535dc"
15+
],
1216
"redirect_from": [],
1317
"relevant_apis": [
1418
"DictionaryRenderer",

0 commit comments

Comments
 (0)