Closed btheado closed 2 weeks ago
I'm looking into whether wrapping the following code with if(featureBounds.isValid()) {
will fix it:
Initial testing seems to indicate it does.
However, I've gotten distracted trying to get testcase tiddlers to work for the geomap widget. I notice the existing test cases are tagged to not be run. For example:
If I try to run them in the browser, leaflet throws infinite bounds exception (some information here: https://github.com/Leaflet/Leaflet/issues/6416)
For example, this code will give the exception:
<$testcase>
<$data title=Output text="<$geomap/>"/>
</$testcase>
but this does not:
<$testcase>
<$data title=Output text="<$geomap/>"/>
<$data $tiddler="$:/plugins/tiddlywiki/geospatial"/>
</$testcase>
<$data $tiddler="$:/plugins/tiddlywiki/geospatial"/>
Describe the bug
When startPosition is
bounds
with an empty geolayer widget like this:A javascript exception "Bounds are not valid" is thrown.
Expected behavior
Error should be displayed or some other behavior better than RSOD.
To Reproduce
Go to https://tiddlywiki.com/prerelease/plugins/tiddlywiki/geospatial/ and add the following text to a tiddler:
Screenshots
No response
TiddlyWiki Configuration
Online version accessed using firefox
Additional context
No response