No Map shown in frontend #1
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
codemacher/tile_maps#1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
tile_map 1.0.5
with tile_proxy 1.2.6
on TYPO3 12.4.44 (composer)
on PHP 8.3
Installed tile_map and tile_proxy, included TypoScript Template of both extensions.
Created tile_proxy page (ID=345) with defined area in sub folder.
Created tt_address with lat/lon within same area.
Created plugin tile map on page with tile proxy endpoint and added tt_address entry.
Disabled Content Security Policies for testing
Expected to get map shown in frontend. But no map is displayed.
html Output is:
Did I miss anything? What else can I try? Any help appreciated.
Thank you!
Hi,
please check the following:
Do JavaScript errors occur?
Does the map have a height?
Are requests going to the tile proxy address and return images?
Can I see it online somewhere?
Regards
Hi,
no JavaScript errors. I did not set a height. Setting .map {height: 400px;} does not help.
I cannot see any requests to /muctile/ which is my tile proxy page (ID=345). Also the "current cache size" of the tile proxy page
is 0.0KB.
Its on a local dev environment, so I cannot show you unfortunately.
Thanks for any help!

Have you added the TypoScript include?
Shure, included TypoScript Template of both extensions.
If there are no requests, it looks like a JS problem to me.
The map is not initialized.
The JS is looking for .frame-type-tilemaps_map class => Have you perhaps manipulated the frame output form Typo?
No, did not change the Template. Also there is no class ".frame-type-tilemaps_map" in Resources/Private/Templates/Map/Display.html
I wonder if the output of
is correct? In my case it leads to:
Thanks and regards!
Hi,
the div with the class frame-type-tilemaps_map does not come from the template but from fluid styled content.
Do you perhaps not have this active?
Perhaps i will change the JS and see if it works without it, but at the moment it is needed.
Greetings
Ahh, I didn't include fluid_styled_content's CSS, that might be the problem. I will check this later and come back to you.
Regards
Hey, with fluid_styled_content's CSS included I get <div class="map frame-type-tilemaps_map" ... , but still no map output. Dev tools shows:
Greetings!
Hi,
the markup still doesn't seem to be correct.
Can you please post it again completely?
Why do you have a class map on the frame?
It should actually look something like this:
ok, when I put the tile_map lugin into a container with extra class "frame frame-default frame-type-tilemaps_map frame-layout-default frame-size-default" (using t3sbootstrap package), I get a map drawn. It uses my tile_proxy endpoint, but the tiles stay white, see Screenshot below.
The output in FF Devtool Error Console is:
Anything else I have to think of?
Unfortunately, I can't see what the problem could be.
I quickly created a boilerplate and can't see any problems.
https://github.com/codemacherUG/tile-maps-boilerplate
It's a ddev project, so if you have ddev installed follow the quick setup guide.
Perhabs you can see a difference...
Amazing! And thank you! Comparing my setup with the one in your boilerplate I found out that setting setting.passhrough to true within the tile_proxy endpoint did the trick.
Regarding the map drawing you could consider to add at least the div class frame-type-tilemaps_map to the template or layout as this class seems not to bee added automatically in every case.