Commit Graph

401 Commits

Author SHA1 Message Date
Dave Conway-Jones
010a9aad21
Fix to show custom layer if it is the only one defined
to close #230
2023-04-26 10:52:53 +01:00
Richard Wiseman
7ee1204cf1
Update worldmap.js to allow "flying" to new bounds (#225)
* Update worldmap.js to allow "flying" to new bounds

When the bounds command is used, give the option to "fly" (a Leaflet term meaning to animate the change of bounds: zoom out, pan, zoom in) to the new bounds rather than simply repositioning the map.  This is done very simply by providing a "fly" flag that, with a truthy value, calls map.flyToBounds instead of map.fitBounds.

There are 10 other places where map.fitBounds is used, but for my purposes, I only want to "fly" to the new bounds when I explicitly set the bounds through this command.  So perhaps these changes could/should be used in other scenarios too.

* Update worldmap.js to allow flying to bounds

I've changed almost every instance of fitBounds so that, if the "fly" property is true, then it will use flyToBounds instead.

I didn't change the search, where it does fitBounds and then panTo, as it wasn't clear how/whether "fly" could be provided there.

I also fixed a few bugs where it was checking for "fit" being a property, but then didn't check its value!  So you could provide fit:false and it would still be treated as fit:true!
2023-04-11 14:48:50 +01:00
Dave Conway-Jones
7d9c9a6603
Add Awareness for sidc icons just off edge of map (#228)
* Update worldmap.js

add edge sidc icons

* Bump edge awareness for release
2023-04-04 18:57:18 +01:00
Dave Conway-Jones
8627c03a2f
Let clickable property also work for markers 2023-03-26 15:06:10 +01:00
Richard Wiseman
77083c1ac4
Allow the icon URL to be only a full path (#223) 2023-03-09 16:55:09 +00:00
Dave Conway-Jones
1cbefdcaa5
let shapes create click event, fix heatmap delete point bug
to close #221 and close #222
2023-01-21 13:35:20 +00:00
Dave Conway-Jones
9667df12f3
Fix split map position in iframe 2022-12-16 18:28:17 +00:00
Dave Conway-Jones
23a0aa12e1
Let heatmap be completely replaced 2022-12-13 15:45:27 +00:00
Dave Conway-Jones
1bdc44f4f9
delete markers from heatmap when removed.
to close #218
bump for release
2022-12-13 14:40:36 +00:00
Dave Conway-Jones
4e18987139
Fix numerous bad || assignments
to close #219
2022-12-13 10:47:39 +00:00
Dave Conway-Jones
efc5d49f41
Undo previous fix. Not so nice looking
to Close #217
2022-12-01 12:48:16 +00:00
Dave Conway-Jones
d6d2359016
More Antimeridian wrikles
to close #216
2022-11-30 15:52:29 +00:00
Dave Conway-Jones
937ec40cb6
Add route distance and duration
based on PR #215
2022-11-23 10:13:51 +00:00
Dave Conway-Jones
97edd95ddd
Merge branch 'master' of https://github.com/dceejay/RedMap 2022-11-23 09:43:46 +00:00
smallf00t
606cb2d875
Update worldmap.js (#215) 2022-11-23 09:43:32 +00:00
Dave Conway-Jones
7b772d4e6c
ensure feedback value is passed back
to close #212
2022-11-23 09:42:03 +00:00
Dave Conway-Jones
ed728eb4db
Fix missing drawing type property
to close #213
2022-11-22 14:26:52 +00:00
Dave Conway-Jones
89569f5827
Use a better KML parsing library
to close #211
2022-11-10 11:08:18 +00:00
Dave Conway-Jones
6236928ff5
Only send bounds if they have changed
to close Issue #209
2022-10-26 17:17:22 +01:00
Zafrir Ron
6f28ffc91e
optional ruler (#206) 2022-09-23 13:41:24 +01:00
Dave Conway-Jones
ab16942e34
Add location toggle and trackme command options, also remove historic layers
to close #202 and close #201
2022-08-23 12:09:14 +01:00
Dave Conway-Jones
5d1d99b479
fix buttons 2022-06-10 14:05:30 +01:00
Dave Conway-Jones
5787896cd5
let button settings be an array 2022-06-08 19:18:11 +01:00
Dave Conway-Jones
0e6c2505b2
Fix layer command for non core base layers
to Close #195
2022-04-08 11:53:10 +01:00
Dave Conway-Jones
c4bdb031e5
better geojson sidc icon handling 2022-04-02 23:52:27 +01:00
Dave Conway-Jones
70bc32d049
Add 3d view to dashboard node, better key handling/errors 2022-03-07 21:04:08 +00:00
Dave Conway-Jones
71111f8c8a
better smoothing for greatcircles 2022-02-24 21:28:54 +00:00
Dave Conway-Jones
0b259013bb
Add support for gc crossing antimeridian 2022-02-23 15:42:57 +00:00
Dave Conway-Jones
b5553b2acb
resend markers for late joiners 2022-02-04 11:24:48 +00:00
Dave Conway-Jones
6b898e6d3f
Add QTH option, and try connect when Ready 2022-01-29 17:49:36 +00:00
Dave Conway-Jones
eb3d4bb04e
Update worldmap.js 2022-01-25 10:03:14 +00:00
Dave Conway-Jones
cd48c56e12
Update worldmap.js 2022-01-25 09:46:19 +00:00
Dave Conway-Jones
3b1cb2056f
ad UTM and MGRS to coordinate display options 2022-01-24 09:09:14 +00:00
Dave Conway-Jones
f005ae2f4d
Fix 3d stuff to work again... vaguely... 2022-01-16 17:25:05 +00:00
Dave Conway-Jones
7d0badd134
Add bounds command capability 2022-01-16 15:35:27 +00:00
Dave Conway-Jones
49198b79d2
Fix geojson multiline fill mistake 2022-01-12 17:05:44 +00:00
Dave Conway-Jones
19def98cf8
tweak drawing colours 2022-01-10 15:48:26 +00:00
Dave Conway-Jones
84307ebd19
fix circle/ellipse accuracy 2022-01-08 12:04:33 +00:00
Dave Conway-Jones
0fa462c4c0
tweak greatcircle readme 2022-01-02 16:02:02 +00:00
Dave Conway-Jones
80e944afa8
Add greatcircle, fix httpRoot, drawing colours
bump packages
2021-12-30 12:29:05 +00:00
Dave Conway-Jones
5010c596a2
Fix addtoheatmap - to close #192 2021-12-21 17:22:23 +00:00
Dave Conway-Jones
fac1876000
add line and area fit to readme 2021-12-21 15:44:56 +00:00
Dave Conway-Jones
cbbd0bd0cb
fix area stroke opacity 2021-12-21 13:29:36 +00:00
Dave Conway-Jones
5048d111e1
Fix loading of maps 2021-12-17 22:56:58 +00:00
Dave Conway-Jones
1a4951594d
Fix saving fo custom map option 2021-12-16 21:45:21 +00:00
Dave Conway-Jones
8aa754132a
Bump for dynamic logo PR
slight tidy and add to README
2021-12-05 17:05:30 +00:00
Dave Conway-Jones
140c5234e4
only show geoobject popup if it has any contents 2021-12-05 09:30:15 +00:00
smallf00t
f62a8e9445
Hide or customize "Node-RED Map All The Things" Header (#188)
Add command listening to topbar logo
2021-12-05 09:02:31 +00:00
Dave Conway-Jones
e54b4dbef5
Update worldmap.js 2021-11-28 19:38:25 +00:00
Dave Conway-Jones
182c38b376
tidy up layers event 2021-11-26 16:35:14 +00:00
Dave Conway-Jones
fdfe82ec37
Let worldmap-in layer events be selectable 2021-11-26 12:47:41 +00:00
Dave Conway-Jones
2363a767b9
Fix Add icon menu to include sidc link 2021-11-24 20:20:55 +00:00
Dave Conway-Jones
cf2d06c543
let SDIC be 4 chars 2021-11-24 19:47:01 +00:00
Dave Conway-Jones
7d7b2e2e6e
Fix emoji handling (again) 2021-11-19 11:19:44 +00:00
Dave Conway-Jones
39271a6179
fix handling of old ship nav layer 2021-11-10 09:39:36 +00:00
Dave Conway-Jones
ac8bc0f499
Update worldmap.css 2021-11-06 21:11:39 +00:00
Dave Conway-Jones
a13ab85372
Better handling of random geojson with more properties 2021-11-06 12:03:42 +00:00
Dave Conway-Jones
0a04418eee
Fix leader length, add transparent pixels option 2021-11-05 13:02:10 +00:00
Dave Conway-Jones
4fb075d28c
add zoom to bounds, fix max zoom on layers 2021-11-03 21:28:22 +00:00
Dave Conway-Jones
3b69789909
fix ship overlay name 2021-11-03 15:13:51 +00:00
Dave Conway-Jones
fd18abd294
Events filters and Map Selection (#180)
* add filter for bounds but sort of wrong way round

* Better go at event filters

* Let user pick layers and overlays at config time

* update graticule, fix css

* Update package.json

* fix initial basemap old maps

* tidy up
2021-11-02 16:13:47 +00:00
Dave Conway-Jones
374f7002d2
Add pbf layer support
to close #123
2021-10-29 11:30:03 +01:00
Dave Conway-Jones
0faebaa83c
bump leaflet level to 1.7 2021-10-25 10:02:31 +01:00
Dave Conway-Jones
4a7af58ded
fix missing videoUrl br tag 2021-10-24 23:36:39 +01:00
Dave Conway-Jones
8d7e735a25
let fill Opacity be 0
to close #179
2021-10-24 16:04:44 +01:00
Dave Conway-Jones
cdcccb296b
Update worldmap.js 2021-10-22 23:40:32 +01:00
Dave Conway-Jones
8cdd679e18
Add bounds event on zoom and move
to close #178
2021-10-22 17:45:35 +01:00
Dave Conway-Jones
fef76473c3
better feedback of clicks and moves 2021-10-21 22:57:51 +01:00
Dave Conway-Jones
32f74a25ab
Add smallplane icon 2021-10-17 17:12:05 +01:00
Dave Conway-Jones
ab44c8900d
improve test for emoji like before conversion 2021-10-13 22:41:24 +01:00
Dave Conway-Jones
8e98bad30f
more complete feedback on click
better popup image sizing
2021-10-12 21:19:00 +01:00
Dave Conway-Jones
59941f705c
add turf package to included deps 2021-10-04 09:41:46 +01:00
Dave Conway-Jones
704b6edcb6
fix polygon to always have delete option... (maybe) 2021-10-02 13:24:52 +01:00
Dave Conway-Jones
64db718fea
better handling of unpacked kmz files 2021-09-28 17:58:10 +01:00
Dave Conway-Jones
35beaace78
bump version 2021-09-16 16:10:58 +01:00
Dave Conway-Jones
bdb8e5a074
spellings 2021-09-11 13:50:27 +01:00
Dave Conway-Jones
71a979b75d
tidy geojson handling slughtly. 2021-09-10 14:57:52 +01:00
Dave Conway-Jones
6234299fd4
tweaks 2021-09-01 15:14:30 +01:00
Dave Conway-Jones
fc99940d99
Fix SIDC label icons 2021-07-02 13:15:03 +01:00
Dave Conway-Jones
2335e7ed9a
let clear heatmap command clear heatmap...
to address Issue #170
2021-06-25 15:38:34 +01:00
Dave Conway-Jones
2c38c62bd9
ongoing nits re sidc icon size 2021-06-24 16:14:58 +01:00
Dave Conway-Jones
9c38c4b43f
Fix altitude handling 2021-06-04 15:34:24 +01:00
Dave Conway-Jones
9592153fe8
fix panit, use alt units, tweak popup alignments 2021-06-04 10:40:55 +01:00
Dave Conway-Jones
ae359e37d0
let speed have units 2021-05-26 13:34:34 +01:00
Dave Conway-Jones
3a5022e360
Let geojsn features optionally be clickable 2021-05-19 18:59:57 +01:00
Dave Conway-Jones
6f07b52b67
Fix list of maps to be in sync
to close #166
2021-05-14 11:20:55 +01:00
Dave Conway-Jones
88abc87dfd
Fix non-propagation of layer property 2021-04-20 15:08:38 +01:00
Dave Conway-Jones
a0ea7a2817
fix map zoom for ocean, tweak mayflower icon size 2021-04-13 10:36:15 +01:00
Dave Conway-Jones
606e8edce0
Add mayflower icon 2021-04-12 17:42:47 +01:00
Dave Conway-Jones
46d76ab7dd
Add any params to connect message 2021-03-31 21:33:07 +01:00
Dave Conway-Jones
00417276ff
Update leaflet-velocity.min.js 2021-03-29 08:54:11 +01:00
Dave Conway-Jones
d4cdc48a2f
hide default online layer options if we aren't online 2021-03-26 17:11:10 +00:00
Dave Conway-Jones
9b7fa84554
add rainfall overlay - remove old overlays that don't load 2021-03-26 12:22:59 +00:00
Dave Conway-Jones
3dfa46ecc1
let weight specify arc thickness
to close #161
2021-03-24 17:45:39 +00:00
Dave Conway-Jones
3b1f5767a7
add popup to KML points with name, description and lat, lon 2021-03-21 17:07:06 +00:00
Dave Conway-Jones
2d2ef08ce2
restore last position if in iframe/dashboard
let zoom snap to 0.1  values
2021-03-11 12:44:47 +00:00
meeki007
cfb9d96215
enhancement - multiple weblink's (#155)
* enhancement - Multiple weblink's
2021-03-07 16:52:27 +00:00
Dave Conway-Jones
f68cee3dce
Fix leader length to be one minute if speed in m/s
Update readme re docker mapserver hints
2021-03-04 11:32:28 +00:00
Dave Conway-Jones
3345189d32
Slightly better geojson (make url property into link), Make title first in list 2021-02-23 08:58:41 +00:00
Dave Conway-Jones
5c065627c2
better check of type property before assuming geojson
to close #153
2021-02-21 12:41:22 +00:00