Google Map api added a range (BESbewy) when loading a page, why?

Google map api added scrolling using a specific word with some CSS style that would violate the contents of my page on a mobile site

+6
source share
2 answers

Usually in Api google maps, β€œBESBEWY” occurs at the end of the range and some CSS identifier is used, try the following:

$('body > span').each(function () { if ($(this).text() === 'BESbewy') { $(this).hide(); } }); 
+7
source

instead of using jQuery and loops, you can use XPath to get the element (and then check if it exists explicitly):

 var unwantedSpan = document.evaluate( '//body/span[text()="BESbswy"]', document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null ).singleNodeValue 

Or, if all you need is a Chrome browser, you can simply use

 var unwantedSpan = $('//body/span[text()="BESbswy"]') 

This range is only added on mobile devices and is performed using Google maps for calculation purposes.

+1
source

All Articles