| Summary: | would like to have command line option to make geo-uri also set a bookmark | ||
|---|---|---|---|
| Product: | [Applications] marble | Reporter: | Niels Elgaard <elgaard> |
| Component: | general | Assignee: | marble-bugs |
| Status: | REPORTED --- | ||
| Severity: | wishlist | CC: | nienhueser |
| Priority: | NOR | ||
| Version First Reported In: | 1.8 (KDE 4.13) | ||
| Target Milestone: | --- | ||
| Platform: | Ubuntu | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Niels Elgaard
2015-07-22 03:18:30 UTC
Thanks for the suggestion. Can you please clarify whether you want A) the place pointed to with geo-uri to become better visible after opening or B) the ability to easily create bookmarks from outside I'm asking because A) is more a rendering improvement, while B) is a tooling question (e.g. could be done by a separate tool, or by Marble in a headless mode, or by using Marble's DBus interface) Please reopen when commenting, thanks. Yes, maybe it should be done as a separate tool.
I just want to be able to click on geo link, have it open in marble, with a marker, so I can see precisely where the POI is.
I looked into using qdbus:
==
#!/bin/bash
geo=${1#geo:}
lon=${geo%,*}
lat=${geo#*,}
marble_pid="$(pidof marble)"
if [ ${marble_pid}x == x ]; then
marble&
marble_pid=$!
fi
qdbus org.kde.marble-${marble_pid} /MarbleWidget org.kde.MarbleWidget.setShowPlaces true
alias MCALL='qdbus org.kde.marble-${marble_pid} /MarbleWidget'
qdbus org.kde.marble-${marble_pid} /MarbleWidget org.kde.MarbleWidget.centerOn "$lat" "$lon"
qdbus org.kde.marble-${marble_pid} /MarbleWidget org.kde.MarbleWidget.setShowCrosshairs true
# would like to do something like:
qdbus org.kde.marble-${marble_pid} /MarbleWidget addPlaceMarkData ...
# but not accessible from qdbus
==
This would have the advantage that multiple POI's could be opened, e.g., to show all restaurants in ca city.
|