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

Commit

Permalink
[macos] Added heatmap layer icon
Browse files Browse the repository at this point in the history
  • Loading branch information
1ec5 committed Feb 10, 2018
1 parent 3726c58 commit 9264e27
Show file tree
Hide file tree
Showing 4 changed files with 91 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"images" : [
{
"idiom" : "universal",
"filename" : "heatmap.pdf",
"language-direction" : "left-to-right"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
},
"properties" : {
"template-rendering-intent" : "template"
}
}
Binary file not shown.
3 changes: 3 additions & 0 deletions platform/macos/app/StyleLayerIconTransformer.m
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ - (id)transformedValue:(MGLStyleLayer *)layer {
if ([layer isKindOfClass:[MGLSymbolStyleLayer class]]) {
return [NSImage imageNamed:@"symbol"];
}
if ([layer isKindOfClass:[MGLHeatmapStyleLayer class]]) {
return [NSImage imageNamed:@"heatmap"];
}
if ([layer isKindOfClass:[MGLHillshadeStyleLayer class]]) {
return [NSImage imageNamed:@"hillshade"];
}
Expand Down
72 changes: 72 additions & 0 deletions platform/macos/app/resources/heatmap.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 9264e27

Please sign in to comment.