Develop several core tests for GL Styles to guarantee uniform behavior across Mapbox style templates. Tests will produce either Mandatory failure
or Optional / Best Practices warning
depending on if it's an objective or subjective issue, as determined by the cartography team.
To start these will be for internal testing for our current default styles.
Once these are determined internally, they can be expanded to:
- Customer facing as
cli
or github repo - Recommended tool for custom map design clients
- Recommended/used by support team for HS trouble-shooting
- Rolled into Studio for de-bugging / troubleshooting
tunnels
,fords
,bridges
are styled separately or included inroad
styling- Require
national_parks
ifparks
are styled - Check that
_link
is included formotorway
,primary
,secondary
,trunk
if included in style - Require all
fontstacks
to have sufficient fonts orfallbacks
for global coverage
bridges
aboveroads
abovetunnels
waterway
abovewater
- any vector terrain layers should be below
water
- Correct order for
scaleranks
from the same subset (pois, place, country)
- Check that
highway_sheilds
are set toline
atz12+
- Require separate style layer for
disputed
boundaries (because they need to look diff from actual boundaries) - No transparency in water layer (causes problems with overlapping polygons)
minor_rail
is only styled ifmajor_rail
is styledtowns
are only labeled ifcities
are labeled- All
sprites
used instyle.json
must be included and named respectively in spritesheet- Check all
maki
icons and included in each GL template style (including-11
or-15
) - Check
shield
andrail
icons against generated list based ontokens
- Check all
- Where file size can be saved in
style.json
- Flag
fontstacks
that have the same primary font but differentfallbacks
- Flag if style has
>=5 fontstacks
CountWhat would help?spritesheets
... is there a preformance issue? can we optimize these?- Optitimize
ref groups
... check forlayout properties
(i.e. for road casing, etc.) - No
round
line caps or joins for thin lines (eg roads at low zooms)
- Flag
- File size comparison between previous / other styles and the current one (< 150%)
- ^^ how that relates to performance
- Require all
fontstacks
to have sufficient fonts orfallbacks
for global coverage
- Check
marine
labels that are line geometries are styled withline placement
- Check
marine
labels that are point geometries are styled withpoint placement
- Check for standard sizes of icons (for internal style only ???)
Next steps will be chatting with
- Check all
maki
icons and included in each GL template style (including-11
or-15
) - Check
shield
andrail
icons against generated list based ontokens