Map widget being replaced by grey shortly after showing map.

Created on 27 October 2023, 11 months ago

Problem/Motivation

When editing a geofield map we are seeing the map briefly displayed and then replaced by grey.

Proposed resolution

By adding the class "geofield-google-map" to the widget template the problem seems to go away.
Have tried extracting relevant css from the google map css and adding it to the widget css with no luck.
Only thing that seems to work is to add the class.

Patch to follow.

๐Ÿ’ฌ Support request
Status

Closed: cannot reproduce

Version

3.0

Component

Code

Created by

๐Ÿ‡ฌ๐Ÿ‡งUnited Kingdom arcaic Milton Keynes

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @arcaic
  • ๐Ÿ‡ฌ๐Ÿ‡งUnited Kingdom arcaic Milton Keynes

    Patch against 3.0.x

  • Status changed to Postponed: needs info 11 months ago
  • ๐Ÿ‡ฎ๐Ÿ‡นItaly itamair

    well ... we cannot consider as a Bug with no clear evidence of it.
    This looks a major issue, blocking the use of the Geofield Map Widget at all ... but why nobody else (among thousands of adoptions) is reporting this, but you ... ?

    For instance I cannot experience this in my normal / everyday and default setup of Geofield Map Widget.
    It could clearly be generated by a specific setting of your working / dev environment.

    Otherwise you should clearly prove what is causing what here, and in a general basis. Also screenshots of your failing use case might help, so as also including your inspector, and js console/error log, etc.

    If you mark this as BUG it is meant it is for the module in general, and you should prove how ... in which of its components, etc.

    Give me clear evidence and more info on that, before we could eventually mark back this to Bug, and open ...

  • ๐Ÿ‡ฌ๐Ÿ‡งUnited Kingdom arcaic Milton Keynes

    I don't think there is any way I am going to be able to prove how it exhibits the behaviour.

    Its on a complex site thats been running for a few years just being upgraded to D10 and I think the chances of reproducing it in a minimal install are pretty much zero.

    I made the patch so we could get our site running and so if anyone ever gets the issue they would have a possible solution.

    The BUG is in the display of the geofield_map widget. It is a BUG whether you can reproduce it or not but I fully understand you have nothing to go on. TBH I suggest you close as "cannot reproduce" and at least its there for reference should anyone else encounter it.

  • ๐Ÿ‡ฌ๐Ÿ‡งUnited Kingdom dunx

    I work with archaic on this project.

    It's a simple /node/add scenario in D10.1.5 using the Gin theme. It's hosted on GOV.UK PaaS and we're testing on latest Chrome under Mac. There are no console errors. There's no associated errors in dlog.

    Before the patch, there's a grey space where the map should be.

    After the one-line patch is applied, a map is displayed.

  • Status changed to Closed: cannot reproduce 11 months ago
  • ๐Ÿ‡ฎ๐Ÿ‡นItaly itamair

    Thanks for you explanation โ€ฆ yes ok letโ€™s close this with cannot reproduce,
    But my feeling is that โ€ฆ as you found that the class "geofield-google-mapโ€ fixes this issue of you, you should have followed a proper and logical way to that, so also discovered why it showed gray and how to properly fix it โ€ฆ
    That looks very close in discovering where the bug is, at least in your scenario and project setup.

Production build 0.71.5 2024