Commit graph

289 commits

Author SHA1 Message Date
j
bbc8debf46 Merge branch 'maplibre-big-bbox' into maplibre 2025-08-11 18:29:59 +02:00
j
c4591c3a0e don't clone places if its a function 2025-08-11 18:26:33 +02:00
Sanjay Bhangar
905258c962 pick nominatim result as per zoom level, sending current zoom as part of nominatim request 2025-08-11 18:14:51 +02:00
Sanjay Bhangar
a0b1e0eab4 Here's what we've accomplished to fix MapLibre GL rectangle editing:
Core Issues Fixed:

  1. MapLibre GL Event Compatibility: Fixed drag event handlers in MapMarker.js and MapRectangleMarker.js to use marker.getLngLat() instead of accessing e.lngLat properties that don't exist in MapLibre GL.
  2. Rectangle Handle Visibility: Replaced Ox.MapMarkerImage() with proper DOM elements for corner handles since MapLibre GL expects DOM elements, not image objects.
  3. Handle Positioning: Limited corner markers to only the 4 corners (ne, nw, se, sw) instead of all 8 positions (including edges).
  4. Visual Rectangle Updates: Added that.rectangle.setBounds() call in MapRectangle update method so the visual rectangle updates when handles are dragged.
  5. Click Event Conflicts: Fixed map click handler to detect rectangle clicks and avoid deselecting rectangles when clicked for editing.
  6. Place Editable Property: Added editable: true as default in MapPlace constructor.

  Files Modified:

  - MapPlace.js: Added editable: true default
  - MapRectangle.js:
    - Limited markers to 4 corners only
    - Added rectangle bounds update in update() method
  - MapRectangleMarker.js:
    - Created proper DOM elements for handles
    - Fixed MapLibre GL drag event handling
    - Improved event cleanup
  - MapMarker.js: Fixed MapLibre GL drag event handling
  - MapMarkerImage.js: Fixed rectangle marker color (kept for backward compatibility)
  - Map.js: Added rectangle click detection to prevent conflicts

  Result:

  Rectangle editing now works completely:
  - Click rectangle → shows 4 corner handles
  - Drag handles → resizes rectangle in real-time
  - No console errors
  - Proper event handling
2025-08-09 14:15:54 +02:00
j
80d3919b46 one layer per rectangle to redouce events 2025-08-06 23:31:07 +02:00
j
1bac02d24f fixup 2025-08-06 23:18:21 +02:00
j
bc174c49dd support updating MapEditor places 2025-08-06 23:01:31 +02:00
j
f3e0632f0e more fixes 2025-08-06 21:50:00 +02:00
j
8dbfcc0ece fix raster subdomains 2025-08-06 19:30:08 +02:00
j
6a59ff5193 marker size 2025-08-06 19:29:16 +02:00
j
e917bce40d correct cross the 180th meridian (antimeridian) handling 2025-08-06 19:10:04 +02:00
j
8cebad9fb4 migrate to maplibre-gl for maps 2025-08-06 19:03:10 +02:00
j
f8e48f54ca expose async flag to disable it for window.unload events 2025-07-06 20:23:54 +01:00
j
6e1e2be9c4 no confirmation dialog for empty annotations 2025-01-30 16:59:35 +05:30
j
01596fa174 fix multiple id selection in VideoAnnotationPanel chain 2025-01-25 10:27:45 +05:30
j
4cde39b182 hook up transcribe option 2025-01-24 19:59:56 +05:30
j
6341e64a64 add transcribe option 2025-01-24 19:14:48 +05:30
j
03eb3d4a56 select multple annotations, option to pass confirm delete dialog 2025-01-24 17:11:23 +05:30
j
96d4dfe71d allow selecting multiple annotations to get in/out range 2025-01-22 17:42:30 +05:30
j
570fa30d41 fix "Find in" for annotations with quotes 2024-06-19 13:52:52 +02:00
j
d25fe788ee group vars into block (coding style) 2023-10-07 10:22:56 +01:00
qsniyg
d71ad7cad6 Allow setting multiple values for ButtonGroup 2023-10-07 09:20:16 +00:00
qsniyg
2c4e0b8f7b Use self.pageLength instead of self.options.pageLength in List::getPageByPosition
self.options.pageLength is a hint, the actual pageLength can differ. For example when orientation == both, self.options.pageLength is disregarded entirely.
2023-09-04 22:29:38 +00:00
j
2a147446c2 Ox.formPanel: update options.section on interactive change 2023-09-03 12:15:20 +01:00
j
9a7c3144f5 fix FormPanel selections 2023-09-03 12:11:12 +01:00
j
fb6c862b88 typo 2023-09-03 11:50:05 +01:00
j
6252e27f6c Ox.FormPanel: support setting inital and updating selected panel 2023-09-03 11:47:07 +01:00
j
49742b8b1a Ox.FormPanel.values now accepts values too 2023-09-03 11:24:01 +01:00
j
ac1a4ef961 avoid memory leak in jQuery.cache 2023-08-06 11:49:55 +02:00
j
f8b218ec59 only post if target exists 2023-07-21 11:21:30 +01:00
j
4189c740b5 input event breaks input change event for input fields with onchange handlers 2023-07-12 13:31:11 +05:30
j
cf3f3c4103 better buffering 2023-07-12 00:22:46 +05:30
j
b3a73dedbf no autocomplete fields 2023-07-09 20:14:05 +05:30
j
bb7fe206d1 trigger change for text/password, fixes login and does not break annotations 2023-07-09 16:40:05 +05:30
j
4f00f0e06c revert 8a374360fa breaks shift enter in annotations 2023-07-09 16:04:20 +05:30
j
62a94ee644 update timeline one once 2023-07-09 16:01:58 +05:30
j
95faa3e40a fix copy of annotations in editor view if focus is on annotation 2023-07-09 15:01:37 +05:30
j
8a374360fa trigger change on automplete input event 2023-07-08 18:52:05 +05:30
j
eeb0b68037 advanced interface can contain places, fallback to string type 2023-07-06 14:13:55 +05:30
j
b7c201a74f handle type ["integer"] in url and fix inbetween vs ["integer"] filter 2023-07-06 11:52:36 +05:30
j
543045ae6c no chapters 2023-06-30 15:56:59 +05:30
j
0dfed9de74 no annotations 2023-06-30 15:56:41 +05:30
j
9b5bb2cd06 fix setting place to null 2023-06-30 15:45:03 +05:30
j
7601eeb28a fall back to mapPlaceFeatureColor if type does not have a color 2023-06-24 16:09:32 +05:30
j
09bc78ec02 make sure items is defined 2023-05-11 11:01:45 +01:00
j
0396aa0679 google triggers map changed but does not return bounds if map was never visible 2023-04-27 10:54:12 +02:00
j
472bdc64de pass enableSubtitles to players 2022-03-03 12:47:22 +00:00
j
a29d33e4b1 add that.playInToOut to VideoPlayerPanel 2022-03-03 12:46:14 +00:00
j
c764680042 tag video elements for inline play 2021-11-21 11:57:20 +01:00
j
3fa1c56510 fix that.playInToOut 2021-10-29 22:22:01 +01:00