Repository navigation
Conversation
|
I'm working on merging master (including the #140 merge) into this branch. |
|
I merged master, including #140 nested layers, into this branch. There was no visual change, but now I'm getting lots of errors like this: I think that's progress. It looks to me like I've probably omitted some critical step of porting the v0 to v1 style format change, but I'm not sure what that would be. |
|
The master branch using the v0 outdoors style is giving pretty similar warnings about layers not existing, and it's drawing a decent map, so I don't thing that's the problem. Hmm... This is an example of the errors from master by way of and this is what I got with a In both cases, I processed the console log with a text editor to remove duplicate warnings along with some stuff about sprites and fps measurements. |
|
I made some major improvement with 6918752 so that now Making the feature_type detection change caused a whole bunch of road and building stuff to show up like magic, and I'm still using an out of date copy of mapbox/gl-style |
|
Need to figure out why zero text labels are showing anywhere. |
|
Just updated the old style I was testing with to use a v0 -> v1 -> raw migrated version of the latest It's still messed up. Labels are missing, and all the fills and lines seem to be drawn with 100% opacity. It's also possible that things are not colored the way they are supposed to be. |
|
|
|
@wsnook I added the warnings as a debugging aid, to spot errors in styles early on. However, not all tiles contain all layers (they might be empty). In those cases, you can just ignore the warnings. |
|
@kkaefer Thanks. I found the constants to turn those on and off, and they are definitely useful at times.
If you have some time, could you maybe take a look at the code I've got and see if you can find an obvious reason why the opacity for fills and lines is not working correctly. It seems like everything is drawing opaque, or not drawing at all. There should be blending, but somehow I seem to have broken it. |
|
@incanus @edenh @kkaefer tl;dr New style format isn't happening this week (i.e. today), For a bit more detail, I was looking a bit just now at what will be involved to merge Justin's style transition code stuff from yesterday into the new style format branch... it looks like there will be some pretty major conflicts which will take time to sort out. There are also some key broken things which I need to track down with the v1 style format (labels, opacity / blending of layers). I'm expecting the fixes might be one-liners, but finding which lines will be some work. |
Conflicts: bin/style.js src/shader/shaders_gl.cpp src/shader/shaders_gles2.cpp src/style/style_parser.cpp
Bumps [node-fetch](https://github.com/node-fetch/node-fetch) from 2.6.5 to 2.6.7. - [Release notes](https://github.com/node-fetch/node-fetch/releases) - [Commits](node-fetch/node-fetch@v2.6.5...v2.6.7) --- updated-dependencies: - dependency-name: node-fetch dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

This is still kinda broken, but it's doing a lot of the things which are needed for the v1 new style format (#172). The current
bin/style.jsfor this branch is a copy of the outdoors-raw.js from the mapbox/gl-style test styles, and it uses nested layers for roads. Because this hasn't been merged with @kkaefer's nested layer code from #140, the roads stuff is broken, and there are probably other reasons as well.This is what it looks like now:

... it's interesting, but definitely wrong.
This is the checklist of things which I'm pretty sure that I've ported to llmr-native from @mourner's mapbox/mapbox-gl-js#363 (New style format). Many of the missing items were not implemented in llmr-native v0 to begin with, but there are probably also things which still can be done (line color pre-multiplying, etc), and which I don't really understand very well.
text,point,line, andfillfrom values to keyspoint-sizefrom a dictionary to an arrayspacingtopoint-spacingpaddingtopoint-paddingbucketFiltercomparison forsourceandfeature_typejointoline-joincaptoline-capmiterLimittoline-miter-limitroundLimittoline-round-limitnametoidcolortofill-colorstroketostroke-colorcolortoline-colorwidthtoline-widthoffsettoline-offsetimagetoline-imageimagetopoint-imagecolortopoint-colorradiustopoint-radiusinverttopoint-invertalignmenttopoint-alignmentrotatetopoint-rotatepathtotext-pathrotatetotext-rotatesizetotext-sizefontSizetotext-max-sizecolortotext-colorstroketotext-halo-colornametoidbucket === 'background'toid === 'background'text,point,line, andfillare now keys not valuestext,point,line, andfillare now keys instead of values oftypestructuretolayersbucket.sourcetobucket.filter.sourcenametoidclasseskey tostylesclassessyntax (value is array) tostylessyntax (value is dictionary)namekey and promote its old values,default,satellite, andtestto keys or, do it in a more general way where all top level keys become the name of a style.linearfunction to take a dictionary of parameters instead of an arrayexponentialfunction to take a dictionary of parameters instead of an arraymin()andstopsFn()functions workpathtotext-pathpaddingtotext-paddingmaxAngleDeltatotext-max-angletextMinDistancetotext-min-distancerotatetotext-rotatefontSizetotext-max-sizealwaysVisibletotext-always-visiblecolortofill-colorwidthtoline-width... and potentially also this:
I want to merge this with #140 and see how close that comes to fixing things, but after that I'm probably going to need help to get it working right.
/cc @edenh @kkaefer @ansis @mourner @incanus @nickidlugash