• Resolved antonyvk

    (@antonyvk)


    Hi !

    It’s more a feature request than a support question. I’d like to display a map of all future published events, like you can see on eventbuilder theme : https://wpeventbuilder.com/demos/demo_one/home-2/

    I quickly looked if your plugin is working with this theme but they have their own event plugin, with I’m not interrested in because I need an event plugin opened to users as yours.

    Thanks for your help !

Viewing 9 replies - 1 through 9 (of 9 total)
  • To answer your basic question. Yes.
    You can make the map as big as you want.. using shortcode(s).
    https://wp-events-plugin.com/documentation/shortcodes/
    scroll down to Location Shortcodes
    Or in the basic settings for the plugin for a generic site wide implementation.

    Clustering of icons (map placeholders).
    Well yes and no. Yes there is a “hack” in pastebin describing how to do it.
    I haven’t seen anybody do it.. nor have I tried but it is possible and you would have to do the work yourself. The code may be outdated.
    https://pastebin.com/zs7PP25h

    Shortcodes use “search” attributes…
    https://wp-events-plugin.com/documentation/event-search-attributes/
    You can show future and past events.. with attribute scope=XXX… and or specific dates.
    Accepted Arguments : future, past, today, tomorrow, month, next-month, 1-months, 2-months, 3-months, 6-months, 12-months, all

    The “zoom” of the map is “fixed”… what I mean about that is if all your events are in one city.. the map will zoom to the level showing those events.
    If you have events in America, and Africa.. the map would be be similar to the link you posted.
    You may “hard code” the zoom level.. I haven’t tried.

    Having different Icons (placeholders) for a category or event.
    This has been done, only for category from what I have seen, and I am doing it on one of my sties. But requires a bunch of coding and knowledge of javascript and Google Maps API. There are a number of threads here discussing it.. you will have to discover them by searching. And also requires custom coding of this plugin…

    There is a lot to do with this plugin.
    Also you will need to know about placeholders to really utilize the full potential.
    https://wp-events-plugin.com/documentation/placeholders/
    And the basic documentation.
    https://wp-events-plugin.com/documentation/

    I am not part of support.. just poke my nose in when things are slow on my personal websites.

    Good luck ??

    Thread Starter antonyvk

    (@antonyvk)

    Hi !

    Thanks for your reply ! I tried to use js-marker-clusturer, it looks fine but the code is – as you said – outdated and I don’t find the bug that don’t make single markers disappear when the cluster appears :/ Worked on it all this day with no success T_T

    Sorry for the delay in getting back to you. This should help:
    https://pastebin.com/zs7PP25h

    Thread Starter antonyvk

    (@antonyvk)

    It’s the same code as Robswaimea linked. There’s a 404 on https://google-maps-utility-library-v3.googlecode.com/svn/trunk/markerclusterer/src/markerclusterer.js

    I cloned git project on my server but the code don’t work correctly :/
    You can see the result here : https://travel.visual-k.fr/all-events/
    When you zoom out, you see the cluster, but markers are still here… -_- Still no idea how to solve it…

    Thanks for your work.. no good news on my end.. I hacked around with it today, having a little more knowledge and with my experience modifying.

    I could use this feature.. I have over 400 locations.

    Just one of those projects I will set aside and come back to and hopefully figure out.

    Wellllllll…. after much reading, and just throwing rocks at this project….

    It seemed like to me what was happening, was the the cluster js file, was doing it’s own thing.
    And Events Manager file events-manager.js was also adding icons to the map.

    In the file events-manager.js (in includes/js folder)
    On or about line 870…
    position: location,

    just comment out the line as in below..
    // position: location,

    I test with a small sample of 20 locations for one town like this…
    [locations_map width="800px" height=400px" town="InsertYourTownName"]

    and with all my 400 locations…
    [locations_map width="800px" height=400px"]

    BUT…. the problem is now… is you click on the “single” location icon.. no data ie the “Bubble” window does not appear.. nor if you hover over the “single” location does the pop up “Title Appear”.

    Maybe a work around with some coding… but at least we are getting some where.

    • This reply was modified 8 years, 1 month ago by Robswaimea.
    • This reply was modified 8 years, 1 month ago by Robswaimea. Reason: corrected errors as I found a bug
    Thread Starter antonyvk

    (@antonyvk)

    Wonderful ??
    So a solution for data icons may probably be in a complete read of data variable and include all content of data[i] when generating the marker… I will look at it ??

    One step further on the path to glory….

    In the javascript code for your header… insert this line..
    marker.setTitle(data[i].location_name);

    just above the following line…
    markers.push(marker);

    This will produce the Pop Up Title…

    No “Info Box” that is the stuff for var myContent
    approx line 876 events-manager.js
    for the location that you would normally see when clicking on the single icon…

    Hopefully we can figure that out too !

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Big Map Events ?’ is closed to new replies.