tag:blogger.com,1999:blog-7317348216081392029.post7248071343727995217..comments2024-02-10T00:32:23.158-08:00Comments on Things I do: Client side rendering of our map using MapCSS!Jonas Danielssonhttp://www.blogger.com/profile/04799688851937428458noreply@blogger.comBlogger10125tag:blogger.com,1999:blog-7317348216081392029.post-77725208249080743952015-05-07T01:54:06.557-07:002015-05-07T01:54:06.557-07:00I agree about libchamplain, it will need some love...I agree about libchamplain, it will need some love and attention in order to bring it up to what we would want for a smooth and fast Maps app. It is an awesome library, and I love it. But I agree with you. And I think Jiri, the maintainer does as well.<br /><br />I think the tiles are not loaded in parallel.<br /><br />The problem, as always, is developer bandwidth. But maybe when GSK arrives we can take a stab at writing something that fills the need for Maps, and maybe, yes, isolate a 2D canvas thingie.<br /><br />Thanks!Jonas Danielssonhttps://www.blogger.com/profile/04799688851937428458noreply@blogger.comtag:blogger.com,1999:blog-7317348216081392029.post-60496143855438387732015-05-07T01:33:37.637-07:002015-05-07T01:33:37.637-07:00I don't know if it would've been a good id...I don't know if it would've been a good idea to use mapbox ... I think it's incredible what you've been able to achieve in what little code, proves the power of the toolkit I guess.<br /><br />I like the fact that libchamplain exists and I knew it (despite never having used it). But it feels slower and less responsive than even rendering the map on osm.org with leaflet.js... Are tiles not downloaded in parallel?<br /><br />Maybe it would be a good idea to isolate the parts that do the 2D canvas rendering from libchamplain and try to improve the user experience there. I for one am a guy who is all for aggressive caching and prefetching :) I would love to have your thoughts on that and if it would be useful or duplication?<br /><br />I am sorry if my comments come out as negative but I actually love gnome maps! :)<br /><br />cheers,<br /><br />wolfFrank Muellerhttps://www.blogger.com/profile/18372248871611624522noreply@blogger.comtag:blogger.com,1999:blog-7317348216081392029.post-79670660768987884162015-05-07T01:20:05.961-07:002015-05-07T01:20:05.961-07:00Hi,
No I do not use mapbox-gl. Maybe I should'...Hi,<br /><br />No I do not use mapbox-gl. Maybe I should've. But I couldn't really get it to build. And it was all C++ and I couldn't really grok it easily. I do not have any time in my life to sit and stare att stuff for a long time.<br /><br />I couldn't really see how to package/wrap/fit the mapbox-gl code into a GNOME:y infrastructure. So it is pretty much written from scratch... sorry.<br /><br />There is a Map widget, libchamplain, that we use in GNOME Maps. It is also used in GNOME Contacts to show a map for contacts with an address. And I have written a champlain renderer (see the Maps wip-branch) that "just calls a render function" pretty much. Champlain also does caching. No pre-rendering tho.<br /><br />Progressive rendering... maybe.<br /><br />The text is pretty much a hack. They are not rendered as part of the rest. Since the renderer right now only operates on one tile. And text does not respect tile-boundries :) So the texts are added after by the Champlain-renderer. The fact that they appear before is because I havent't made that layer obey Champlains trix of fading the tiles in, I think.<br /><br />Thanks for your comments!Jonas Danielssonhttps://www.blogger.com/profile/04799688851937428458noreply@blogger.comtag:blogger.com,1999:blog-7317348216081392029.post-22562380797403277542015-05-07T01:11:36.298-07:002015-05-07T01:11:36.298-07:00Incredibly awesome to see this!
Some questions:
...Incredibly awesome to see this! <br /><br />Some questions:<br />Did you use mapbox-gl? Or was it not possible because of license issues?<br /><br />I am wondering if progressive rendering would enhance the user experience (ie. first render streets, than buildings). I noticed that streetnames are rendered first.<br /><br />Also I am thinking it might be beneficial to add an abstraction to GTK, something like a InteractiveCanvas implementation which implements all the pan and zoom stuff and just calls a render function. <br /><br />It could also be used by programs such as evince or gnome photos.<br /><br />The main functions would be caching and prerendering of tiles. I think it would be cool to have a zoom function that scales the previous tile(s) first and then waits for the rerender instead of showing a blank tile and wait. <br /><br />- WolfFrank Muellerhttps://www.blogger.com/profile/18372248871611624522noreply@blogger.comtag:blogger.com,1999:blog-7317348216081392029.post-71109695098676987862015-05-07T01:05:38.937-07:002015-05-07T01:05:38.937-07:00This comment has been removed by the author.Frank Muellerhttps://www.blogger.com/profile/18372248871611624522noreply@blogger.comtag:blogger.com,1999:blog-7317348216081392029.post-16079187800626925012015-05-06T03:31:55.440-07:002015-05-06T03:31:55.440-07:00The vector-tiles comes with a "resolution&quo...The vector-tiles comes with a "resolution" of 4096x4096 pixels per tile, in the videos and pictures in this post they are scaled down to 256x256.Jonas Danielssonhttps://www.blogger.com/profile/04799688851937428458noreply@blogger.comtag:blogger.com,1999:blog-7317348216081392029.post-11764179524009549742015-05-06T03:30:55.932-07:002015-05-06T03:30:55.932-07:00Thanks!
This would be possible, but you could als...Thanks!<br /><br />This would be possible, but you could also do it sort of yourself using the tools in vector-tile-glib, or writing a small tool that would do it, if you specify more what it is you want on Github or in a mail to me, we could see what we can do!Jonas Danielssonhttps://www.blogger.com/profile/04799688851937428458noreply@blogger.comtag:blogger.com,1999:blog-7317348216081392029.post-53209778071227113132015-05-06T02:58:41.864-07:002015-05-06T02:58:41.864-07:00This is very cool. I am looking for a tool to expo...This is very cool. I am looking for a tool to export maps in a higher resolution then the displayed one for integrating them to photo books. Afaik at the moment no such tool exists. <br />I would really like to have a Button in GNOME Maps to Export the map as PNG with entering the DPI, and perhaps a save as SVG, if it is possible.tobiashttps://www.blogger.com/profile/17226362491023240261noreply@blogger.comtag:blogger.com,1999:blog-7317348216081392029.post-12877255194666458092015-05-06T00:45:35.567-07:002015-05-06T00:45:35.567-07:00Thanks!
I think your use case would be better sol...Thanks!<br /><br />I think your use case would be better solved with being able to print a route? So you could print it to PDF maybe?<br /><br />https://bugzilla.gnome.org/show_bug.cgi?id=746790<br /><br />Hopefully we can get that in during the 3.18 cycle.Jonas Danielssonhttps://www.blogger.com/profile/04799688851937428458noreply@blogger.comtag:blogger.com,1999:blog-7317348216081392029.post-69143021130309468122015-05-06T00:32:47.973-07:002015-05-06T00:32:47.973-07:00That is awesome progress jonas! Looking forward to...That is awesome progress jonas! Looking forward to try this out (:<br /><br />I'd be super excited If you make it possible to save as PNG, My phone has no internet connection so I usually just load pictures of maps on it with directions when before I go on a trip and such. d:Bastianhttps://www.blogger.com/profile/13092621198904234208noreply@blogger.com