• Resolved fersamp

    (@fersamp)


    Hi guys,
    I have some questions about Location Map:
    1) How can I set the city of rome as default position, so that the start zoom is on the whole city?
    2) Can I deactivate map zooming through mouse wheel?
    3) Is it possible to enlarge the popup that is shown when you click on a baloon? I’d like to customize the popup, both in size that in contents.

    https://wordpress.org/plugins/events-manager/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi,

    These aren’t things that can be done through the settings panel, so you’d need to do some custom coding.

    One way to do it would be the apply the relevant settings recommended by Google Maps API and apply them after the map has loaded.

    Thread Starter fersamp

    (@fersamp)

    Hi caimin_nwl,
    thank you for help, but what is the file-s where EM uses Google Maps API?
    I tried to find it but without success…

    It’s done in this file:

    /events-manager/includes/js/events-manager.js

    Thread Starter fersamp

    (@fersamp)

    Thank you very much caimin_nwl.
    One last question: Can I add custom code to .js in the same way I do whit .php?

    Do I have to clone events-manager.js file, change it and add to:

    /wp-content/themes/mytheme-child/plugins/events-manager/includes/js/events-manager.js

    ??

    Plugin Support angelo_nwl

    (@angelo_nwl)

    sorry I’m afraid that this is not possible and you need to hack into the code at the moment.

    Thread Starter fersamp

    (@fersamp)

    Hi,
    I changed events-manager.js to change start zoom and disable mousewheel.

    Now maps in single event disappared (or it is never worked)…
    I changed only em_maps_load_locations function, that creates Global Maps events.

    Here my custom events-manager.js
    https://drive.google.com/open?id=0B4ayUYMXlE3qRmJQT2Z6aXBNWE0

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Some questions about map location visualizer’ is closed to new replies.