• Resolved gxtecoar

    (@gxtecoar)


    Hi,

    I started using your plugin and works great. I found out that when there are no events to show in the map it is not displayed. In the code it makes the initial position of the map from the markers list. No markers means no position, thus the map can’t be initialized.

    I’d like to show the map empty when there are no events, at least not have a transparent space in the site.

    I can think of two ways to solve this:
    1. Make position default to 0,0 when no events are found.
    2. Make it possible to specify a position in the shortcode [events_map]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Stonehenge Creations

    (@duisterdenhaag)

    Nope. The original Google maps in EM will show “Map unavailable”. People did not like that, so I configured the OSM add-on in such a way that it shows nothing.

    There si a difference in the placeholder #_LOCATIONMAP and the shortcodes, though. The placeholder will show nothing and the shortcodes will output “No locations/events found”.

    Plugin Author Stonehenge Creations

    (@duisterdenhaag)

    Also, in the admin if there no coordinates yet, the map is shown as empty and users find that confusion already… ??

    Thread Starter gxtecoar

    (@gxtecoar)

    Ok, thank you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Show empty map when there are no events’ is closed to new replies.