Commit graph

4,055 commits

Author SHA1 Message Date
j
29df9f1760 fix format 2025-08-13 09:34:55 +02:00
j
ef24247a36 more nominatim tweaks 2025-08-12 12:32:34 +02:00
j
529277eb12 toggle style 2025-08-11 19:55:08 +02:00
j
95b3a4be6e fix controls height 2025-08-11 19:52:24 +02:00
j
3c482989d1 fix pan controls 2025-08-11 19:36:59 +02:00
j
e274d88c2b faster lookup, start to map addresstype to type 2025-08-11 18:47:25 +02:00
j
bbc8debf46 Merge branch 'maplibre-big-bbox' into maplibre 2025-08-11 18:29:59 +02:00
j
f5d15ce75f use Ox.api async mode and clear cache on change 2025-08-11 18:27:50 +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
j
d737817528 fix place id generation in example 2025-08-11 17:19:18 +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
56123e4575 map_editor example should use async code 2025-08-06 23:02:19 +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
bcade5f2d7 add map editor example 2025-08-06 21:49:45 +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
66fca1fc02 dev mode 2025-08-06 19:03:10 +02:00
j
8cebad9fb4 migrate to maplibre-gl for maps 2025-08-06 19:03:10 +02:00
j
f3b8025e8e add maplibre-gl-geocoder 2025-08-06 14:02:53 +02:00
j
25cd3f6bb1 include maplibre-gl files in build 2025-08-05 19:09:19 +02:00
j
76b9517a78 add maplibre-gl.js 2025-08-05 18:50:09 +02:00
j
33a7832d64 raw regexp 2025-08-05 15:22:21 +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
8e760c3959 no special color for multiple 2025-01-24 23:31:51 +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
168cdd691c disable overscroll behavior 2025-01-22 11:57:37 +05:30
j
570fa30d41 fix "Find in" for annotations with quotes 2024-06-19 13:52:52 +02:00
j
1a9fe95530 fix typo 2024-06-02 16:32:12 +01:00
j
f46a70d793 re-enable scrollbar-color for non chrome browsers 2024-06-02 16:29:11 +01:00
j
a67b633bcf scrollbar-color breaks scrollbars on chrome 2024-06-01 10:12:33 +01:00
j
038ff06766 balance subtitles 2024-05-17 16:38:44 +02:00
j
fc001a2f44 version can contain dots 2024-02-17 14:15:34 +00: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