Google map api added a span using some specific word with some css style that will break my page content in mobile site
Unless a valid API key is present, the map will be displayed in a lower resolution and will have a watermark on it. If the credit card linked to the account is invalid or the number of free map views is surpassed, the "This Page Can't Load Google Maps Correctly" error will show up.
bounds_changed event fires repeatedly when the map is panning or dragging; I'd expect it to fire only when the move has finished.
While there is no maximum number of requests per day, the following usage limits are in place for the Maps JavaScript API: 30,000 requests per minute. 300 requests per minute per IP address. In the Google Cloud Console, this quota is referred to as Map loads per minute per user.
Normally in google maps Api "BESBEWY" occurs at the end of span, on that span some CSS id applied, try this:
$('body > span').each(function () {
if ($(this).text() === 'BESbewy') {
$(this).hide();
}
});
instead of using jQuery and loops you could use XPath to get the element ( and then check if it is exist obviously):
var unwantedSpan = document.evaluate(
'//body/span[text()="BESbswy"]', document,
null, XPathResult.FIRST_ORDERED_NODE_TYPE, null
).singleNodeValue
Or if all you care is Chrome browser you could just use
var unwantedSpan = $('//body/span[text()="BESbswy"]')
This span is added in mobile only and done by google maps for calculations purposes.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With