Steve Bennett

Results 224 comments of Steve Bennett

It's now published as [map-gl-utils](https://www.npmjs.com/package/map-gl-utils) - sorry for the confusion.

Thanks, updated that. Will ponder the other bit. I might just keep publishing it under both names.

I also would find it valuable if the layer name was included in the GeoJSON export. Either like this: ``` properties: { _layer: "myLayer" } ``` or like this: ```...

I don't currently need this feature. I don't think the workaround you mention would work. The use case was moving an arrow icon along the line. At each point, you...

I just ran into this as well. Here is my test case. ``` a = { "type": "Feature", "properties": }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 116.0006122594772, -31.87714864096409...

Not exactly minimal but: ``` {"type":"FeatureCollection","features":[{"type":"Feature","geometry":{"type":"LineString","coordinates":[[145.34046292304993,-37.85737162269892],[145.34046560525894,-37.85740338839779],[145.33954292535782,-37.8585109438722],[145.3394651412964,-37.858570238915846],[145.3398996591568,-37.858773535846204],[145.34051924943924,-37.8591864810098],[145.34064531326294,-37.859396129207425],[145.34054070711136,-37.86022412787682],[145.34113079309464,-37.8609843537584],[145.34264892339706,-37.86132105296641],[145.3430673480034,-37.86152645990395],[145.3432497382164,-37.861761512501204],[145.3434669971466,-37.862309965646226],[145.34492880105972,-37.86064341777292],[145.34520775079727,-37.85977518857622],[145.3454625606537,-37.85967142391486],[145.3454491496086,-37.85947448242115],[145.34577906131744,-37.859182245686526],[145.3467607498169,-37.85948930599275],[145.3476271033287,-37.859396129207425],[145.34757614135742,-37.85854694444009],[145.34745812416077,-37.85853423835931],[145.34591853618622,-37.85762363020013],[145.34569591283798,-37.857589746888756],[145.34539818763733,-37.85737162269892]]},"properties":{}},{"type":"Feature","geometry":{"type":"MultiLineString","coordinates":[[[145.33796310424805,-37.85673842357878],[145.33806771039963,-37.856768071819495],[145.3390011191368,-37.856935372382885],[145.34044951200485,-37.857145026983225],[145.34046560525894,-37.85740338839779],[145.34026712179184,-37.85764268955594]],[[145.3459507226944,-37.85764268955594],[145.34591853618622,-37.85762363020013],[145.34569591283798,-37.857589746888756],[145.34517288208008,-37.85720644084414],[145.34492880105972,-37.8571852636565],[145.34438967704773,-37.856878193752024],[145.34369498491287,-37.85677654274322],[145.34307539463043,-37.856533003297734],[145.34307807683945,-37.85629581628177],[145.34351527690887,-37.85576426046543],[145.34124612808228,-37.8537629502023],[145.33796310424805,-37.85319960862569]],[[145.33796310424805,-37.85296876440541],[145.33848613500595,-37.852343998899535],[145.33796310424805,-37.85204961602951]]]},"properties":{}},{"type":"Feature","geometry":{"type":"LineString","coordinates":[[145.34567445516586,-37.85757492293513],[145.34517288208008,-37.85720749970336],[145.34493014216423,-37.8571852636565],[145.34438967704773,-37.856878193752024],[145.34369632601738,-37.85677548387782],[145.34354209899902,-37.856715128524144]]},"properties":{}},{"type":"Feature","geometry":{"type":"LineString","coordinates":[[145.34046292304993,-37.85737162269892],[145.34046560525894,-37.85740338839779],[145.33954292535782,-37.8585109438722],[145.3394651412964,-37.858570238915846],[145.3398996591568,-37.858773535846204],[145.34051924943924,-37.8591864810098],[145.34064531326294,-37.859396129207425],[145.34054070711136,-37.86022412787682],[145.34113079309464,-37.8609843537584],[145.34264892339706,-37.86132105296641],[145.3430673480034,-37.86152645990395],[145.3432497382164,-37.861761512501204],[145.3434669971466,-37.862309965646226],[145.34492880105972,-37.86064341777292],[145.34520775079727,-37.85977518857622],[145.3454625606537,-37.85967142391486],[145.3454491496086,-37.85947448242115],[145.34577906131744,-37.859182245686526],[145.3467607498169,-37.85948930599275],[145.3476271033287,-37.859396129207425],[145.34757614135742,-37.85854694444009],[145.34745812416077,-37.85853423835931],[145.34591853618622,-37.85762363020013],[145.34569591283798,-37.857589746888756],[145.34539818763733,-37.85737162269892]]},"properties":{}},{"type":"Feature","geometry":{"type":"MultiLineString","coordinates":[[[145.33796310424805,-37.85673842357878],[145.33806771039963,-37.856768071819495],[145.3390011191368,-37.856935372382885],[145.34044951200485,-37.857145026983225],[145.34046560525894,-37.85740338839779],[145.34026712179184,-37.85764268955594]],[[145.3459507226944,-37.85764268955594],[145.34591853618622,-37.85762363020013],[145.34569591283798,-37.857589746888756],[145.34517288208008,-37.85720644084414],[145.34492880105972,-37.8571852636565],[145.34438967704773,-37.856878193752024],[145.34369498491287,-37.85677654274322],[145.34307539463043,-37.856533003297734],[145.34307807683945,-37.85629581628177],[145.34351527690887,-37.85576426046543],[145.34124612808228,-37.8537629502023],[145.33796310424805,-37.85319960862569]],[[145.33796310424805,-37.85296876440541],[145.33848613500595,-37.852343998899535],[145.33796310424805,-37.85204961602951]]]},"properties":{}},{"type":"Feature","geometry":{"type":"LineString","coordinates":[[145.34567445516586,-37.85757492293513],[145.34517288208008,-37.85720749970336],[145.34493014216423,-37.8571852636565],[145.34438967704773,-37.856878193752024],[145.34369632601738,-37.85677548387782],[145.34354209899902,-37.856715128524144]]},"properties":{}}]} ``` No doubt this particular example doesn't actually contain any usable polygons. But in that case it should just return an empty FeatureCollection instead...

Just jumping in to say I keep running into situations where a `coordMap` (or, per tmcw, `transformCoord`) would be handy. I'm loading some big GeoJSONs into the browser and doing...

I'm having an issue that may or may not be this one. But I wanted to chime in and say: this is definitely a workflow that I expect to work....

So, having `line-fill-*` mean the interior color and properties of the line, and `line-stroke-*` be the casing properties? I see the logic, but it seems a bit non-conventional. Are there...

>Where are you seeing mention of line-fill-*? Sorry, looks like I extrapolated incorrectly. >In the other systems though, "stroke" is used to denote what we're calling "line", and there's no...