You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
follow up to #10931 where I added an encoding option on the Tileset class to allow users to specify the encoding of the raster-dem source their using. currently only supports mapbox (default) and terrarium.
For iOS and macOS, this task would consist of the following changes:
Define a MGLTileSourceOptionRasterDEMEncoding constant of type MGLTileSourceOption (either in MGLTileSource.h or MGLRasterDEMSource.h).
Factor out the call to MGLTileSetFromTileURLTemplates() inside -[MGLRasterSource initWithIdentifier:tileURLTemplates:options:] into an instance method.
Override that method in MGLRasterDEMSource to apply MGLTileSourceOptionRasterDEMEncoding.
Mention the new option in this documentation and run make darwin-style-code to update the iOS and macOS guides.
Factor out the call to MGLTileSetFromTileURLTemplates() inside -[MGLRasterSource initWithIdentifier:tileURLTemplates:options:] into an instance method.
To expand on this, there’s currently a call to MGLTileSetFromTileURLTemplates() inside -[MGLRasterSource initWithIdentifier:tileURLTemplates:options:]. Instead, -initWithIdentifier:tileURLTemplates:options: should call -tileSetWithURLTemplates:options:, which in turn calls MGLTileSetFromTileURLTemplates(). MGLRasterDEMSource can override -tileSetWithURLTemplates:options: to first call super’s implementation then add its own option handling.
Activity
1ec5 commentedon Feb 20, 2018
For iOS and macOS, this task would consist of the following changes:
MGLTileSourceOptionRasterDEMEncodingconstant of typeMGLTileSourceOption(either in MGLTileSource.h or MGLRasterDEMSource.h).MGLTileSetFromTileURLTemplates()inside-[MGLRasterSource initWithIdentifier:tileURLTemplates:options:]into an instance method.MGLTileSourceOptionRasterDEMEncoding.make darwin-style-codeto update the iOS and macOS guides.mollymerp commentedon Feb 21, 2018
thanks @1ec5 – I'm working on a branch this morning.
one question: what is an "instance method" in the context of the second step you outlined above?
1ec5 commentedon Feb 21, 2018
To expand on this, there’s currently a call to
MGLTileSetFromTileURLTemplates()inside-[MGLRasterSource initWithIdentifier:tileURLTemplates:options:]. Instead,-initWithIdentifier:tileURLTemplates:options:should call-tileSetWithURLTemplates:options:, which in turn callsMGLTileSetFromTileURLTemplates(). MGLRasterDEMSource can override-tileSetWithURLTemplates:options:to first callsuper’s implementation then add its own option handling.mollymerp commentedon Mar 1, 2018
done in #11274 and #11339