Feature: Worldmap screenfixed objects #262
Open
+124
−20
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What?
The
worldmap
is a perfect tool to display geographical objects on the map. However, there are in real also non-geographical objects in play. This PR brings a feature to show them too.Overview zoom - note the map legend on upper left:
Detailed zoom - note the map legend still on the place:
Why?
Real-world NOC (Network Operations Centre) needs to see a big picture at a glance. Perfectly tuned geographical map shows how's the network. In addition, things like
are very handy to show on the screen too, regardless of the viewport (map center, map zoom).
How?
Two maps - interactive and regular - are merged together.
On an interactive map, new option comes into play
screenfixed_objects_from_map
.Chosen regular map objects simply show on the screen. Since it's regular, objects positions are pixel-based (rather than coordinate-based) so that they're fixed on the screen.
Documentation in English updated on this.
Under the hood
The
ViewWorldmap
loads this map object and additionally referred regular map objects firing subsequentGET getMapObjects
request. Then regularobj.render();
draws them on the screen.