Support

  1. peacetree
  2. General
  3. Tuesday, November 08 2016, 01:29 PM
I think there is no option to set the minimum and maximum level for the gmaps module.

The idea behind this is not to display the exact location of members but rather give a broad indication of where they are (for instance 120 member grouped in one city).
admin Accepted Answer
Admin
Hi,
this is not possible, user map module set zoom (and center) automatically based on all displayed markers.
  1. more than a month ago
  2. General
  3. # 1
peacetree Accepted Answer
Content Protected
  1. more than a month ago
  2. General
  3. # 2
admin Accepted Answer
Admin
Yes, I know, but now this is not possible in our module. To do this you need to override module output and put your custom code. But this is not so simple.
  1. more than a month ago
  2. General
  3. # 3
peacetree Accepted Answer
do you think this could be a good feature for a future release?
I believe that in many use cases this could be beneficial.
  1. more than a month ago
  2. General
  3. # 4
admin Accepted Answer
Admin
Hi,
we think this can create some issue, zoom require also to set center of map and this is not user friendly. Also it can make some problems also Group result option.

To do this follow these steps:
- Copy file from /modules/mod_jsnmap/tmpl/default.php to /templates/your-template-folder/html/mod_jsnmap/default.php
- Edit new file, add following code at line 143 (replace 11 with your zoom)

google.maps.event.addListenerOnce(jsnmap<?php echo $module->id; ?>, 'idle', function() {
jsnmap<?php echo $module->id; ?>.setZoom(11);
});


You can also change name from default.php to somethingelse.php and set this new layout in the "Alternative Layout" parameter in Module Advanced options (see screenshot).
Attachments (1)
  1. more than a month ago
  2. General
  3. # 5
peacetree Accepted Answer
Thank you so much for this! I will test this on my site an let you know whether I have issues with these settings.
  1. more than a month ago
  2. General
  3. # 6
peacetree Accepted Answer
BTW does this set the standard zoom, so the whole map will be at zoom 11 at all time?

I was looking for a solution where the user can zoom in and out as much as he wants unless he reaches the maxiumum zoom level of for instance 11...
  1. more than a month ago
  2. General
  3. # 7
admin Accepted Answer
Admin
Hi,
replace previous code with something like this:

google.maps.event.addListenerOnce(jsnmap<?php echo $module->id; ?>, 'zoom_changed', function() {
if(jsnmap<?php echo $module->id; ?>.getZoom()>11 )
jsnmap<?php echo $module->id; ?>.setZoom(11);
});
  1. more than a month ago
  2. General
  3. # 8
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.

Request Support

Support is currently Offline

Support Availability

Working days: Monday to Friday. The support staff is not available on weekends; in the most of cases tickets will not be answered during that time.

Reply time: Depending on the complexity of your support issue it's usually between a few minutes and 24 hours for paid members and about one week for free members. When we expect longer delays we will notify you.

Guidelines

Before you post: read the documentation and search the forums for an answer to your question.

When you post: include Site Details if you request a support (you can use the form below the reply in Site Details tab).

Auto Solved Question: If after a week the author of the post does not reply to a request by moderator, the question will be marked as resolved.

Language: only English

Search Users

Easy Profile® is not affiliated with or endorsed by Open Source Matters or the Joomla Project. Joomla is Free Software released under the GNU/GPL License.