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

allow shape annotations to layer below labels #1754

Closed
incanus opened this issue Jun 18, 2015 · 7 comments
Closed

allow shape annotations to layer below labels #1754

incanus opened this issue Jun 18, 2015 · 7 comments
Labels
archived Archived because of inactivity Core The cross-platform C++ core, aka mbgl feature rendering
Milestone

Comments

@incanus
Copy link
Contributor

incanus commented Jun 18, 2015

Eventually we'll fully open up the layering (collisions, etc.), but in the meantime, for simple, traditional shape annotations, people will want to layer them just below labels for clarity.

Related: #1728

img_0650

@friedbunny
Copy link
Contributor

This would also be useful for polylines.

@jlansing
Copy link

jlansing commented Jan 6, 2016

This is definitely something we'd like to do for polylines as well.

@1ec5 1ec5 added this to the ios-future milestone Aug 25, 2016
@kkaefer kkaefer added Core The cross-platform C++ core, aka mbgl rendering labels May 30, 2017
@kkaefer
Copy link
Contributor

kkaefer commented May 30, 2017

See also mapbox/mapbox-gl-js#4225

@marcbaldwin
Copy link

I'd like to be able to add MGLPolygon below city labels, is there another way of doing it? Perhaps using layers? Any help would be greatly appreciated.

@kkaefer
Copy link
Contributor

kkaefer commented Aug 7, 2017

@marcbaldwin You can use a GeoJSON source, and use runtime styling to add it. This API allows you to specify the strata at which to insert the data. See https://www.mapbox.com/ios-sdk/api/3.6.0/runtime-styling.html for more documentation on this feature.

@marcbaldwin
Copy link

marcbaldwin commented Aug 7, 2017

Hey @kkaefer, thanks for your quick reply. Using the MGLPolygonFeature, MGLShapeSource, and MGLFillStyleLayer classes worked great, thanks! :)

@stale stale bot added the archived Archived because of inactivity label Nov 5, 2018
@stale
Copy link

stale bot commented Dec 1, 2018

This issue has been automatically detected as stale because it has not had recent activity and will be archived. Thank you for your contributions.

@stale stale bot closed this as completed Dec 1, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
archived Archived because of inactivity Core The cross-platform C++ core, aka mbgl feature rendering
Projects
None yet
Development

No branches or pull requests

6 participants