#mapstodon
3 entries · All tags
-
The most infuriating thing about trying to get a broken MacBook back to work is looking at this abomination.
For goodness sake, don’t stick a Mercator projection into a circle; please use an orthographic projection. #mapstodon
-
Really cool how widgets demonstrate the flexibility of @maparoni in such a pretty way:
- You can point it at arbitrary APIs by describing how to extract location information from JSON/XML APIs.
- Use formulas to filter/sort/style the locations.
- The widget then draws the map using an appropriate projection.(Years of working on this in my spare time… 🤪)
Many, many thanks to @nicklockwood for his brilliant and super fast Expression library: https://github.com/nicklockwood/Expression
Many, many thanks also to @simonbs for his excellent Runestone library: https://github.com/simonbs/Runestone
If anyone's curious about the map projections, I've open sourced the component for drawing them in #Swift: https://github.com/maparoni/GeoProjector
-
I've been playing around with map projections lately. Fascinating and mind-bending stuff, though the maths, trigonometry, and edge cases can be a challenge, and trying to fix the various glitches makes me my head hurt...
It's a rewarding exploration and I'm learning a ton. And may I say, #SwiftUI on the Mac is great for writing a helper app to test and debug this.
Library for it is up on GitHub already: https://github.com/maparoni/GeoProjector. If I manage to fix the bugs, I'll add this to @maparoni. #mapstodon
It has some bad polygon drawing glitches that make me doubt myself. Then I check a similar GitHub repo to see how they approached that particular problem, see that it has a TODO marker for it, and feel a bit better… still want those glitches squashed though!
Just realised that I can work around the worst glitches by using smaller polygons. In particular, rather than drawing entire land masses, I can draw countries, which then avoids most of the problems. Hooray. Can, meet road. *kick*





