-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: expand change-map-id example to change-map-styles
- Loading branch information
1 parent
3dcce57
commit f01d4ea
Showing
12 changed files
with
147 additions
and
17 deletions.
There are no files selected for viewing
7 changes: 2 additions & 5 deletions
7
examples/change-map-id/README.md → examples/change-map-styles/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
55 changes: 55 additions & 0 deletions
55
examples/change-map-styles/src/map-styles/bright-colors.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
// Map Style "No label Bright Colors" by Beniamino Nobile | ||
// https://snazzymaps.com/style/127403/no-label-bright-colors | ||
|
||
export default [ | ||
{ | ||
featureType: 'all', | ||
elementType: 'all', | ||
stylers: [ | ||
{saturation: '32'}, | ||
{lightness: '-3'}, | ||
{visibility: 'on'}, | ||
{weight: '1.18'} | ||
] | ||
}, | ||
{ | ||
featureType: 'administrative', | ||
elementType: 'labels', | ||
stylers: [{visibility: 'off'}] | ||
}, | ||
{ | ||
featureType: 'landscape', | ||
elementType: 'labels', | ||
stylers: [{visibility: 'off'}] | ||
}, | ||
{ | ||
featureType: 'landscape.man_made', | ||
elementType: 'all', | ||
stylers: [{saturation: '-70'}, {lightness: '14'}] | ||
}, | ||
{ | ||
featureType: 'poi', | ||
elementType: 'labels', | ||
stylers: [{visibility: 'off'}] | ||
}, | ||
{ | ||
featureType: 'road', | ||
elementType: 'labels', | ||
stylers: [{visibility: 'off'}] | ||
}, | ||
{ | ||
featureType: 'transit', | ||
elementType: 'labels', | ||
stylers: [{visibility: 'off'}] | ||
}, | ||
{ | ||
featureType: 'water', | ||
elementType: 'all', | ||
stylers: [{saturation: '100'}, {lightness: '-14'}] | ||
}, | ||
{ | ||
featureType: 'water', | ||
elementType: 'labels', | ||
stylers: [{visibility: 'off'}, {lightness: '12'}] | ||
} | ||
] as google.maps.MapTypeStyle[]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
// Map Style "Vitamin C" by Adam Krogh | ||
// https://snazzymaps.com/style/40/vitamin-c | ||
export default [ | ||
{ | ||
featureType: 'water', | ||
elementType: 'geometry', | ||
stylers: [{color: '#004358'}] | ||
}, | ||
{ | ||
featureType: 'landscape', | ||
elementType: 'geometry', | ||
stylers: [{color: '#1f8a70'}] | ||
}, | ||
{ | ||
featureType: 'poi', | ||
elementType: 'geometry', | ||
stylers: [{color: '#1f8a70'}] | ||
}, | ||
{ | ||
featureType: 'road.highway', | ||
elementType: 'geometry', | ||
stylers: [{color: '#fd7400'}] | ||
}, | ||
{ | ||
featureType: 'road.arterial', | ||
elementType: 'geometry', | ||
stylers: [{color: '#1f8a70'}, {lightness: -20}] | ||
}, | ||
{ | ||
featureType: 'road.local', | ||
elementType: 'geometry', | ||
stylers: [{color: '#1f8a70'}, {lightness: -17}] | ||
}, | ||
{ | ||
elementType: 'labels.text.stroke', | ||
stylers: [{color: '#ffffff'}, {visibility: 'on'}, {weight: 0.9}] | ||
}, | ||
{ | ||
elementType: 'labels.text.fill', | ||
stylers: [{visibility: 'on'}, {color: '#ffffff'}] | ||
}, | ||
{ | ||
featureType: 'poi', | ||
elementType: 'labels', | ||
stylers: [{visibility: 'simplified'}] | ||
}, | ||
{elementType: 'labels.icon', stylers: [{visibility: 'off'}]}, | ||
{ | ||
featureType: 'transit', | ||
elementType: 'geometry', | ||
stylers: [{color: '#1f8a70'}, {lightness: -10}] | ||
}, | ||
{}, | ||
{ | ||
featureType: 'administrative', | ||
elementType: 'geometry', | ||
stylers: [{color: '#1f8a70'}, {weight: 0.7}] | ||
} | ||
] as google.maps.MapTypeStyle[]; |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Change Map Styles | ||
|
||
import App from 'website-examples/change-map-styles/src/app'; | ||
|
||
<App /> |
File renamed without changes