Google Map loads when no data is present
-
Hi Rank Math,
Currently, the plugin displays a Google Map on the Contact page of the website even though I have not added an API key or Latitude and Longitude settings in your plugin.
I have to use the following CSS to hide the Google Map generated by the plugin. Here is the code I use:
/* RANK MATH */ .rank-math-contact-map { display: none; }
I have included a link to a screenshot showing a custom map I have embedded and I will discuss below (labelled 1) and the frontend content generated by the local schema settings in your plugin (labelled 2).
Having the local schema generated is very important but as I need to use another map I don’t want your map to appear and I can’t understand why it appears even with no Google API key or latitude and longitude settings added to your plugin.
I have to display the Google Map using separate embed code due to the content referrer policy of the website not allowing your iFrame generated by your plugin to load Google Map. Here is the embed code I use to display the map:
<iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d296929.7331632122!2d-6.253777046191908!3d54.44946049932725!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x4860da58d38c5791%3A0x8230cf3ed41bae6f!2sHub%20Packaging%20Limited%20-%20Northern%20Ireland!5e0!3m2!1sen!2suk!4v1622012612410!5m2!1sen!2suk" width="600" height="450" style="border:0;" allowfullscreen="" loading="lazy"></iframe>
Even though I have hidden your Google map with CSS, it is still generating frontend code as can be seen from this screenshot of console errors.
Kind regards,
Simon
The page I need help with: [log in to see the link]
- The topic ‘Google Map loads when no data is present’ is closed to new replies.