Commit Graph

39 Commits

Author SHA1 Message Date
Furkan Mutlu
f7bd65ac8d fix: 🐛 Fix multiple appending debug vintage unknown label (#9458)
* fix: 🐛 Fix multiple appending debug vintage unknown label

* keep using t.append for accessibility

Co-authored-by: Martin Raifer <martin@raifer.tech>
2023-01-19 11:49:30 +01:00
Martin Raifer
7d546a8f60 refactor further modules to not rely on html injection 2022-06-24 19:31:41 +02:00
Martin Raifer
cc6f16d480 Merge branch 'develop' into accessible_ui 2021-12-07 16:22:01 +01:00
Milos Brzakovic (E-Search)
a77840eb2a image alt attr in tile imagery and tag wiki info 2021-11-29 19:31:58 +01:00
Martin Raifer
040257fd44 replace unnecessary setting of raw "html" with "text" 2021-11-18 18:53:33 +01:00
Quincy Morgan
792a4e8594 Fix background tile issues caused by the cache not properly updating upon load/error with D3 v6 2020-10-26 14:52:58 -04:00
Quincy Morgan
32f8274929 Make t function return a span element with a lang attribute unless html: false is specified in the options (re: #7963)
Update `text` functions to `html` to support inserting the `span` elements
Specify `html: false` for various instances where a `span` is not desired, e.g. `placeholder` and `title` attributes
2020-09-15 21:56:22 -04:00
Quincy Morgan
640d22b298 Prevent default drag and drop of background tile images if interaction handlers don't prevent dragging for some reason 2020-05-21 14:06:28 -04:00
Quincy Morgan
a1af118f0e Ensure locales and presets are loaded before the UI loads (close #7406)
Consolidate localization behavior and init to a coreLocalizer function and singleton
Explicitly support `en-US` locale
Rename coreData to coreFileFetcher and export a singleton rather than using a property of coreContext
Add `apiConnections` property of coreContext to simplify adding a source switcher
Replace some init functions with re-callable, promise-supporting `ensureLoaded` functions
Make coreContext itself load the UI if a container has been specified at init time
Fix code tests
2020-03-31 12:23:31 -07:00
Quincy Morgan
80a4cec8dd Manually force background tile images to display at their expected size (close #7070) 2019-12-02 12:38:55 -05:00
Bryan Housel
2b050549eb Avoid reflow in minimap by hardcoding its dimensions 2019-04-11 21:05:04 -04:00
Bryan Housel
11076bf0c5 Calculate correct scale in tiler() for non-256px tile sizes 2018-07-25 15:11:43 -04:00
Bryan Housel
ac27cbd67d Add support for 512px Mapbox Satellite tiles
The tiler and projection are still not aware of the 512px size.
This results in fetching 512px images but placing them in the 256px slippy map
and scalling them down.

(This is dumb but at least they look nicer than before)
2018-07-22 02:50:49 -04:00
Bryan Housel
52dc6c280f Preparation for non-256px tileSizes in sources 2018-07-22 01:43:56 -04:00
Bryan Housel
2fa593421f Rename scaleExtent to zoomExtent, slightly simplify getTiles() 2018-07-22 01:15:44 -04:00
Bryan Housel
292347b28a Use utilTiler's Null Island filter for overlay sources 2018-07-21 18:53:19 -04:00
Bryan Housel
d1fe81b905 rename utilTile -> utilTiler 2018-07-21 10:07:56 -04:00
Thomas Hervey
d4b1622667 moved getTiles and filtering to utils 2018-07-14 19:15:25 -04:00
Bryan Housel
9d55cfb70f Treat both EsriWorldImagery layers the same (support vintage, etc) 2018-02-01 11:36:20 -05:00
Bryan Housel
96afbbd785 Refactor vector math functions from geo.js to vector.js 2017-12-28 01:08:11 -05:00
Bryan Housel
2e2b037e36 Move a bunch of commonly used vector and projection math functions into geo
- geoVecAdd
- geoVecSubtract
- geoVecScale
- geoZoomToScale
- geoScaleToZoom
2017-12-18 15:05:42 -05:00
Bryan Housel
d906ca6b10 Convert lodah-es and d3 to named imports for renderer 2017-09-25 14:35:33 -04:00
Bryan Housel
6addbba340 reorganize metadata object, change display of meters 2017-09-12 14:51:01 -04:00
john gravois
5f341366e7 display additional metadata from Esri World Imagery
* getVintage() becomes getMetadata()
* ignore a couple unrelated lint nags
* add source description, resolution and accuracy info to debug panel
2017-09-11 09:51:07 -07:00
Bryan Housel
8ed2d18474 Apply imagary offset to projection before tiling background layer
(closes #4232)
2017-08-18 22:53:11 -04:00
Bryan Housel
3464a46df6 All imagery layers should just be owned by rendererBackground()
This moves management of the custom layer out of uiBackground()
2017-07-20 16:07:10 -04:00
Bryan Housel
3043323ba9 Rename infobox to info-panels 2017-07-04 02:14:30 -04:00
Bryan Housel
cb249cc28b Rename panel Imagery -> Background, change key G -> B 2017-07-04 01:18:45 -04:00
Bryan Housel
1f826851b2 Make tileCenter return the point actually at the tile center
Then use css to adjust the position of the debug div
2017-07-03 16:03:41 -04:00
Bryan Housel
b9df6df03f Imagery vintage improvements:
- Cache vintage lookups from Bing API
- Actually sample a tile at the center of the viewport,
  rather than just divinding tiles/2 (not a good guess)
- Refactor the start-end range code into one place
2017-07-03 15:12:59 -04:00
Bryan Housel
7df458e4df Display imagery vintage when tile debugging is enabled.. 2017-07-02 10:21:46 -04:00
Bryan Housel
3102a4ae6a Rename all the things to include pseudonamespaces 2016-10-04 19:06:20 -04:00
Bryan Housel
a6d683eaf7 Code cleanups in svg, ui for selection merging, fix Mapillary. 2016-09-17 23:26:49 -04:00
Bryan Housel
273407da3d Fix svg layer selections, fix and add tests.. 2016-09-09 14:19:13 -04:00
Tom MacWright
ed135ce9ef Enable lib tests 2016-09-05 10:22:45 -04:00
Bryan Housel
a86f34b4ef Pacify eslint, get build and tests running again 2016-08-26 01:15:07 -04:00
Tom MacWright
cdb533fa84 Begin d3 v4 update 2016-08-21 15:19:27 -04:00
Kushan Joshi
6a56ad547c external modules for renderer 2016-06-22 12:34:43 +05:30
Kushan Joshi
46d68bca87 modularize iD.renderer 2016-06-17 12:53:19 +05:30