James Lyne
70b5b4eb47
Refactor GenericIcon
2022-02-24 21:54:25 +00:00
James Lyne
87a1665d53
Rename GenericMarker dimensions to iconSize and make optional
2022-02-24 21:08:27 +00:00
James Lyne
bd13e67f48
Replace MapProvider.getMarkerIconURL with passing full URL to GenericMarker
2022-02-24 18:39:37 +00:00
James Lyne
60d84d61a0
Fixed layout for marker icons with no iconSize
2022-02-24 00:32:30 +00:00
James Lyne
56b07aeaf7
Fix error showing label on markers without an iconSize
2022-02-23 23:23:10 +00:00
James Lyne
b69a1b3a3f
Make iconSize optional for GenericIcon, and center it if missing
2022-02-23 00:47:22 +00:00
James Lyne
88f81efcf5
Update copyright headers
2022-02-21 21:53:49 +00:00
James Lyne
971cd72af5
Update leaflet
2022-02-06 20:08:27 +00:00
James Lyne
b75d1022b7
Reuse player marker icons when removing and readding to map
2022-02-06 12:29:43 +00:00
James Lyne
c7c17af6d5
Fix point marker icon updates
2022-01-22 12:05:54 +00:00
James Lyne
5a778828f8
Initial version of pl3xmap player facing. Closes #129
2021-12-09 01:13:23 +00:00
James Lyne
3355dbbd32
Add compactPlayerMarkers ui option for pre-2.0 style markers
2021-12-07 21:53:09 +00:00
James Lyne
935cba1c0f
Fix marker popups not displaying on click ( Fixes #261 )
2021-12-07 20:18:49 +00:00
James Lyne
bf383afb8d
Support disabling player marker images
...
- showplayerfaces: false in Dynmap, player-tracker.nameplate.show-head: false in Pl3xmap
- Remove showSkin option in favour of 'none' image size
2021-09-29 19:58:39 +01:00
James Lyne
5896d4504c
Fix PlayerMarker name disappearing when hidden
2021-09-29 15:31:09 +01:00
James Lyne
016b784634
Fix PlayerMarker health/armor not displaying immediately
2021-09-29 15:02:17 +01:00
James Lyne
66355dfe38
Decouple player image pixel size from PlayerMarker.
...
- Use single template image and set size after cloning
- Use util method to retrieve pixel size when needed
- Use LiveAtlasPlayerImageSize in getMinecraftHead
2021-09-29 14:33:52 +01:00
James Lyne
07d851fc86
Use 20 for health/armor meter max
2021-09-29 14:32:12 +01:00
James Lyne
770c9242a8
Player marker improvements
...
- Use <meter> for health/armor
- Condense small/body image properties into single image size option
- Remove image-size dependant margins
- Add circle alongside label for indicating player position
2021-09-29 01:30:35 +01:00
James Lyne
bfc0a381a8
Respect pl3xmap show-armor setting
2021-09-28 18:54:51 +01:00
James Lyne
77b9850ea9
Marker refactoring
...
- Don't extend DivIcon as we don't use anything that class provides
- Update PlayerMarker icon using internal watch
- Remove unused panTo() PlayerMarker method
- Apply needed parts of _setIconStyles directly in GenericIcon's createIcon
2021-09-01 17:38:42 +01:00
James Lyne
3cb9f8f315
Fix super call in GenericIcon
2021-08-31 16:41:11 +01:00
James Lyne
fdf5e521d8
Prefer using super over prototype calls
2021-08-31 16:38:19 +01:00
James Lyne
ca8142cca8
Use declare for leaflet defined fields
2021-08-26 21:40:54 +01:00
James Lyne
2d485ac4e5
Fix marker labels disappearing when toggling a showLabels: true layer twice
2021-08-16 04:21:48 +01:00
James Lyne
a7fa366635
Create marker labels lazily when showLabels is false
2021-07-29 17:46:11 +01:00
James Lyne
5cf353cd8a
Update license headers
2021-07-26 01:05:08 +01:00
James Lyne
e61d0def04
Replace serverConfig getter with MapProvider url methods
2021-07-26 01:05:07 +01:00
James Lyne
1d27e05f7c
Rename DynmapPlayer to LiveAtlasPlayer, rename some fields, add uuid field
2021-07-26 01:04:18 +01:00
James Lyne
c99215e259
Use generic names for extended leaflet classes
2021-07-26 01:04:17 +01:00
James Lyne
7adfdec4c7
Fix head urls
2021-05-18 18:32:42 +01:00
James Lyne
0facb446f5
Initial work for multiple servers
2021-05-17 03:39:25 +01:00
James Lyne
ce241c93e0
Switch from webpack to vite
2021-05-15 20:25:03 +01:00
James Lyne
df487ec364
export Util functions separately
2021-01-26 20:37:29 +00:00
James Lyne
8260deba0b
Fix player health/armor display
2021-01-24 22:14:39 +00:00
James Lyne
a2942b6400
Improve caching of player marker name
2021-01-06 00:44:11 +00:00
James Lyne
3573694df0
Avoid unnecessary dom updates for player markers
2021-01-05 23:48:56 +00:00
James Lyne
652a63e278
Show player markers in the center of the current block
2021-01-05 21:06:10 +00:00
James Lyne
51a273f8de
Fix some timing issues in DynmapIcon
2020-12-31 22:38:58 +00:00
James Lyne
165afd762c
Use player account for skin URL. Fixes #2
2020-12-22 13:15:59 +00:00
James Lyne
7b1afa1c20
Handle showLabels config setting
2020-12-18 23:01:32 +00:00
James Lyne
cad535365b
Handle marker icon/label updates
2020-12-18 18:01:37 +00:00
James Lyne
31b05613fb
Add license
2020-12-16 16:54:41 +00:00
James Lyne
ba4c7604d0
Fix player marker html usage
2020-12-14 00:28:09 +00:00
James Lyne
6249eb904b
Move marker set markers into single component. Start marker update handling.
2020-12-14 00:27:49 +00:00
James Lyne
f37d3531a1
Allpw HTML in player names, sanitise it to be sure
2020-12-13 23:22:59 +00:00
James Lyne
99a28401b9
Fix player icons
2020-12-13 13:23:32 +00:00
James Lyne
b9b58399f6
Targeted leaflet imports
2020-12-12 22:04:56 +00:00
James Lyne
404121188b
Marker improvements
...
- Refactor html and classnames
- Fix/refactor styles
- Re-implement player head images
2020-12-10 02:21:42 +00:00
James Lyne
5d0f26917d
More progress
2020-12-01 23:20:48 +00:00