Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Commit 81367f3

Browse files
committed
[macos] Added WMS debug style
Added a style to the macosapp resource bundle that can be used to test WMS support. To use it, zoom in to somewhere in New Jersey, then go to View ‣ Custom Style and enter “wms.json”.
1 parent 28ae1fe commit 81367f3

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

platform/macos/app/wms.json

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"version": 8,
3+
"name": "WMS Test",
4+
"sources": {
5+
"wms-test": {
6+
"type": "raster",
7+
"tiles": [
8+
"https://geodata.state.nj.us/imagerywms/Natural2015?bbox={bbox-epsg-3857}&format=image/png&service=WMS&version=1.1.1&request=GetMap&srs=EPSG:3857&width=256&height=256&layers=Natural2015"
9+
],
10+
"tileSize": 256
11+
}
12+
},
13+
"layers": [{
14+
"id": "wms-test-layer",
15+
"type": "raster",
16+
"source": "wms-test",
17+
"paint": {
18+
"raster-fade-duration": 100
19+
}
20+
}]
21+
}

platform/macos/macos.xcodeproj/project.pbxproj

+4
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
DA35A2C21CCA9F4A00E826B2 /* MGLClockDirectionFormatterTests.m in Sources */ = {isa = PBXBuildFile; fileRef = DA35A2C11CCA9F4A00E826B2 /* MGLClockDirectionFormatterTests.m */; };
2121
DA35A2CF1CCAAED300E826B2 /* NSValue+MGLAdditions.h in Headers */ = {isa = PBXBuildFile; fileRef = DA35A2CD1CCAAED300E826B2 /* NSValue+MGLAdditions.h */; settings = {ATTRIBUTES = (Public, ); }; };
2222
DA35A2D01CCAAED300E826B2 /* NSValue+MGLAdditions.m in Sources */ = {isa = PBXBuildFile; fileRef = DA35A2CE1CCAAED300E826B2 /* NSValue+MGLAdditions.m */; };
23+
DA5589771D320C41006B7F64 /* wms.json in Resources */ = {isa = PBXBuildFile; fileRef = DA5589761D320C41006B7F64 /* wms.json */; };
2324
DA839E971CC2E3400062CAFB /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = DA839E961CC2E3400062CAFB /* AppDelegate.m */; };
2425
DA839E9A1CC2E3400062CAFB /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = DA839E991CC2E3400062CAFB /* main.m */; };
2526
DA839E9D1CC2E3400062CAFB /* MapDocument.m in Sources */ = {isa = PBXBuildFile; fileRef = DA839E9C1CC2E3400062CAFB /* MapDocument.m */; };
@@ -159,6 +160,7 @@
159160
DA35A2C11CCA9F4A00E826B2 /* MGLClockDirectionFormatterTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = MGLClockDirectionFormatterTests.m; path = ../../darwin/test/MGLClockDirectionFormatterTests.m; sourceTree = "<group>"; };
160161
DA35A2CD1CCAAED300E826B2 /* NSValue+MGLAdditions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "NSValue+MGLAdditions.h"; sourceTree = "<group>"; };
161162
DA35A2CE1CCAAED300E826B2 /* NSValue+MGLAdditions.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "NSValue+MGLAdditions.m"; sourceTree = "<group>"; };
163+
DA5589761D320C41006B7F64 /* wms.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = wms.json; sourceTree = "<group>"; };
162164
DA839E921CC2E3400062CAFB /* Mapbox GL.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Mapbox GL.app"; sourceTree = BUILT_PRODUCTS_DIR; };
163165
DA839E951CC2E3400062CAFB /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; };
164166
DA839E961CC2E3400062CAFB /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = "<group>"; };
@@ -334,6 +336,7 @@
334336
DAE6C2EC1CC3050F00DB3429 /* TimeIntervalTransformer.m */,
335337
DA839EA11CC2E3400062CAFB /* Assets.xcassets */,
336338
DA839EA31CC2E3400062CAFB /* MainMenu.xib */,
339+
DA5589761D320C41006B7F64 /* wms.json */,
337340
DAE6C2E11CC304F900DB3429 /* Credits.rtf */,
338341
DA839EA61CC2E3400062CAFB /* Info.plist */,
339342
DA839E981CC2E3400062CAFB /* Supporting Files */,
@@ -721,6 +724,7 @@
721724
DA839EA21CC2E3400062CAFB /* Assets.xcassets in Resources */,
722725
DA839EA01CC2E3400062CAFB /* MapDocument.xib in Resources */,
723726
DA839EA51CC2E3400062CAFB /* MainMenu.xib in Resources */,
727+
DA5589771D320C41006B7F64 /* wms.json in Resources */,
724728
DAE6C2E21CC304F900DB3429 /* Credits.rtf in Resources */,
725729
);
726730
runOnlyForDeploymentPostprocessing = 0;

0 commit comments

Comments
 (0)