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

client-side data #507

Closed
Closed

Description

@incanus

Master ticket for building out client-side data (e.g. non-vector tiles). This is the last big feature we need for viable initial iOS deployment in apps.

Use cases:

  • Plot user location with e.g. Core Location
  • Show arbitrary point/polyline features
    • GeoJSON (about the only format we'll worry about parsing internally)
    • Externally-parsed formats like KML, Shapefile, etc.
    • Runtime-added features (e.g. here's an array of points; render them)

Progressive feature set:

  1. Spatial indexing and/or pre-tiling of feature data.
  2. Rendering of features with static styling (also hits user location use case).
  3. Arbitrary styling of polylines.
  4. Arbitrary imagery for points (sprite atlas etc.)
  5. Animated native views for points (a là MKAnnotationView on iOS).

Let's treat clustering (#320) as a separate milestone.

Related/obsoletes:

Activity

  1. added
    GL JS parity
    iOS
    on Oct 27, 2014
  2. abhay-agarwal commented on Nov 20, 2014

    @abhay-agarwal

    Hey incanus, Mapbox-gl-cocoa looks and acts great. Any idea of release dates for these features? Specifically the run-time added features with arbitrary sprites (that's about all we need). Also, will these features follow the format of the RM objects (i.e. MGLAnnotation instead of RMAnnotation)?

  3. incanus commented on Nov 21, 2014

    @incanus
    ContributorAuthor

    Not sure on a timeline yet @abhay-agarwal, but stay tuned. For API, this will be more like MapKit (MKAnnotation protocol) than the SDK (RMAnnotation class).

  4. aleksandr-vin commented on Nov 28, 2014

    @aleksandr-vin

    Suddenly discovered "source type not implemented" for geojson. Really need it. Subscribed.

  5. mourner commented on Dec 9, 2014

    @mourner
    Member

    The big GeoJSON rewrite is done — see mapbox/mapbox-gl-js#464 comments. We now need to port geojson-vt to C++11 and from there it'll be easy to add robust and fast GeoJSON support.

  6. incanus commented on Dec 9, 2014

    @incanus
    ContributorAuthor

    We now need to port geojson-vt to C++11

    I'm going to start taking a crack at this today.

  7. incanus commented on Dec 9, 2014

    @incanus
    ContributorAuthor

    Making some headway on this. Believe it or not I'm using Swift to do it, since basically all of the geojson-vt code needs to be made strongly typed, and Swift's now my fastest typed language, plus playgrounds let me make small progress without explicitly having to compile or to suffer C++'s overhead in Xcode.

    We'll need to build out formal structures for all of the parts used (features, points, feature types, tiles, stats, GeoJSONVT options, etc. as well as the strongly typed array/dictionary containers required by C++ and countering the looseness of JS's Int/Double numbers) and banging through it in a lightweight language is letting me move fast as I understand the code. Most of the way through tile.js & index.js thus far.

  8. incanus commented on Dec 19, 2014

    @incanus
    ContributorAuthor

    Feeling good here. Intermediary lib:

    https://github.com/incanus/geojsonvt.swift

    anigif-1418954950

    Currently working on getting this to work with larger data, including the 100MB zips. Probably some lingering out of range errors and the like.

    /cc @mourner

  9. mourner commented on Dec 19, 2014

    @mourner
    Member

    @incanus Can't wait!

  10. incanus commented on Dec 19, 2014

    @incanus
    ContributorAuthor

    Ok, we're looking feature-complete and I think basically bug-free at this point. My basic GeoJSON test cases work great, but zips are still taking a looooong time. Profiling reveals most of the time is spent in JSON deserialization (~20%) and dynamic object type casting (~70%, lol).

    screen shot 2014-12-19 at 11 19 45 am

    So, Swift has served me well here, but moving to C++ now.

    anigif-1419015245

  11. bvjustin commented on Dec 19, 2014

    @bvjustin

    I opened an issue yesterday (#726) that's similar to this one, and the use case I described is similar to the ones listed at the top of this one, but I just want to add to this issue to spell out it out for the record here.

    • Display arbitrary raster features (non-tiled)

    In plain english, here's how I describe it:

    From a high level, I want to be able to render my (non-tiled) content that’s generated on the client in a Mapbox GL map at my specified z order in the rendering tree. You can imagine this as a weather satellite image above the terrain but below the roads/city name layers. And as these data are updated often, I would need to be able to animate/loop it. Any client provided content would not need to be parsed by Mapbox (it would be lower level than just providing an image). I can envision providing some texture data along with some vertices and tex coordinates, or maybe providing a custom shader or something...

  12. mourner commented on Dec 20, 2014

    @mourner
    Member

    most of the time is spent in JSON deserialization (~20%) and dynamic object type casting (~70%, lol).

    That's completely ridiculous. I guess that's the price you pay for using a new but immature language :) Looking forward to the C++ results then!

  13. incanus commented on Dec 20, 2014

    @incanus
    ContributorAuthor

    Yeah, I'm very curious about it but not priority-curious about it. Might check it out over break and get to the bottom of it. I'd like to know if it's misuse, bug, limitation, etc. =

  14. 24 remaining items

  15. ljbade commented on Feb 12, 2015

    @ljbade
    Contributor

    @akbsteam This is basically the next item on our list of features to work on so keep an eye on the commits.

  16. akbsteam commented on Feb 12, 2015

    @akbsteam

    @ljbade that's really good news; is there a vague-hand-wavy-ball-park timeline for this?

  17. incanus commented on Feb 12, 2015

    @incanus
    ContributorAuthor

    @akbsteam I'd say on the order of 1-1.5 months.

  18. akbsteam commented on Feb 12, 2015

    @akbsteam

    @incanus thanks; is there anything we can do in the interim? just to get us going on it ...

  19. incanus commented on Feb 12, 2015

    @incanus
    ContributorAuthor

    I am working right now on pixel—lat/long—projected meters conversion functions in #853 which I hope to merge today. With that @ljbade and I will be looking into some interim solutions for basic overlays on the map, even if composited.

  20. akbsteam commented on Feb 12, 2015

    @akbsteam

    that sounds good; at this point we just want to add pins that we can tap on and lines between them, so anything that will let us do that in some fashion would be amazing

  21. bvjustin commented on Feb 12, 2015

    @bvjustin

    When I was digging into this a couple of months ago (I was asking @flippmoke questions literally the day before you guys stole him away from us), I eventually got it doing what I wanted it to do (see my comment/request above). Did it as a proof of concept to show the boss... Wish I had more time to devote to this and completely flesh it out. I'm anxious to see how your implementation compares!

  22. modified the milestone: on Feb 13, 2015
  23. incanus commented on Feb 17, 2015

    @incanus
    ContributorAuthor

    Lat/lon conversion stuff is in master and iOS annotations are happening in #877. In particular, I'm using the conversions to "fake it" atop the GL view as a starting point, but eventually we still need the spatial indexing provided by the geojsonvt branch, so I'll be getting back into that in #893.

  24. jfirebaugh commented on Mar 6, 2015

    @jfirebaugh
    Contributor

    iOS Beta-relevant tickets are #893 and #928, removing this meta ticket from the milestone.

  25. removed this from the milestone on Mar 6, 2015
  26. bleege commented on May 27, 2015

    @bleege
    Contributor

    Runtime Marker Images --> #1645

  27. incanus commented on Jul 4, 2015

    @incanus
    ContributorAuthor

    This master ticket is mostly implemented and the remaining details are tracked elsewhere and in active development. Closing.

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

    GL JS parityfeatureiOS

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions