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

allow change/animation of overlay alpha #39

Closed

Description

@incanus

Breakout from #7 (comment)

Activity

  1. radven commented on Feb 20, 2014

    @radven

    The use case I am envisioning is a slider that allows heat map (or cloud cover) overlay transparency to be dialed up or down based upon user input. With multiple overlays, the primary data being analyzed can become opaque, and the secondary overlays made semi-transparent.

  2. incanus commented on Feb 20, 2014

    @incanus
    ContributorAuthor

    Yeah as @wsnook pointed out, as of iOS 7 / MKTileOverlay & the new renderer system, the performance here would likely not be as desired.

    However, even if you went to all that trouble, the kind of maximum refresh rate you'd be looking at would likely be a really glitchy 1/2 frame per second or something similarly terrible.

    Things are done a tile at a time, and although you can setNeedsDisplayInMapRect:, the actual refreshes are then done on a tile-by-tile basis, drawn into a Core Graphics context as opposed to manipulating a UIView directly. So you won't get the smooth, layer-wide effect that you want. The same issue affects potentially using custom vector rendering in an overlay.

    Presets and filing a Radar seem like good bets. Or else using http://github.com/mapbox/mapbox-ios-sdk, which does this now :-)

  3. radven commented on Feb 21, 2014

    @radven

    Presets can balloon the size of the app - recreating the same mbtile file multiple times with a different alpha channel. I'm going to do a few experiments, and file a radar. I'll post here if I discover any interesting tricks.

  4. added this to the 0.3.0 milestone on Feb 26, 2014
  5. removed this from the 0.3.0 milestone on Mar 5, 2014
  6. incanus commented on Mar 5, 2014

    @incanus
    ContributorAuthor

    I've moved it out of the milestone. Let's keep it around and think about options down the road. Ok to punt on it later if it proves nigh impossible.

  7. radven commented on Mar 5, 2014

    @radven

    I think it might be worth splitting into two different features - changing the alpha layer is a much more important and much more common use case than smoothly animating it.

    Being able to set a layer to 25% or 50% transparency enables a lot of functionality even without being able smoothly fade it in and out.

    Thoughts?

  8. incanus commented on Aug 27, 2014

    @incanus
    ContributorAuthor

    Gonna defer this to GL.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions