Commit Graph

547 Commits

Author SHA1 Message Date
Dave Conway-Jones
5bef32c0f4
Update package.json 2023-10-17 10:03:47 +01:00
Dave Conway-Jones
7cddcf49cf
add cog,sog,altft parameters 2023-10-17 10:03:08 +01:00
Dave Conway-Jones
ac40ce1061
Tidy up readme, fix example
general linting
2023-10-15 15:26:05 +01:00
Dave Conway-Jones
4b4a6ef94e
let areas, lines etc have tooltip 2023-10-13 11:22:29 +01:00
Dave Conway-Jones
0ddb5aadd7
let users be able to define variables in context menus and retain values
fix map rotation bug
bump to 4.0
2023-10-10 14:52:14 +01:00
Dave Conway-Jones
7105e2715b
Merge branch 'master' of https://github.com/dceejay/RedMap 2023-10-07 22:38:59 +01:00
Zafrir Ron
63af8b25c9
add code inject option (#205) 2023-10-07 22:37:15 +01:00
Dave Conway-Jones
668e232718
let user set context menu for drawings
(pretty ugly but)
2023-10-07 14:15:31 +01:00
Dave Conway-Jones
b6bbdb64ef
ensure delete drawing appears under drawing events 2023-10-06 18:38:34 +01:00
Dave Conway-Jones
4f9956d474
Sync up drawing sessions across browsers 2023-10-06 15:31:24 +01:00
Dave Conway-Jones
964bbfcf66 Add esri example 2023-10-06 09:22:06 +01:00
Dave Conway-Jones
d964482414 improve geojson overlay rendering options
update readme
2023-10-05 14:57:10 +01:00
Dave Conway-Jones
f75b417a0b Add esri feature layer 2023-10-04 17:31:32 +01:00
Dave Conway-Jones
37dc50ceea
Merge branch 'master' of https://github.com/dceejay/RedMap 2023-10-03 13:33:01 +01:00
Dave Conway-Jones
c740dfa783
bump to Leaflet 1.94, replace draw with geoman, and add rotation (#249)
* Handle drawing double click better

* bump to 1.9.4, add geoman and rotation

remove Draw (use geoman instead)
2023-10-03 13:28:09 +01:00
Dave Conway-Jones
b984e32ab4
Handle drawing double click better 2023-09-30 17:48:33 +01:00
Dave Conway-Jones
ee40ae2a69
revert leaflet libs so draw works again 2023-09-13 14:18:03 +01:00
Dave Conway-Jones
3ecaffeb63
Better kmz library, remove old library 2023-09-01 13:28:24 +01:00
Dave Conway-Jones
21e56f9afb
Fixup more kml markup and geojson drag drop 2023-08-26 18:00:56 +01:00
Dave Conway-Jones
d3259b7189
oops 2023-08-25 14:35:44 +01:00
Dave Conway-Jones
4aa3403572
Handle KMZ files 2023-08-24 21:52:32 +01:00
Dave Conway-Jones
164c6dcedb
More TAK msg handling
spots, waypoints, alerts, sensors
2023-08-21 16:07:18 +01:00
Dave Conway-Jones
fa242b2887
convert color names to hex when adding points 2023-08-14 15:08:20 +01:00
Dave Conway-Jones
f4696a1ad4
Updates leaflet to latest stable 1.9.4 2023-08-14 09:24:45 +01:00
Dave Conway-Jones
645f6c43ad
Make cot timestamps more readable 2023-08-13 14:06:05 +01:00
Dave Conway-Jones
17b83b1180
fix missing countries overlay when starting disconnected 2023-08-12 16:24:26 +01:00
Dave Conway-Jones
942186035d
Add TAK input capability 2023-08-11 15:21:34 +01:00
Dave Conway-Jones
a30d8bbb35
Bump for PR #245 2023-07-31 09:37:13 +01:00
Dave Conway-Jones
8e075d891a
Merge branch 'master' of https://github.com/dceejay/RedMap 2023-07-31 09:34:58 +01:00
Dave Conway-Jones
91c52b2ff4
clean up 2023-07-31 09:34:55 +01:00
meeki007
73b1347ec3
Update README.md - clientTimezone (#246)
Document the function of msg.payload.clientTimezone

Also added documentation for msg.payload.parameters
2023-07-31 09:34:20 +01:00
meeki007
072411a304
Update worldmap.js - add clientTimezone (#245)
Add clientTimezone to the 'connected' msg.payload

If unable to complete query return bool of 'false'

Why? 
Many clients connect to the world map from different locals.
Knowing what time their browser/computer is using allows us to format events to their timezone.

Overhead is minimal as it only is queried once when they connect.
2023-07-31 09:34:09 +01:00
Dave Conway-Jones
e9a7f66bdc
Only handle marker if it's there 2023-07-29 16:28:03 +01:00
Dave Conway-Jones
4eb745401c
better fix for geojson objects 2023-07-29 15:56:22 +01:00
Dave Conway-Jones
754c1e8d97
bump package version for fix 2023-07-28 09:17:30 +01:00
Dave Conway-Jones
21d3ab4f95
Fix for geojson multipoint icons 2023-07-28 09:16:35 +01:00
Dave Conway-Jones
9fc059ca4c
Slight cleanup of readme 2023-07-16 10:08:00 +01:00
meeki007
42b763c013
Update README.md for _clientheaders and _sessionip (#242)
I forgot to document the _sessionip pull I created and you committed years ago. figured I would add a blip on it as well for anyone using CTRL+F

Please read and change any explanation to how you think it should sound.
2023-07-15 13:10:16 +01:00
Dave Conway-Jones
1afcddeca1
Bump for client headers on connect PR 2023-07-15 13:08:06 +01:00
meeki007
71940b811f
Update worldmap.js - for _clientheaders msg (#243) 2023-07-15 13:02:49 +01:00
Dave Conway-Jones
d358bca8d5
Update README.md 2023-06-05 14:50:20 +01:00
Dave Conway-Jones
5a516b17cb
Update README.md 2023-06-05 14:48:18 +01:00
meeki007
82f0cb691f
Syntax error- forgot [ " ] - Update README.md (#236)
sorry just noticed it when I tried to use it by copying from doc's 
this should fix it.
2023-06-02 08:59:27 +01:00
Dave Conway-Jones
132d3b5871
Fix to not store old session specific data
to close #233
to close #234
to close #235
2023-05-27 11:14:43 +01:00
meeki007
1a5f75f853
Update README.md - Optional properties (#232)
Documentation states:
```
showruler - turns on and off a display of the ruler control. Values can be "true" or "false". - {"command":{"showruler":true}}
```

The command is wrong its missing key 'ruler'
see RedMap/worldmap/worldmap.js line 2280-2281:
```
if (cmd.hasOwnProperty("ruler")) {
        if (cmd.ruler.hasOwnProperty("showruler")) {
```

Also, some Optional properties that users can use were not described in the documentation.

Added showmenu and showlayers so users can know about the functionality
2023-05-20 21:10:11 +01:00
Dave Conway-Jones
1a7ccdb45d
fix hang on layer change 2023-05-17 08:45:05 +01:00
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
Dave Conway-Jones
d4fd1fdb7e
Warn if msgs missing payload property
to close #229
2023-04-14 18:43:46 +01:00
Dave Conway-Jones
1225cb36d2
Bump for 2.37.0 (add fly to option) 2023-04-11 14:56:06 +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