MapComplete/src/Logic
ilja space df40dc1ba7 Make estimateNumberOfImages work for non-string values
Images didn't load. When getting to `v.startsWith(prefix)`, this would fail when `v` isn't a string.

For example for node <http://127.0.0.1:1234/theme.html?layout=artwork&z=18.3&lat=51.14639600620251&lon=3.112295470573372#node/12800197366>
we can see that the tags include `changeset: 165629229, uid: 14124839, version: 2`...

There was already a check to see if there is a value (or was it meant as a check for empty string?),
now we also check more specifically if this value is a string.

Maybe `if (typeof(v) !== 'string')` would also work (without `!v || `),
but then it won't match on empty string any more, and I don't know if that was the goal or not.
2025-05-03 10:26:06 +02:00
..
Actors chore: automated housekeeping... 2025-04-26 22:06:59 +02:00
FeatureSource chore: automated housekeeping... 2025-04-15 18:18:44 +02:00
ImageProviders Make estimateNumberOfImages work for non-string values 2025-05-03 10:26:06 +02:00
Osm Docs: improve docs 2025-04-27 02:00:53 +02:00
Search Feature: layer validation system now builds a dependency graph and only updates what is needed, makes "refresh:layeroverview" redundant 2025-04-21 23:53:10 +02:00
State Fix: attempt to fix layers which don't hide 2025-04-23 18:24:53 +02:00
Tags chore: automated housekeeping... 2025-04-15 18:18:44 +02:00
Web Refactoring: split NameSuggestionIndex into parts 2025-04-27 22:54:51 +02:00
BBox.ts chore: automated housekeeping... 2025-04-15 18:18:44 +02:00
ContributorCount.ts UX: enable menu drawer on index page, slightly reorder index page 2025-02-25 02:16:00 +01:00
DetermineTheme.ts Feature: layer validation system now builds a dependency graph and only updates what is needed, makes "refresh:layeroverview" redundant 2025-04-21 23:53:10 +02:00
ExtraFunctions.ts chore: automated housekeeping... 2024-07-21 10:52:51 +02:00
GeoOperations.ts chore: automated housekeeping... 2025-04-26 22:06:59 +02:00
Maproulette.ts Fix: tests 2024-12-17 04:39:38 +01:00
MetaTagging.ts Refactoring: use theme instead of layout in a lot of places 2024-10-17 04:06:09 +02:00
SimpleMetaTagger.ts chore: automated housekeeping... 2025-03-17 02:54:32 +01:00
UIEventSource.ts chore: automated housekeeping... 2025-04-15 18:18:44 +02:00