Skip to content

Commit d2af629

Browse files
authored
feat: merge pull request #268 from GIScience/drag-drop-II
make vertices draggable and droppable
2 parents 8b0dfe1 + a786e2c commit d2af629

File tree

10 files changed

+798
-381
lines changed

10 files changed

+798
-381
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ RELEASING:
4141
-->
4242

4343
## [Unreleased]
44+
- Make vertex marker on map drag and droppable, add live preview ([#204](https://github.com/GIScience/orstools-qgis-plugin/issues/204))
4445

4546
### Added
4647
- test correctness of processing algorithm output ([#283](https://github.com/GIScience/orstools-qgis-plugin/issues/283))

ORStools/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ def classFactory(iface): # pylint: disable=invalid-name
4848
# Define plugin wide constants
4949
PLUGIN_NAME = "ORS Tools"
5050
DEFAULT_COLOR = "#a8b1f5"
51+
ROUTE_COLOR = "#c62828"
5152
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
5253

5354
RESOURCE_PREFIX = ":plugins/ORStools/img/"

ORStools/common/client.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@
3535
from urllib.parse import urlencode
3636

3737
from qgis.PyQt.QtCore import QObject, pyqtSignal
38+
from qgis.utils import iface
39+
from qgis.core import Qgis
3840
from requests.utils import unquote_unreserved
3941

4042
from ORStools import __version__
@@ -180,6 +182,10 @@ def request(
180182
self.overQueryLimit.emit()
181183
logger.log(f"{e.__class__.__name__}: {str(e)}", 1)
182184

185+
iface.messageBar().pushMessage(
186+
"ORSTools", "Rate limit exceeded, retrying...", level=Qgis.Warning, duration=2
187+
)
188+
183189
return self.request(url, params, first_request_time, retry_counter + 1, post_json)
184190

185191
except exceptions.ApiError as e:

0 commit comments

Comments
 (0)