feat(#561): update the current location indicator for maps#652
Open
latin-panda wants to merge 6 commits intomainfrom
Open
feat(#561): update the current location indicator for maps#652latin-panda wants to merge 6 commits intomainfrom
latin-panda wants to merge 6 commits intomainfrom
Conversation
🦋 Changeset detectedLatest commit: 10c73d2 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Collaborator
Author
|
@garethbowen Could you have a look when you have time? I've shared a test server in the team's channel |
garethbowen
requested changes
Feb 15, 2026
Collaborator
garethbowen
left a comment
There was a problem hiding this comment.
The code looks fine to me, however in testing I'm finding some issues.
Error thrown
- In Firefox desktop go to your server
- Select the form
geopoint-maps-with-relevant-readonly-default-value - In the "placement-maps" option
- Click "zoom to current location"
- Wait for the browser to do it's thing and zoom to you
- Watch the console for a whole load of these errors:
Uncaught DOMException: CanvasRenderingContext2D.scale: Canvas could not create basic draw target.
draw_ https://dynamic-xxxxx.netlify.app/assets/MapBlock-BE1Gsqf6-D0_mMFaP.js:3
getImage https://dynamic-xxxxx.netlify.app/assets/MapBlock-BE1Gsqf6-D0_mMFaP.js:3
createHitDetectionCanvas_ https://dynamic-xxxxx.netlify.app/assets/MapBlock-BE1Gsqf6-D0_mMFaP.js:3
getHitDetectionImage https://dynamic-xxxxx.netlify.app/assets/MapBlock-BE1Gsqf6-D0_mMFaP.js:3
setImageStyle https://dynamic-xxxxx.netlify.app/assets/MapBlock-BE1Gsqf6-D0_mMFaP.js:3
Vf https://dynamic-xxxxx.netlify.app/assets/MapBlock-BE1Gsqf6-D0_mMFaP.js:3
Gf https://dynamic-xxxxx.netlify.app/assets/MapBlock-BE1Gsqf6-D0_mMFaP.js:3
ah https://dynamic-xxxxx.netlify.app/assets/MapBlock-BE1Gsqf6-D0_mMFaP.js:3
renderFeature https://dynamic-xxxxx.netlify.app/assets/MapBlock-BE1Gsqf6-D0_mMFaP.js:6
b https://dynamic-xxxxx.netlify.app/assets/MapBlock-BE1Gsqf6-D0_mMFaP.js:6
prepareFrame https://dynamic-xxxxx.netlify.app/assets/MapBlock-BE1Gsqf6-D0_mMFaP.js:6
render https://dynamic-xxxxx.netlify.app/assets/MapBlock-BE1Gsqf6-D0_mMFaP.js:6
renderFrame https://dynamic-xxxxx.netlify.app/assets/MapBlock-BE1Gsqf6-D0_mMFaP.js:6
renderFrame_ https://dynamic-xxxxx.netlify.app/assets/MapBlock-BE1Gsqf6-D0_mMFaP.js:6
animationDelay_ https://dynamic-xxxxx.netlify.app/assets/MapBlock-BE1Gsqf6-D0_mMFaP.js:6
render https://dynamic-xxxxx.netlify.app/assets/MapBlock-BE1Gsqf6-D0_mMFaP.js:6
dispatchEvent https://dynamic-xxxxx.netlify.app/assets/MapBlock-BE1Gsqf6-D0_mMFaP.js:1
changed https://dynamic-xxxxx.netlify.app/assets/MapBlock-BE1Gsqf6-D0_mMFaP.js:1
handleLayerChange_ https://dynamic-xxxxx.netlify.app/assets/MapBlock-BE1Gsqf6-D0_mMFaP.js:6
dispatchEvent https://dynamic-xxxxx.netlify.app/assets/MapBlock-BE1Gsqf6-D0_mMFaP.js:1
changed https://dynamic-xxxxx.netlify.app/assets/MapBlock-BE1Gsqf6-D0_mMFaP.js:1
handleSourceChange_ https://dynamic-xxxxx.netlify.app/assets/MapBlock-BE1Gsqf6-D0_mMFaP.js:6
dispatchEvent https://dynamic-xxxxx.netlify.app/assets/MapBlock-BE1Gsqf6-D0_mMFaP.js:1
changed https://dynamic-xxxxx.netlify.app/assets/MapBlock-BE1Gsqf6-D0_mMFaP.js:1
clear https://dynamic-xxxxx.netlify.app/assets/MapBlock-BE1Gsqf6-D0_mMFaP.js:3
Cm https://dynamic-xxxxx.netlify.app/assets/MapBlock-BE1Gsqf6-D0_mMFaP.js:6
callWithErrorHandling https://dynamic-xxxxx.netlify.app/assets/index-CFkqqm0z.js:16
callWithAsyncErrorHandling https://dynamic-xxxxx.netlify.app/assets/index-CFkqqm0z.js:16
call https://dynamic-xxxxx.netlify.app/assets/index-CFkqqm0z.js:16
CA https://dynamic-xxxxx.netlify.app/assets/index-CFkqqm0z.js:9
callWithErrorHandling https://dynamic-xxxxx.netlify.app/assets/index-CFkqqm0z.js:16
flushJobs https://dynamic-xxxxx.netlify.app/assets/index-CFkqqm0z.js:16
promise callback*queueFlush https://dynamic-xxxxx.netlify.app/assets/index-CFkqqm0z.js:16
queueJob https://dynamic-xxxxx.netlify.app/assets/index-CFkqqm0z.js:16
scheduler https://dynamic-xxxxx.netlify.app/assets/index-CFkqqm0z.js:16
scheduler https://dynamic-xxxxx.netlify.app/assets/index-CFkqqm0z.js:9
trigger https://dynamic-xxxxx.netlify.app/assets/index-CFkqqm0z.js:9
endBatch https://dynamic-xxxxx.netlify.app/assets/index-CFkqqm0z.js:9
notify https://dynamic-xxxxx.netlify.app/assets/index-CFkqqm0z.js:9
trigger https://dynamic-xxxxx.netlify.app/assets/index-CFkqqm0z.js:9
set value https://dynamic-xxxxx.netlify.app/assets/index-CFkqqm0z.js:9
value https://dynamic-xxxxx.netlify.app/assets/MapBlock-BE1Gsqf6-D0_mMFaP.js:6
setTimeout handler*l https://dynamic-xxxxx.netlify.app/assets/MapBlock-BE1Gsqf6-D0_mMFaP.js:6
value https://dynamic-xxxxx.netlify.app/assets/MapBlock-BE1Gsqf6-D0_mMFaP.js:6
c https://dynamic-xxxxx.netlify.app/assets/MapBlock-BE1Gsqf6-D0_mMFaP.js:6
vt https://dynamic-xxxxx.netlify.app/assets/MapBlock-BE1Gsqf6-D0_mMFaP.js:553
callWithErrorHandling https://dynamic-xxxxx.netlify.app/assets/index-CFkqqm0z.js:16
callWithAsyncErrorHandling https://dynamic-xxxxx.netlify.app/assets/index-CFkqqm0z.js:16
emit https://dynamic-xxxxx.netlify.app/assets/index-CFkqqm0z.js:16
2 https://dynamic-xxxxx.netlify.app/assets/MapBlock-BE1Gsqf6-D0_mMFaP.js:1
callWithErrorHandling https://dynamic-xxxxx.netlify.app/assets/index-CFkqqm0z.js:16
callWithAsyncErrorHandling https://dynamic-xxxxx.netlify.app/assets/index-CFkqqm0z.js:16
AA https://dynamic-xxxxx.netlify.app/assets/index-CFkqqm0z.js:20
addEventListener https://dynamic-xxxxx.netlify.app/assets/index-CFkqqm0z.js:20
patchEvent https://dynamic-xxxxx.netlify.app/assets/index-CFkqqm0z.js:20
patchProp https://dynamic-xxxxx.netlify.app/assets/index-CFkqqm0z.js:20
vA https://dynamic-xxxxx.netlify.app/assets/index-CFkqqm0z.js:16
wA https://dynamic-xxxxx.netlify.app/assets/index-CFkqqm0z.js:16
mA https://dynamic-xxxxx.netlify.app/assets/index-CFkqqm0z.js:16
BA https://dynamic-xxxxx.netlify.app/assets/index-CFkqqm0z.js:16
vA https://dynamic-xxxxx.netlify.app/assets/index-CFkqqm0z.js:16
wA https://dynamic-xxxxx.netlify.app/assets/index-CFkqqm0z.js:16
mA https://dynamic-xxxxx.netlify.app/assets/index-CFkqqm0z.js:16
BA https://dynamic-xxxxx.netlify.app/assets/index-CFkqqm0z.js:16
vA https://dynamic-xxxxx.netlify.app/assets/index-CFkqqm0z.js:16
wA https://dynamic-xxxxx.netlify.app/assets/index-CFkqqm0z.js:16
mA https://dynamic-xxxxx.netlify.app/assets/index-CFkqqm0z.js:16
XA https://dynamic-xxxxx.netlify.app/assets/index-CFkqqm0z.js:16
run https://dynamic-xxxxx.netlify.app/assets/index-CFkqqm0z.js:9
YA https://dynamic-xxxxx.netlify.app/assets/index-CFkqqm0z.js:16
OA https://dynamic-xxxxx.netlify.app/assets/index-CFkqqm0z.js:16
FA https://dynamic-xxxxx.netlify.app/assets/index-CFkqqm0z.js:16
mA https://dynamic-xxxxx.netlify.app/assets/index-CFkqqm0z.js:16
BA https://dynamic-xxxxx.netlify.app/assets/index-CFkqqm0z.js:16
vA https://dynamic-xxxxx.netlify.app/assets/index-CFkqqm0z.js:16
wA https://dynamic-xxxxx.netlify.app/assets/index-CFkqqm0z.js:16
mA https://dynamic-xxxxx.netlify.app/assets/index-CFkqqm0z.js:16
BA https://dynamic-xxxxx.netlify.app/assets/index-CFkqqm0z.js:16
vA https://dynamic-xxxxx.netlify.app/assets/index-CFkqqm0z.js:16
wA https://dynamic-xxxxx.netlify.app/assets/index-CFkqqm0z.js:16
mA https://dynamic-xxxxx.netlify.app/assets/index-CFkqqm0z.js:16
BA https://dynamic-xxxxx.netlify.app/assets/index-CFkqqm0z.js:16
vA https://dynamic-xxxxx.netlify.app/assets/index-CFkqqm0z.js:16
7 MapBlock-BE1Gsqf6-D0_mMFaP.js:3:5735
Performance issue
- In Firefox on desktop or mobile
- Select the form
geopoint-maps-with-relevant-readonly-default-value - In the "placement-maps" option
- Click "zoom to current location"
- Then zoom in so the blue accuracy bubble fills the screen
- Click to set the placement. For me this is really laggy. The more I zoom in the worse it gets, up to 5 seconds or so. I kept doing this on mobile and eventually the whole browser crashed. On my desktop it started maxing out CPU so I stopped.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #561
I have verified this PR works in these browsers (latest versions):
What else has been done to verify that this works as intended?
Screenshots from testing:
Select one from maps:
Geoshape:
Geopoint:

Geopoint with big zoom out:

Why is this the best possible solution? Were any other approaches considered?
How does this change affect users? Describe intentional changes to behavior and behavior that could have accidentally been affected by code changes. In other words, what are the regression risks?
No additional changes beyond those requested.
Do we need any specific form for testing your changes? If so, please attach one.
Forms are available in the dev demo preview.
What's changed