Generalize map implementations
See original GitHub issueFrom time to time there are issues about inconsistencies in the map implementation (e.g. #11847, #11571, #11585, oh damn and probably much more…). And indeed, we currently have all code parts two times, which both need to be maintained and kept in sync.
I thought, we already have issues about this topic, but I couldn’t find any…
It seems, someone had just copied all code parts back in the days instead of creating a good abstraction layer. Can someone please step into this, and do a better job than it is done currently?
Example: Two totally equal code parts which could be moved into a unified class…
Google Map (known as CGeoMap ) |
OSM Map (known as NewMap ) |
---|---|
Oh, and while being on the way, also the class/package names should be changed as described in #6951
Issue Analytics
- State:
- Created 2 years ago
- Comments:8 (8 by maintainers)
Top Results From Across the Web
Map Generalization | GEOG 486: Cartography and Visualization
Generalization permits cartographers to construct maps with an appropriate level of detail. In Lesson 6, we discussed the necessity of using the correct ......
Read more >Cartographic generalization - Wikipedia
Cartographic generalization, or map generalization, includes all changes in a map that are made when one derives a smaller-scale map from a larger-scale...
Read more >Generalized Maps: User Manual - CGAL
A generalized map is an edge-centered data structure, describing the cells and the incidence and adjacency relations. It uses only one basic element...
Read more >Map Generalization - an overview | ScienceDirect Topics
Generalisation is the abstraction of map objects aiming at a simplification of the map content in order to fit the scale or purpose...
Read more >Cartographic generalization - GIS Wiki | The GIS Encyclopedia
Cartographic generalization is the process of controlling the amount of detailed information portrayed in a map. This also includes using ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Sneak preview: I’m working on a unified map approach integrating Google Maps v2 API and Mapsforge VTM. This is intended to ultimately replace both
CGeoMap
andNewMap
.Benefits I’m striving for are:
Currently it’s more like a pet project for me I’m working on from time to time, and I will for sure need some help along the way at some point in time. So far it’s very basic what I have right now, and it will probably take months to be completed (or maybe never be).
I’m currently able to display Google Maps, bitmap Mapsforge maps from online sources, vector maps from Mapsforge .map files. I can (mostly) switch between different types of maps, and I can pan, zoom and rotate maps.
Example for a rotated bitmap Mapsforge map from openstreetmap.org. If you rotate a map created from an offline map file, labels will adjust automatically (e. g. city names always being horizontally).
@cgeo/core: How shall we continue here?
Unifying the maps is a rather large task, which cannot be completed in a single huge step. We have a quite large PR (#12829) in line, which I haven’t merged so far in expectation of soon branching for a new release, to merge it after cutting off the new release branch. But since that hadn’t come as timely as expected (no offense meant), I’d like to propose a different proceeding here.
My proposal would be:
If no one objects I would continue this path starting next week.