# Help with Maps in Narrative Web Site needed

**URL:** <https://gramps.discourse.group/t/help-with-maps-in-narrative-web-site-needed/2714>\
**Category:** Help\
**Tags:** third-party-addon, websolutions\
**Created:** [August 23, 2022, 8:52am UTC](https://gramps.discourse.group/t/help-with-maps-in-narrative-web-site-needed/2714 "2022-08-23T08:52:20Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![AlfredKa](https://avatars.discourse-cdn.com/v4/letter/a/8491ac/32.png) [@AlfredKa](https://gramps.discourse.group/u/AlfredKa)\
**Post date:** [August 23, 2022, 8:52am UTC](https://gramps.discourse.group/t/help-with-maps-in-narrative-web-site-needed/2714/1 "2022-08-23T08:52:20Z")

</div>

Gramps 5.1.5, Windows 10

Actually Maps generated by “Narrative Web Site” Report and OpenStreetMap choosen as Map-Service are empty. First thought I have to configure somehow, but didn’t find anything. Any ideas how to make OpenStreetMap work ith Narrative Web Site Report ?

Also I was looking in google as MAP-Service which requires an API key. I found a description fpr gramps in [Integrate google maps with narrative web site - Gramps](https://www.gramps-project.org/wiki/index.php/Integrate_google_maps_with_narrative_web_site) , but to me it looks like it expects a nonlocal Website

---

<div class="post-metadata">

**Author:** ![pgerlier](https://avatars.discourse-cdn.com/v4/letter/p/41988e/32.png) [@pgerlier](https://gramps.discourse.group/u/pgerlier)\
**Post date:** [August 23, 2022, 9:52am UTC](https://gramps.discourse.group/t/help-with-maps-in-narrative-web-site-needed/2714/2 "2022-08-23T09:52:34Z")

</div>

Is your link to OSM http: or https: ? I remember having had problems with that and I patched NarrativeWeb generator. But it may also happen when I query the pages from another computer on the LAN, i.e. a reference to the local server + references to OSM. Under some circumstances, the browser may object, suspecting an XSS attack, and may refuse to display the map.

You may also need to adjust your firewall configuration to allow “mixed” data sources for the pages.

---

<div class="post-metadata">

**Author:** ![DougRB](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/dougrb/32/3706_2.png) [@DougRB](https://gramps.discourse.group/u/DougRB)\
**Post date:** [August 23, 2022, 10:45am UTC](https://gramps.discourse.group/t/help-with-maps-in-narrative-web-site-needed/2714/3 "2022-08-23T10:45:54Z")

</div>

It seems to be a bug in NarWeb. I first had trouble with  
Google when they changed their terms and conditions for use  
of Google Earth; but Open Street Map was still functioning  
in early July this year. Now I have the same problem as you

- blank Map pages even with Open Street Map. It’s reported  
as issue #0012680 on the BugTracker.  
Let’s hope there’s an early solution!

( The Integrate google maps with narrative web site  
[https://www.gramps-project.org/wiki/index.php/Integrate\_google\_maps\_with\_narrative\_web\_site](https://www.gramps-project.org/wiki/index.php/Integrate_google_maps_with_narrative_web_site)  
is years out of date).

---

<div class="post-metadata">

**Author:** ![emyoulation](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/emyoulation/32/67_2.png) [@emyoulation](https://gramps.discourse.group/u/emyoulation)\
**Post date:** [August 23, 2022, 11:08am UTC](https://gramps.discourse.group/t/help-with-maps-in-narrative-web-site-needed/2714/4 "2022-08-23T11:08:21Z")

</div>

Just so we don’t skip the basic sanity check before troubleshooting reports and external tools …

1. Does the Geography view show markers for events of the target person?
2. Does the target person have a Death event? (Verifying the “Probably Alive” filters don’t apply.)
3. Is anything (Person, Event, or Place) marked as ‘Private’?
4. What filters are being used for the report?

---

<div class="post-metadata">

**Author:** ![TomH](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/tomh/32/8_2.png) [@TomH](https://gramps.discourse.group/u/TomH)\
**Post date:** [August 23, 2022, 11:12am UTC](https://gramps.discourse.group/t/help-with-maps-in-narrative-web-site-needed/2714/5 "2022-08-23T11:12:03Z")

</div>

Are you able to look at the network tab in the browser debugger and see if it’s actually trying to request map tiles from [openstreetmap.org](http://openstreetmap.org)? and if it is exactly what URLs it is using and what HTTP response code it is getting?

---

<div class="post-metadata">

**Author:** ![AlfredKa](https://avatars.discourse-cdn.com/v4/letter/a/8491ac/32.png) [@AlfredKa](https://gramps.discourse.group/u/AlfredKa)\
**Post date:** [August 23, 2022, 12:23pm UTC](https://gramps.discourse.group/t/help-with-maps-in-narrative-web-site-needed/2714/6 "2022-08-23T12:23:53Z")

</div>

Actually all the aspects you mention should be ok, since Narrative Web using google as Map-Service works fine for my database resp. Map-Place (besides the darkeing because of missing API). Thus I assume issue associated with Map-Service Open-Street Map. I also issue a bug report yesterday - see [0012315: Narrative Web – more complete places - Gramps - Bugtracker – Free Genealogy Software](https://gramps-project.org/bugs/view.php?id=12315).  
Also [0012680: No Map Service for Narrative Web Report - Gramps - Bugtracker – Free Genealogy Software](https://gramps-project.org/bugs/view.php?id=12680) states:  
until (at least) 22/07/11 NarWeb showed Family maps, providing Open Street Map was selected as the map service. Without any change to my system, NarWeb now fails to show any map, even with Open Street Map selected

---

<div class="post-metadata">

**Author:** ![AlfredKa](https://avatars.discourse-cdn.com/v4/letter/a/8491ac/32.png) [@AlfredKa](https://gramps.discourse.group/u/AlfredKa)\
**Post date:** [August 23, 2022, 2:21pm UTC](https://gramps.discourse.group/t/help-with-maps-in-narrative-web-site-needed/2714/7 "2022-08-23T14:21:10Z")

</div>

I made some screenshots for different bevaviour of same Map do be shown. Hope this helps experts to track down and solve issue,

 ![NarWeb OSM Problem - google](https://global.discourse-cdn.com/free1/uploads/gramps/original/2X/f/f534e61f3bc98923fe2d2c6a06ae42fc2f6ef706.jpeg)  
 ![NarWeb OSM Problem - OSM](https://global.discourse-cdn.com/free1/uploads/gramps/original/2X/1/1de3d3511f916903ea5981d383dfc9566e67d788.jpeg)  
 ![NarWeb OSM Problem - comparison behaviour](https://global.discourse-cdn.com/free1/uploads/gramps/original/2X/9/9c04db1262329f04e8cf76d4e1954958e20cb9cc.jpeg)

---

<div class="post-metadata">

**Author:** ![TomH](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/tomh/32/8_2.png) [@TomH](https://gramps.discourse.group/u/TomH)\
**Post date:** [August 23, 2022, 2:59pm UTC](https://gramps.discourse.group/t/help-with-maps-in-narrative-web-site-needed/2714/8 "2022-08-23T14:59:11Z")

</div>

That looks like it is OpenLayers failing to load rather than the tiles for the OpenStreetMap case so that is likely a problem with the generated site not including `ol.js` and `ol.css` in the right place given that it’s getting a 404 error for them.

---

<div class="post-metadata">

**Author:** ![emyoulation](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/emyoulation/32/67_2.png) [@emyoulation](https://gramps.discourse.group/u/emyoulation)\
**Post date:** [August 23, 2022, 3:22pm UTC](https://gramps.discourse.group/t/help-with-maps-in-narrative-web-site-needed/2714/9 "2022-08-23T15:22:50Z")

</div>

Your profile does not say what OS you operate.

Microsoft recently made some account credentials changes that affect internet access. (Persistent log-ins are more problematic now. It is necessary to repeatedly log-in for the [Gramps wiki](https://gramps-project.org/wiki/index.php/Gramps_5.1_Wiki_Manual#Table_of_Contents) during a session now. And I am getting booted from the Element/Riot forum too.)

Perhaps these map server problems are symptoms of those credentialing changes?

---

<div class="post-metadata">

**Author:** ![AlfredKa](https://avatars.discourse-cdn.com/v4/letter/a/8491ac/32.png) [@AlfredKa](https://gramps.discourse.group/u/AlfredKa)\
**Post date:** [August 23, 2022, 4:10pm UTC](https://gramps.discourse.group/t/help-with-maps-in-narrative-web-site-needed/2714/10 "2022-08-23T16:10:51Z")

</div>

My OS is  
Windows 10 Pro  
Version 21H2 (Build 19044.1889)

---

<div class="post-metadata">

**Author:** ![DougRB](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/dougrb/32/3706_2.png) [@DougRB](https://gramps.discourse.group/u/DougRB)\
**Post date:** [August 23, 2022, 6:52pm UTC](https://gramps.discourse.group/t/help-with-maps-in-narrative-web-site-needed/2714/11 "2022-08-23T18:52:20Z")

</div>

Any suggestions for correcting this bug?

---

<div class="post-metadata">

**Author:** ![DaveSch](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/davesch/32/40_2.png) [@DaveSch](https://gramps.discourse.group/u/DaveSch)\
**Post date:** [August 23, 2022, 8:10pm UTC](https://gramps.discourse.group/t/help-with-maps-in-narrative-web-site-needed/2714/12 "2022-08-23T20:10:43Z")

</div>

@SNoiraud has posted to [Bug #0012680](https://gramps-project.org/bugs/view.php?id=12680#c64198)

---

<div class="post-metadata">

**Author:** ![AlfredKa](https://avatars.discourse-cdn.com/v4/letter/a/8491ac/32.png) [@AlfredKa](https://gramps.discourse.group/u/AlfredKa)\
**Post date:** [August 23, 2022, 9:12pm UTC](https://gramps.discourse.group/t/help-with-maps-in-narrative-web-site-needed/2714/13 "2022-08-23T21:12:00Z")

</div>

Thanks for posting the adoptions in the bug report:  
If you want to continue to use openlayers, you need to change the following lines:  
in the place.py from the webreport directory  
replace “latest” by “v6.15.1” at lines 387 and 390  
and in person.py in the same directory  
replace “latest” by “v6.15.1” at lines 722 and 725  
Then you create the report again.  
Please could you explain how to find the “webreport directory” resp. place.py person.py. I can find frame\_place.py and page\_place.py, but those are wrong  
Thanks  
Alfred

---

<div class="post-metadata">

**Author:** ![DaveSch](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/davesch/32/40_2.png) [@DaveSch](https://gramps.discourse.group/u/DaveSch)\
**Post date:** [August 23, 2022, 9:41pm UTC](https://gramps.discourse.group/t/help-with-maps-in-narrative-web-site-needed/2714/14 "2022-08-23T21:41:12Z")

</div>

In your Gramps program directory:

`gramps\plugins\webreport\`

This contains the various component program files for the Narrated Web and the Web Calendar

---

<div class="post-metadata">

**Author:** ![DaveSch](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/davesch/32/40_2.png) [@DaveSch](https://gramps.discourse.group/u/DaveSch)\
**Post date:** [August 23, 2022, 9:51pm UTC](https://gramps.discourse.group/t/help-with-maps-in-narrative-web-site-needed/2714/15 "2022-08-23T21:51:27Z")

</div>

Making these changes works!! 👏🏻 👏🏻

---

<div class="post-metadata">

**Author:** ![AlfredKa](https://avatars.discourse-cdn.com/v4/letter/a/8491ac/32.png) [@AlfredKa](https://gramps.discourse.group/u/AlfredKa)\
**Post date:** [August 23, 2022, 10:17pm UTC](https://gramps.discourse.group/t/help-with-maps-in-narrative-web-site-needed/2714/16 "2022-08-23T22:17:50Z")

</div>

Dave, thanks a lot - works perfectly

---

<div class="post-metadata">

**Author:** ![SNoiraud](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/snoiraud/32/72_2.png) [@SNoiraud](https://gramps.discourse.group/u/SNoiraud)\
**Post date:** [August 24, 2022, 11:39am UTC](https://gramps.discourse.group/t/help-with-maps-in-narrative-web-site-needed/2714/17 "2022-08-24T11:39:25Z")

</div>

I think I’ll add an option for 5.2  
by default, the “latest” version is the best choice.  
I added an optional value which will be available for 5 or 6 years.  
Changing the gramps.ini will permit to change this value.

…  
[external\_modules]  
;;openlayers\_version=‘v6.15.1’  
…

---

<div class="post-metadata">

**Author:** ![SNoiraud](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/snoiraud/32/72_2.png) [@SNoiraud](https://gramps.discourse.group/u/SNoiraud)\
**Post date:** [August 25, 2022, 7:53am UTC](https://gramps.discourse.group/t/help-with-maps-in-narrative-web-site-needed/2714/18 "2022-08-25T07:53:27Z")

</div>

The option could be defined as in the snapshot below:

 ![open_layer_version](https://global.discourse-cdn.com/free1/uploads/gramps/original/2X/b/b2b982abfe3f863cd4d3d91fe9411c900dab0609.png)

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/gramps/original/1X/2ac1e712b7adf612e31ca08a55419f4cf37c0158.png) [@system](https://gramps.discourse.group/u/system)\
**Post date:** [September 24, 2022, 7:54am UTC](https://gramps.discourse.group/t/help-with-maps-in-narrative-web-site-needed/2714/19 "2022-09-24T07:54:19Z")

</div>

Closed on September 24, 2022, 7:54am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
