74 Commits

Author SHA1 Message Date
Phillip Kühne
9552dcad1a
Merge pull request #1 from michaeldever/sync-drawn-items
Enable sync between browsers and mobile in draw-tools plugin
2018-01-13 17:20:57 +01:00
Dave Ingram
7be0b0dc43 Merge pull request #1153 from rlc4/drawtools-enhancement
Shows larger color selector on drawtool options
2016-12-27 14:51:31 -08:00
rlc4
564a3f944c Shows larger color selector on drawtool options 2016-11-26 10:44:41 -08:00
Snedecor, David
ef6f1d0ed6 Fix regex to support intel links that do not have www (e.g. http://ingress.com/intel). 2016-10-17 11:25:05 -05:00
Dave Ingram
32e455f4e8 Update all URLs to match *.ingress.com (fixes failure to load) 2016-10-02 11:17:03 -07:00
Michael Dever
9112c65709 Enable sync between browsers and mobile in draw-tools plugin 2015-10-16 23:46:15 +01:00
fkloft
c19106fd34 [draw-tools] set new color properly
This change sets the new color on the cached options before passing them to the DrawControl. Otherwise, bookmark's auto-draw feature would use the wrong color
2015-05-16 16:22:31 +02:00
fkloft
eba7d388a0 Enable IITC on mission permalink
Hint: to change a lot of scripts, execute this:

    sed -r '/\/\/ @match\s+http:\/\/www.ingress.com\/intel/r /tmp/includefile' -i~ *.user.js

`/tmp/includefile` should contain these lines: (no trailing newline!)

    // @include        https://www.ingress.com/mission/*
    // @include        http://www.ingress.com/mission/*
    // @match          https://www.ingress.com/mission/*
    // @match          http://www.ingress.com/mission/*
2015-04-13 17:28:30 +02:00
fkloft
227d1b18ac [draw-tools] don't open dialog more than once 2015-02-21 14:01:09 +01:00
Jon Atkins
0d1f3f20d5 draw-tools plugin: support import from stock URL pls= parameter (as well as the existing json format) 2014-12-16 04:34:32 +00:00
Jon Atkins
186971d003 draw-tools plugin: add basic support for exporting as a stock intel URL, now that stock supports basic drawing
import to be done...
2014-12-15 23:24:37 +00:00
Mark F Guerra
b975b60967 Fix spelling error 2014-12-09 21:48:37 -05:00
Jon Atkins
66cc162e38 draw-tools: create clones of latlng objects - otherwise drawn items end up with copies of thise form portals, which editing can cause the portal merkers to move! 2014-10-21 19:36:51 +01:00
Jon Atkins
1ff02d02db Revert "[draw-tools] Fire native drawtools events in import/reset/snap; smaller bugfixes"
This reverts commit 1f8f5360406e1b2b0597915357096f968ed5fc0c.
2014-10-21 16:26:41 +01:00
fkloft
1f8f536040 [draw-tools] Fire native drawtools events in import/reset/snap; smaller bugfixes 2014-10-08 22:46:33 +02:00
Jon Atkins
b1e1258a28 draw-tools plugin: new feature - snap points to portals
useful to fix badly placed lines/polygons
2014-10-08 00:19:19 +01:00
fkloft
31c01d0b4c Add tooltips for accesskeys 2014-08-12 22:33:04 +02:00
Jon Atkins
2b0a66c295 bump draw-tools plugin version - forgotten in earlier commit 2014-07-05 05:07:53 +01:00
Jon Atkins
5905ca1b38 plugin: draw tools: register plugin-specific hook, and call when drawn items are added/edited/deleted, and also when imported and cleared 2014-07-04 19:39:04 +01:00
fkloft
ed4a04e97e Remove console logs 2014-07-03 21:46:44 +02:00
fkloft
c6392acb36 draw-tools: make dialog buttons tabbable 2014-07-03 11:34:32 +02:00
fkloft
d10a1b1685 More accesskeys
q - auto draw
x - DrawTools opt
v - toggle bookmarks
2014-07-03 01:03:55 +02:00
fkloft
ac50636138 bump version 2014-07-03 00:12:38 +02:00
fkloft
fa8cd5cfb0 Provide shortcuts for draw tools 2014-07-02 23:59:42 +02:00
fkloft
daf6d7b5a4 Forgot to update versions 2014-06-13 13:51:09 +02:00
fkloft
042129095b Fix some bugs regarding OMS by introducing a new helper function 2014-06-10 20:52:20 +02:00
fkloft
d3fca8612c Move OverlappingMarkerSpiderfier from player-tracker to core. Implement for bookmarks and draw tools
(Markers added to OMS shouldn't use the "click" event but "spiderfiedclick")
2014-06-09 21:08:06 +02:00
Jon Atkins
590eeb6876 plugin: remove excess draw-tools logging 2014-06-01 05:54:21 +01:00
Philipp Schaefer
903fa4f904 added support for draw tools file export on Android < 4.4 2014-02-13 23:59:44 +01:00
fkloft
c0b1ad987e [draw-tools] implement save to/load from storage on Android 2014-02-13 22:48:42 +01:00
fkloft
e1443e3648 [draw-tools] fix error on mobile (Leaflet is not available until setup() is called) 2014-02-13 22:47:52 +01:00
Marcus Winkler
2c743d0c17 replaced L.icon containing data-URI-images with L.divIcon 2014-02-06 00:40:54 +01:00
Marcus Winkler
adb0baa46f added color support to serializing/deserializing drawn markers 2014-02-01 15:45:48 +01:00
Marcus Winkler
706d48db00 implemented color choosing support for markers 2014-02-01 14:54:31 +01:00
Philipp Schaefer
f87e1621fd iitcm: use share interface on draw tools copy 2014-01-29 09:44:00 +01:00
Jon Atkins
5fc9bf7f8e draw tools:
- broken localStorage data won't prevent plugin from loading
- import: validate data better on import - json parse before erasing current items, try/catch around whole import process, and existing save method writes back to storage
2014-01-29 05:57:32 +00:00
Jon Atkins
f40cda384e draw-tools: use colour picker rather than input box 2014-01-29 05:31:23 +00:00
Jon Atkins
dbfaf19b91 fix colour setting, broken by my changes to #746 2014-01-29 02:56:40 +00:00
Jon Atkins
af491221dc some cleanups to #746 2014-01-29 02:17:51 +00:00
enigmaquip
09fa2be1fe Draw Tools Update
Updates to draw tools to add options menu (similar to bookmarks). Added
import/export/reset. Also added ability to set color of drawn items and
save color state
2014-01-25 09:51:23 -07:00
Mike Castle
511a02f9a1 Introduce some consistency in grammar and punctuation into @description. 2013-12-03 23:51:54 -08:00
Jon Atkins
ee484c54cb draw-tools: fix typo that broke editing 2013-10-17 17:20:45 +01:00
Jon Atkins
c3b6461d47 draw-tools: convert circles to geodesic mode, to match everything else
perhaps could be a bit cleaner, but it'll do for now...
2013-10-16 02:17:13 +01:00
Jon Atkins
fe1d7fb337 draw-tools: update edit colour to match that used while drawing - with only dashed lines being used as in stock Leaflet.Draw 2013-09-29 00:11:48 +01:00
Jon Atkins
b10116e95f change draw tools colour to a darker purple - matching the marker colour used
should make it easier to see against some maps that use a pink for some roads
2013-09-25 09:28:29 +01:00
Jon Atkins
75a985b8f5 add support for a snapPoint callback function to leaflet.draw, and use to snap points to portals
also enable repeat mode for marker placement
2013-09-25 08:28:25 +01:00
Jon Atkins
124242ed86 draw tools - first pass at saving/loading drawn items in localStorage 2013-08-03 05:52:52 +01:00
Jon Atkins
7d75a928cf plugin wrapper code - convert to use build.py macros. this ensures it's identical in all plugins, so the mobile app can remove/modify it without issues. also makes it easy to change if required 2013-06-14 20:27:54 +01:00
Jon Atkins
e3d8611f09 some plugin category additions/changes 2013-06-08 19:19:08 +01:00
Philipp Schaefer
51be5bee04 added plugin categories (see #358) 2013-06-08 18:50:26 +02:00