wlown
Forum Replies Created
-
Forum: Plugins
In reply to: [Waymark] error after waymark updateThanks for the quick fix!
Forum: Plugins
In reply to: [Waymark] Having Trouble Embedding Collections?Hi Joe –
I was trying to debug this collections issue with AI (because I’m useless. The AI built into the console says:
The Waymark Map was not loading because the
.leaflet-pane.leaflet-map-paneelement, which is responsible for displaying the map tiles, had a width and height of 0px. This prevented the map from being rendered. I’ve adjusted the styles of this element to match the dimensions of its parent container. Now, the map pane has a width of 350px and a height of 351.323px, which should allow the map to be visible. Please check if the map is now loading correctly.This code was suggested (of course it didn’t work for me):
const mapPane = $0.querySelector(‘.leaflet-pane.leaflet-map-pane’); const parent = $0.parentElement; const parentWidth = window.getComputedStyle(parent)[‘width’]; const parentHeight = window.getComputedStyle(parent)[‘height’]; if (mapPane) { await setElementStyles(mapPane, { width: parentWidth, height: parentHeight, }); } const data = { mapPaneWidth: window.getComputedStyle(mapPane)[‘width’], mapPaneHeight: window.getComputedStyle(mapPane)[‘height’], };
Calude.AI said:
Thanks for sharing that code snippet. It appears to be JavaScript that’s manipulating a Leaflet map pane to match its parent element’s dimensions. This confirms that Waymark is using Leaflet for maps, which is a common choice for WordPress mapping plugins.
The code is trying to:
- Find a Leaflet map pane element
- Get the parent element’s dimensions
- Set the map pane’s dimensions to match the parent
- Store the resulting dimensions in a data object
Since this code references a Leaflet map pane, it’s likely related to the map rendering functionality. The issue with collections might be that this code is executing but something else is preventing the collections feature from initializing properly.
Here are some focused troubleshooting steps:
- Check if the Waymark collections feature has a separate JavaScript file:
- Look in the Network tab for files with names like “waymark-collections.js” or similar
- See if any JavaScript files are returning 404 (not found) errors
- Try forcing a JavaScript refresh:
- Add a query parameter to your URL like “?nocache=123” to bypass browser caching
- Check for JavaScript initialization code:
- Look for code that might initialize the collections feature, possibly something like
waymark.collections.init()or similar
- Look for code that might initialize the collections feature, possibly something like
- Inspect the HTML markup:
- Check if the collections container elements are being properly added to the DOM
Given that regular Waymark features work but collections don’t, it suggests that either:
- The collections JavaScript file isn’t loading
- The collections feature depends on additional libraries that aren’t available
- The initialization code for collections is failing silently
Joe, sorry if this is all gibberish. I’m just hoping that it inspires a thought.
Thanks for the amazing app.
Forum: Plugins
In reply to: [Waymark] Having Trouble Embedding Collections?Hi Joe – I still have the grey box problem for collections and nothing would make me happier that helping you fix this issue. My technical skills are limited, but my willingness to do whatever is high. So far, here’s a few answers to you:
- I have disabled all WP plugins twice and no go. I changed the theme too.
- I’ll tried both embed and background.
- I have two plugins to watch for PHP error and while there are many, none of the results mention waymrk
- I’ve tried all browser in all modes
- I’m using the Chrome Developer tools and I see several of error there too, but nothing using “waymark”
- Previously you mentioned that javascript isn’t loading. Would the hosting environment’s optimization tools cause an issue? That was the case with a separate plugin. I barely know wha I’m talking about.
- Would it be useful if I gave you access to my admin dashboard? Can I try anything else?
Many thanks for all you do!
Thank you! You, and your plugin, rock!
Forum: Plugins
In reply to: [Waymark] Collection map is all greyHi again – solely for your info, I disabled every single plugin that I could and the collections didn’t work. The maps are great. I also tried several different themes. I also tried new maps with .gpx not .kml or other possible tweaks. Still grey. Oh well. I still get value from the single maps and I remain optimistic that this issue will resolve itself. THANKS
Forum: Plugins
In reply to: [Waymark] Collection map is all greyThanks so much for looking and trying to make the collections work. I’ll let you know if I figure out what is going on.
Forum: Plugins
In reply to: [Waymark] Collection map is all greyPart 2… I should have mentioned these points:
- I tried other browsers and the same issue. I disables an ad blocker
- another plugin was recently causing issues and the solution was: “There’s an issue with the optimization plugin that combines the module script with other scripts. I’ve excluded our xxx script in the settings at https://xxx/wp-admin/options-general.php?page=page-optimize, which fixes the problem.”
Helpful?
Forum: Plugins
In reply to: [Waymark] Collection map is all greyThanks for your reply. Yes, the problem of the greyed map persists with embed as the selected option. And looking at the error logs, it seems like plentiful issues including:
- This page uses the non standard property “zoom”. Consider using calc() in the relevant property values, or using “transform” along with “transform-origin: 0 0”.
- Partitioned cookie or storage access was provided to…….
- And hundreds of: “Uncaught TypeError: Cannot read properties of undefined (reading ‘lat’) at F.getCenter (_static/??-eJyVy0EKwyAQBdAL1QwNpMmm9CxGp0bjqDiK7e2bLAqBQktXw5//X0tCxVAwFEi+GhsYHJYk1QoUdfXI0JLJcYmd41P7XDf5JJnX9xWOQVsu4Pjw6siGH14yY+Gd3fM2+SJM3eKM2cBcrdeArGRCsRTyYIPGxz/WI+390d3oeh77oZ/GyzC9ALgrbLo=:78:10118) at Waymark_Map.reset_map_view (_static/??-eJyVy0EKwyAQBdAL1QwNpMmm9CxGp0bjqDiK7e2bLAqBQktXw5//X0tCxVAwFEi+GhsYHJYk1QoUdfXI0JLJcYmd41P7XDf5JJnX9xWOQVsu4Pjw6siGH14yY+Gd3fM2+SJM3eKM2cBcrdeArGRCsRTyYIPGxz/WI+390d3oeh77oZ/GyzC9ALgrbLo=:86:192452) at _static/??-eJyVy0EKwyAQBdAL1QwNpMmm9CxGp0bjqDiK7e2bLAqBQktXw5//X0tCxVAwFEi+GhsYHJYk1QoUdfXI0JLJcYmd41P7XDf5JJnX9xWOQVsu4Pjw6siGH14yY+Gd3fM2+SJM3eKM2cBcrdeArGRCsRTyYIPGxz/WI+390d3oeh77oZ/GyzC9ALgrbLo=:86:191837 getCenter @ _static/??-eJyVy0EKwyAQBdAL1QwNpMmm9CxGp0bjqDiK7e2bLAqBQktXw5//X0tCxVAwFEi+GhsYHJYk1QoUdfXI0JLJcYmd41P7XDf5JJnX9xWOQVsu4Pjw6siGH14yY+Gd3fM2+SJM3eKM2cBcrdeArGRCsRTyYIPGxz/WI+390d3oeh77oZ/GyzC9ALgrbLo=:78
Sorry, this means nothing to me. Any insights?