58 Commits

Author SHA1 Message Date
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
Jon Atkins
9dffadada6 plugins - ensure they pass a default for shown/hidden when being added to the map 2013-05-24 15:54:05 +01:00
Jon Atkins
84cb73d8e1 add @grant none to userscript headers - as recommended by greasemonkey 2013-05-20 03:12:19 +01:00
Jon Atkins
6e8dd15052 update several plugins to use window.addLayerGroup, instead of manually adding the layer to the map and Layer control.
this gives automatic handling of remembering shown/hidden layers

also, draw tools plugin hides the controls while the drawn items layer is hidden
2013-05-18 03:42:56 +01:00
Jon Atkins
22aaa10ed8 bump draw tools version number, due to the major leaflet.draw upgrade 2013-05-12 18:59:37 +01:00
Jon Atkins
d1ef19784f fix draw tools. the leaflet upgrade broke it, so the leaflet.draw needed updating too
some of the hacks to do snap-to on points have been removed, at least for now - they needed major rework to fit in
additionally other customisations added are also removed - this is basically now stock leaflet.draw with edit-mode enabled
2013-05-12 18:54:03 +01:00
Jon Atkins
2509032561 keep plugin version number as a.b.c.date.time format - otherwise 0.3.20121231.123456 is higher than 0.3.1.20121231.123456 2013-03-25 14:48:10 +00:00
Stefan Breunig
450ad8caf3 Update draw-tools.user.js 2013-03-25 09:40:25 +01:00
Kevin
67fe78af04 nits 2013-03-25 01:18:46 -07:00
Kevin
3f719cc630 Update draw tools plugin to include dependencies 2013-03-24 23:01:27 -07:00
Jon Atkins
380bbfda32 more build tweaks
- make update URLS https - required by firefox+greasemonkey
- add build name + date/time to description of all plugins, and moved to front for main IITC
- ensure all plugins have a A.B.C. version number format - required now they append the date+time digits
- no smooth upgrade path from current 'dist' folder - so changed to 'release'. users will have to manually update this time, but will be fine fron now onwards (in theory!)
2013-03-20 04:34:16 +00:00
Jon Atkins
46bfed5d2f use @@..@@ replacements for hard-coded URLs in plugins 2013-03-19 22:51:51 +00:00
Jon Atkins
4ce0da5056 large chunk of work towards a nicer build system
- plugins are now parsed for @@..@@ replacements
- main script and plugins have separate .meta.js files created - less web server load for update checks
- build script has variables for resource URL, update URL, etc, substituted via @@..@@ into main script and all plugins
2013-03-19 22:39:16 +00:00
Jon Atkins
8c40a72e27 fix some more github URLs 2013-03-16 21:03:15 +00:00
Jon Atkins
1d4d125605 update plugin URLS for my branch + dist server
bump version numbers for this reason
also, allow plugins for both http and https URLs, in preperation for supporting both
2013-03-16 19:59:46 +00:00
Stefan Breunig
cba504e55c remove URL to image files for draw tools; that path is set in main now 2013-02-26 22:26:00 +01:00
Stefan Breunig
c8f74a1fe6 use correct base url for draw plugin 2013-02-26 20:08:13 +01:00