Support » Plugin: Events Manager » CSS rule that breaks the buttons in Google Maps

  • Resolved mustermann

    (@mustermann)


    Hi, I use WP 5.0.2 an in my WP backend. The buttons from Google-Maps on the right side of all maps are ok. If I look at the user website there are wrong buttons. With other words the buttons in the WP backend are different from the users website.

    Here is an example of the wrong buttons on Google maps:

    https://oldtimer-veranstaltung.de/kalender/termine/150er-rallye-2/

    As attached you can see the google-map in the WP-Backend.

    This happened in Firefox, Safari, Google Chrome and Opera.

    I found this CSS rule that breaks the buttons:

    .em-location-map img, .em-locations-map img, #em-map img {margin:0 !important}

    But this CSS code doesn’t come from the used theme.

    Do you have a solution for the wrong button in Google Maps?

    Thanks for help
    Michael Held

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 17 total)
  • With regards to your concern, the reason why you are having multiple icons on the buttons is because you are using the same image 3 times. For example, if you search this in your code:

    You will notice that this is implemented 3 times. To fix the issue, you will simply need to remove 2 of the same image. Attached is how I found out about this.

    Why does Event-Manager Software display three times the image from Google Maps?

    Thank you for help
    mustermann

    Your code is lost…
    Please use the code brackets.

    And for the good order πŸ˜‰
    It is not showing the same image three times. It’s actually one sprite image with three different shades for the rollover effect.

    Removing the css lines, removes the rollover effect. But it does look better.
    https://www.w3schools.com/css/css_image_sprites.asp

    Here is the code – sorry for the mistake:

    []

    Nope… There is a button above you need to use, or to do it manually: wrap your code in backticks.

    Soory, I get this feedback from Google Maps Platform technical support:

    “Hi,

    You are now through Google Maps Platform technical support. My name is Ricky and I’ll be happy helping you today with your issue.

    Before I proceed, please note that WordPress is a third party application which is out of our scope, reason being, WP themes/plugins are created by many different developers which implement our APIs differently and that the code cannot be modified other than themselves, so I can only help you out in a best effort manner if the issue is on their side.

    With regards to your concern, the reason why you are having multiple icons on the buttons is because you are using the same image 3 times. For example, if you search this in your code:

    You will notice that this is implemented 3 times. To fix the issue, you will simply need to remove 2 of the same image. Attached is how I found out about this.

    Should you need more clarifications or if you have any more doubts, feel free to let me know.

    Regards,
    Ricky C
    Google Maps Platform Technical Support (APAC)
    ref:_00D00VNwG._500f21KXcrU:ref”

    I donΒ΄t understand waht I have to do in which file? The WP Plugin Event Manager display via API the Google Maps.

    Thank you for help.

    Next test with brakets:

    <img src="data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2218%22%20height%3D%2218%22%20viewBox%3D%220%20018%2018%22%3E%0A%20%20%3Cpath%20fill%3D%22%23666%22%20d%3D%22M0%2C0v2v4h2V2h4V0H2H0z%20M16%2C0h-4v2h4v4h2V2V0H16z%20M16%2C16h-4v2h4h2v-2v-4h-2V16z%20M2%2C12H0v4v2h2h4v-2H2V12z%22%2F%3E%0A%3C%2Fsvg%3E%0A" style="height: 18px; width: 18px; margin: 11px;">

    Google simply gave you a wrong answer. THEY provide the images upon every map load. THEY send them as sprites. Not EM. The problem is caused by something between Google and EM in their CSS, but it only occurred after Google changed their API.

    And to be frank, you do not see 3 exactly the same images, do you? They are in different shades. You cannot shade an image with css. So that proves that their answer is incorrect. πŸ˜‰

    YEEY!!! You did it You got it to actually display code πŸ™‚ WHOOP πŸ™‚

    Thank you for help and feedback. Waht shell I do. I did not know the code from Event Manager (EM).

    So it make no scence to send it to Google Support.

    EM should find a solution with Google Maps API.

    Yes they should… And I do agree it is taking the dev’s way too long by now.

    But for the time being, I created an alternative that complete eliminates Google Maps πŸ™‚
    https://wordpress.org/plugins/stonehenge-em-osm/

    Patrick,
    that is a good idea to say Google Maps good bye. I will read the plugin installation guide to go with EM to Open Street Maps.

    I hope it will work.

    Thank you for help.

    I did answer a post in the Pro forum about this. It is the events-manager.css file from the plugin that contains these amendments. This appears to be incompatible with the map update from Google.
    Updates were made by Support on other posts with the same problem the next day saying the devs were aware (though there is no update to my post from 2 weeks ago).
    For now, I’ve commented out these lines hoping that they will be removed in the next update.

    Gerry (another EM user)

    Patrick (@duisterdenhaag),
    thanks a lot for this welcome OpenStreetMaps addition !
    For the record, the French translation is just waiting for approval, 100% complete.
    https://translate.wordpress.org/projects/wp-plugins/stonehenge-em-osm

    Cheers,
    Thierry

    Hi Thierry,

    That is great news! Thank you so much πŸ™‚
    You may also send the .po file to me directly, so I can include it in the download.

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘CSS rule that breaks the buttons in Google Maps’ is closed to new replies.