Skip to content
This repository has been archived by the owner on Apr 16, 2024. It is now read-only.

Cluster Markers #29

Open
GeoWill opened this issue Jan 10, 2018 · 5 comments
Open

Cluster Markers #29

GeoWill opened this issue Jan 10, 2018 · 5 comments

Comments

@GeoWill
Copy link

GeoWill commented Jan 10, 2018

Hi,
Is it possible to cluster markers based on zoom - the functionality provided by Leaflet.markercluster. Alternatively is it posisble to dip into the JS? Afraid I'm not familiar with Joomla, so don't know if there's an obvious way to just write the javascript myself.

Many thanks
Will

@efduggan
Copy link

Edit helper.php and insert whatever javascript you need - see the function public static function javascript($params, $id) - it basically returns a string $js which is the script sent to the browser.

@GeoWill
Copy link
Author

GeoWill commented Jan 10, 2018

Thanks. Would I then need to install the modified extension from a local file? Or is there a way to edit the module from the administration login?
Thanks again from the help.

@efduggan
Copy link

The easiest way would be to modify the file directly using a text editor. It’s located in /modules/mod_osmod directory on your server. There is no way to edit the source code of a module from the admin back end. Do take precautions, such as backing up the files, or working on a test site. Joomla has a good documentation wiki as well that might help you.

@Schlumpf
Copy link
Owner

There is a way to modify the file from admin back end: https://extensions.joomla.org/index.php?option=com_jed&view=extension&layout=default&id=130

@efduggan
Copy link

Thanks for the link. I’m not sure I would use it on a production site, as there are security considerations that one must be aware of and responsible for. For me, I feel it’s best that I edit the files locally on a test system so I don’t impact my users (or myself.)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants