mapbox / mapbox-gl-styles

Prebuilt Mapbox GL styles for use in Mapbox GL JS or the Mapbox Mobile SDKs and as a starting point for custom maps built with Mapbox Studio
Other
279 stars 144 forks source link

Overscale sprites to account for tilt #310

Closed peterqliu closed 8 years ago

peterqliu commented 8 years ago

When tilted, icons in foreground get stretched. Per @yhahn 's blog post:

Perspective view can overscale icons that are rendered close to the camera and result in blurry edges. To keep icons sharp, draw them in your SVG editor at 2x the scale and then counterbalance in Mapbox Studio by setting the Icon Size to 0.5. This approach provides enough pixel density to show sharp details for icons even on maps using an extreme pitch.

Seems like a smart thing to do for our default basemaps?

jfirebaugh commented 8 years ago

This would mean that anybody who dynamically adds a symbol layer to a map showing a default style, as many of our mapbox-gl-js examples do, would need to set icon-size: 0.5. This would likely be unexpected and confusing.

peterqliu commented 8 years ago

@jfirebaugh agree that it would be confusing, but that's a detail that discerning users can pursue, if they so choose.

The scope of this ticket encompasses the starter styles only, which we don't require users to dig into.