# Google thematic maps not working

**URL:** <https://community.dhis2.org/t/google-thematic-maps-not-working/76103>\
**Category:** Support - Assistance technique\
**Tags:** maps\
**Created:** [17 August 2026 07:22 UTC](https://community.dhis2.org/t/google-thematic-maps-not-working/76103 "2026-08-17T07:22:48Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stephan\_Mestach](https://dhis2.b-cdn.net/user_avatar/community.dhis2.org/stephan_mestach/32/40053_2.png) [@Stephan\_Mestach](https://community.dhis2.org/u/Stephan_Mestach)\
**Post date:** [17 August 2026 07:22 UTC](https://community.dhis2.org/t/google-thematic-maps-not-working/76103/1 "2026-08-17T07:22:49Z")

</div>

I have on instance where add the population thematic map shows this

 ![image](https://dhis2.b-cdn.net/uploads/default/original/3X/2/e/2ebf89021f296582af681ab5bf43327f0da716d0.png)

but the maps never show up, the loading progress never stops.

I have another instance for niger, where everything is fine  
we tried on both to upgrade the dhis2 apps (maps, climate,…)

on the non working instance the only related call is

- /api/42/tokens/google that seem to return a legit token
- we never see calls to earth engine
- we see a weird error : TypeError: can’t access property “urlFormat”, b is undefined
  - /dhis-web-maps/assets/ee\_worker-BYZZdtSN.js ( [ee\_worker-BYZZdtSN.js:91:197504

 ![image](https://dhis2.b-cdn.net/uploads/default/original/3X/9/e/9e4b4fd4fd3dedbd83c771be4338ba26b20d6078.png)

in the differences between the 2 instances we notice the content of the dataStore DHIS2\_MAP\_CORE/MANAGED\_LAYER\_SOURCES to be really different but I don’t know the source of it (user config or migration ?).

Is there something we need to do to reset  
not working instance

 ![image](https://dhis2.b-cdn.net/uploads/default/original/3X/8/a/8ae91ae2823c70b260f1d8be2de1a9ce6e43e76b.png)  
working instance  
 ![image](https://dhis2.b-cdn.net/uploads/default/original/3X/4/a/4a1e8e83815793e9fd4d4e197e54f16f2a636176.png)

I saw a ticket in the changelog talking about the new global2 dataset : [feat: new worldpop global2 layer sources [DHIS2-20774] by BRaimbault · Pull Request #3608 · dhis2/maps-app · GitHub](https://github.com/dhis2/maps-app/pull/3608)  
Is it possible that a new token should be re-issued ?  
or the working instance is using the old dataset despite the apps update ?

---

<div class="post-metadata">

**Author:** ![Stephan\_Mestach](https://dhis2.b-cdn.net/user_avatar/community.dhis2.org/stephan_mestach/32/40053_2.png) [@Stephan\_Mestach](https://community.dhis2.org/u/Stephan_Mestach)\
**Post date:** [17 August 2026 07:26 UTC](https://community.dhis2.org/t/google-thematic-maps-not-working/76103/2 "2026-08-17T07:26:14Z")

</div>

perhaps @Bruno can you help me ?

---

<div class="post-metadata">

**Author:** ![Gassim](https://dhis2.b-cdn.net/user_avatar/community.dhis2.org/gassim/32/35347_2.png) [@Gassim](https://community.dhis2.org/u/Gassim)\
**Post date:** [17 August 2026 09:31 UTC](https://community.dhis2.org/t/google-thematic-maps-not-working/76103/3 "2026-08-17T09:31:35Z")

</div>

Hi @Stephan_Mestach

Just one quick question please, are these two instances and apps all the same version (both the one that’s working and the one that’s not working)? You said you tried to upgrade the apps so they’re now the same versions on both instances?

Did you try to run the analytics tables export, clear the application cache and reset apps (from the Data Administration app), and then test while on your browser’s Guest mode? After running analytics tables export in the instance that’s not working, do you see any errors in the Catalina.out log (just to eliminate any DB issues)?

Thanks!

---

<div class="post-metadata">

**Author:** ![Stephan\_Mestach](https://dhis2.b-cdn.net/user_avatar/community.dhis2.org/stephan_mestach/32/40053_2.png) [@Stephan\_Mestach](https://community.dhis2.org/u/Stephan_Mestach)\
**Post date:** [17 August 2026 13:44 UTC](https://community.dhis2.org/t/google-thematic-maps-not-working/76103/4 "2026-08-17T13:44:46Z")

</div>

- dhis2 same version 2.42.5.1
- maps : was originally different, use latest on the non working one
  - working one was on 101.4.6  
 ![image](https://dhis2.b-cdn.net/uploads/default/original/3X/1/e/1e5b80c2847c9d5dcb89a4534612c8ce35df6bce.jpeg)
  - the non working one is now on 101.16.0
  - tried to rollback on 101.5.5 but it looks in weird state

- for cache
  - app cache cleaner
  - tried a fresh anonymous browser (firefox and google chrome)
    - They both show the same issue with urlFormat

![image](https://dhis2.b-cdn.net/uploads/default/original/3X/2/7/271872baaa3910fd75c6fdc84fed3a704b06e8bd.png)

Sorry but I won’t touch the working one… (don’t know to rollback)

---

<div class="post-metadata">

**Author:** ![Gassim](https://dhis2.b-cdn.net/user_avatar/community.dhis2.org/gassim/32/35347_2.png) [@Gassim](https://community.dhis2.org/u/Gassim)\
**Post date:** [17 August 2026 14:52 UTC](https://community.dhis2.org/t/google-thematic-maps-not-working/76103/5 "2026-08-17T14:52:28Z")

</div>

Thanks!

> [@Stephan\_Mestach](#):
>
> Sorry but I won’t touch the working one… (don’t know to rollback)

Yes, I’d only recommend making changes to a working production one, only after testing in a development environment.

I am not sure how to reproduce this on play, so I will go ahead and triage this and see if more info is needed or this is enough to be able to debug. Thanks again!

---

<div class="post-metadata">

**Author:** ![Stephan\_Mestach](https://dhis2.b-cdn.net/user_avatar/community.dhis2.org/stephan_mestach/32/40053_2.png) [@Stephan\_Mestach](https://community.dhis2.org/u/Stephan_Mestach)\
**Post date:** [18 August 2026 09:45 UTC](https://community.dhis2.org/t/google-thematic-maps-not-working/76103/6 "2026-08-18T09:45:55Z")

</div>

in the code I found

- [maps-gl/src/earthengine/ee\_worker.js at 6645474aab219167242e73e518642410ecf51792 · dhis2/maps-gl · GitHub](https://github.com/dhis2/maps-gl/blob/6645474aab219167242e73e518642410ecf51792/src/earthengine/ee_worker.js#L271)
- [maps-gl/src/earthengine/ee\_worker.js at 6645474aab219167242e73e518642410ecf51792 · dhis2/maps-gl · GitHub](https://github.com/dhis2/maps-gl/blob/6645474aab219167242e73e518642410ecf51792/src/earthengine/ee_worker.js#L249C46-L249C55)

I discovered that worker are hidden from the default / main devtools in most browsers, making it complicated to debug.  
I found a request to that seem to pass

[https://earthengine.googleapis.com/v1/projects/earthengine-legacy/algorithms?prettyPrint=false](https://earthengine.googleapis.com/v1/projects/earthengine-legacy/algorithms?prettyPrint=false)

but then I don’t see other requests to the earthengine api or errors.

Also noticed the geometries are 8Mb, I don’t know if there are limits or badly formatted or weird (they seem to display at least in the simple maps)

---

<div class="post-metadata">

**Author:** ![Stephan\_Mestach](https://dhis2.b-cdn.net/user_avatar/community.dhis2.org/stephan_mestach/32/40053_2.png) [@Stephan\_Mestach](https://community.dhis2.org/u/Stephan_Mestach)\
**Post date:** [24 August 2026 11:13 UTC](https://community.dhis2.org/t/google-thematic-maps-not-working/76103/7 "2026-08-24T11:13:48Z")

</div>

So I don’t know “why” but simplifying/cleaning the geometries fixed the issues.

Clearly I don’t know the link. I guess some operation is done to get a bbox or something like that and it slow/dying/… Strangely the shapes where ok in other maps but not once bundled for a google related map.

I made a [Dhis Taskr](https://apps.dhis2.org/app/2c3510dd-d471-4c9d-9f3d-fd4a8601fab9) recipe  
to update the geometries and now it’s fast and displaying data

> <https://gist.github.com/mestachs/50787c4a974614019a7e58942da67497#file-recipe-js>

 ![image](https://dhis2.b-cdn.net/uploads/default/original/3X/f/a/fa932d9c5120f25e75b83072b3dc3dc43e40e4a4.jpeg)

---

<div class="post-metadata">

**Author:** ![Bruno](https://dhis2.b-cdn.net/user_avatar/community.dhis2.org/bruno/32/43993_2.png) [@Bruno](https://community.dhis2.org/u/Bruno)\
**Post date:** [26 August 2026 07:21 UTC](https://community.dhis2.org/t/google-thematic-maps-not-working/76103/8 "2026-08-26T07:21:23Z")

</div>

Hi @Stephan_Mestach,

I was on leave, I’m glad you figured it out by yourself.  
More detailed geometries require more resources from Google Earth Engine to retrive the data, it seems plausible that you were hitting a limit there.

Here is a follow-up ticket I’ve created to see what we can do to catch these type of errors and provide user with helpful information: [JIRA - DHIS2-22015](https://dhis2.atlassian.net/browse/DHIS2-22015)  
Don’t hesitate to comment there if you want to add details or watch the ticket to follow its resolution.

Finally thanks for sharing your snippet of code. We have a section about geometry simplification in our documentation here: [Maps - DHIS2 Documentation](https://docs.dhis2.org/en/use/user-guides/dhis-core-version-master/configuring-the-system/maps.html), we’ve been recommending [MapShaper](https://mapshaper.org/), but a code based alternative certainly has its advantages. The use of `turf.simplify` is sensible.

---

<div class="post-metadata">

**Author:** ![Stephan\_Mestach](https://dhis2.b-cdn.net/user_avatar/community.dhis2.org/stephan_mestach/32/40053_2.png) [@Stephan\_Mestach](https://community.dhis2.org/u/Stephan_Mestach)\
**Post date:** [26 August 2026 14:11 UTC](https://community.dhis2.org/t/google-thematic-maps-not-working/76103/9 "2026-08-26T14:11:34Z")

</div>

Thanks, indeed the lack of error message or network error from the main app is not helping.

From my understanding each js worker is isolated in its own env (so debugger env too), making it hard to see the real error. The classic advice “look in the dev console” is not really working here.
