设计核对清单
以下指南用于解决创建或修改地图样式时的常见设计问题。另外,Google 建议您在组合和审核您的设计时,征求平面设计师的意见。
确保具有足够的色彩对比度:选用合适的色彩对比度,可确保文本清晰易读,并让特定的地图项目更加醒目。如需了解详情,请参阅选择对比鲜明的填充颜色和描边颜色。
检查不同的缩放级别:测试您的样式元素在各个缩放级别下是否都有良好的显示效果。
避免使用已知会对色盲用户造成困扰的色彩组合:确保色盲用户也能使用您的设计。
检查夜间模式:对于移动端设计,请确保您的设计支持夜间模式。
选择对比鲜明的填充颜色和描边颜色
确保填充颜色和描边颜色之间具有足够的对比度,以避免地图项与背景融为一体,或是与类似的地图项混淆。
以多边形来表示线条:选择对比足够明显的颜色,以清楚呈现线条上的细节。例如,小路以虚线表示,但如果颜色对比不够明显,看起来就会像是实线。高速公路的外缘有轮廓线,如果对比不够明显,看起来就会像是实线,并可能会与其他道路类型混淆。
以多边形来表示形状:足够明显的对比,可让相邻多边形之间的边界更容易辨识。
文本的描边颜色和填充颜色:文本的描边颜色会套用轮廓颜色,以确保文字在背景颜色上清晰易读。如果描边颜色与填充颜色过于接近,文本可能就会模糊不清或失焦。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2023-12-26。
[null,null,["最后更新时间 (UTC):2023-12-26。"],[[["These guidelines provide recommendations for designing or editing map styles, emphasizing color contrast, zoom level considerations, and colorblind-friendly design."],["It is crucial to ensure sufficient contrast between fill and stroke colors for clear visibility of lines, shapes, and text on the map."],["Testing the map style at various zoom levels is important to guarantee visual appeal and functionality across different scales."],["Color choices should consider the needs of colorblind users to ensure usability for all."],["Mobile map designs should be verified in Night mode to ensure compatibility and readability in low-light conditions."]]],["Map style design guidelines recommend consulting a graphic designer. Key actions include ensuring sufficient color contrast between fill and stroke colors for readability and feature distinction, especially in lines, shapes, and text. Test designs at various zoom levels and consider colorblind users. For mobile, verify compatibility with Night mode. Contrast helps avoid issues like solid lines appearing instead of dotted lines or blurry text. Platforms for customization include Android, iOS, JavaScript, and Web Service.\n"]]