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.
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:
Spatial indexing and/or pre-tiling of feature data.
Rendering of features with static styling (also hits user location use case).
Arbitrary styling of polylines.
Arbitrary imagery for points (sprite atlas etc.)
Animated native views for points (a là MKAnnotationView on iOS).
Let's treat clustering (#320) as a separate milestone.
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)?
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).
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.
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.
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).
So, Swift has served me well here, but moving to C++ now.
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...
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. =
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.
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
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!
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.
Activity
abhay-agarwal commentedon Nov 20, 2014
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)?
incanus commentedon Nov 21, 2014
Not sure on a timeline yet @abhay-agarwal, but stay tuned. For API, this will be more like MapKit (
MKAnnotationprotocol) than the SDK (RMAnnotationclass).aleksandr-vin commentedon Nov 28, 2014
Suddenly discovered "source type not implemented" for geojson. Really need it. Subscribed.
mourner commentedon Dec 9, 2014
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.
incanus commentedon Dec 9, 2014
I'm going to start taking a crack at this today.
incanus commentedon Dec 9, 2014
Making some headway on this. Believe it or not I'm using Swift to do it, since basically all of the
geojson-vtcode 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,
GeoJSONVToptions, etc. as well as the strongly typed array/dictionary containers required by C++ and countering the looseness of JS'sInt/Doublenumbers) and banging through it in a lightweight language is letting me move fast as I understand the code. Most of the way throughtile.js&index.jsthus far.incanus commentedon Dec 19, 2014
Feeling good here. Intermediary lib:
https://github.com/incanus/geojsonvt.swift
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
mourner commentedon Dec 19, 2014
@incanus Can't wait!
incanus commentedon Dec 19, 2014
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).
So, Swift has served me well here, but moving to C++ now.
bvjustin commentedon Dec 19, 2014
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.
In plain english, here's how I describe it:
mourner commentedon Dec 20, 2014
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!
incanus commentedon Dec 20, 2014
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. =
24 remaining items
ljbade commentedon Feb 12, 2015
@akbsteam This is basically the next item on our list of features to work on so keep an eye on the commits.
akbsteam commentedon Feb 12, 2015
@ljbade that's really good news; is there a vague-hand-wavy-ball-park timeline for this?
incanus commentedon Feb 12, 2015
@akbsteam I'd say on the order of 1-1.5 months.
akbsteam commentedon Feb 12, 2015
@incanus thanks; is there anything we can do in the interim? just to get us going on it ...
incanus commentedon Feb 12, 2015
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.
akbsteam commentedon Feb 12, 2015
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
bvjustin commentedon Feb 12, 2015
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!
incanus commentedon Feb 17, 2015
Lat/lon conversion stuff is in
masterand 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 thegeojsonvtbranch, so I'll be getting back into that in #893.jfirebaugh commentedon Mar 6, 2015
iOS Beta-relevant tickets are #893 and #928, removing this meta ticket from the milestone.
bleege commentedon May 27, 2015
Runtime Marker Images --> #1645
incanus commentedon Jul 4, 2015
This master ticket is mostly implemented and the remaining details are tracked elsewhere and in active development. Closing.