Support Forum

Every time that you post a problem, PLEASE add the Joomla and the extension's versions and revisions (for example: Joomla 3.3.6, Contact Enhanced 3.3.5), PHP version and Server's Operating System. If you only manage only one site it is easier if you edit your profile and just add that information to your signature. Don't forget to add a detailed description of the problem. If possible, write down all steps to simulate the problem.

Before submitting a new post, PLEASE make sure you are running the latest version, test in different browsers (IE, FF, Chrome,..) and clear Joomla and browser's cache after every change you make.

Also, most questions are already answered in our FAQ and in iFAQ and Contact Enhanced documentation pages.

× Ideal Store Locator Plugin (iStoreLocator) works with Google Maps API which allows your website visitors to easily locate stores/contacts on the map.

Product Page

Default Zoom on point selection

7 years 1 month ago #23034 by zsimaiof
Hi,
When i click on a point of a map, or select it via filter, the default zoom at this point is very high compared to what i want (think it's 12).
See attached image.
Can i change that to 8 e.g. ?
Attachments:

Please Log in or Create an account to join the conversation.

7 years 1 month ago #23035 by support
Dear zsimaiof,

When you click on the filter, iStoreLocator will display all matching markers and zoom in or zoom out accordingly. In your case it seems you only have one location matching your search, that's why it is zooming in. This way it is easier for your user to spot where's the location. If you had more locations it would display all locations and it would zoom out.

I hope you understand.

Best regards,

Please Log in or Create an account to join the conversation.

7 years 1 month ago #23036 by zsimaiof
Hi
ok i understand this, but could you please tell me where or how (maybe in code) i can set the zoom in level when it's one point?
Thanks.

Please Log in or Create an account to join the conversation.

7 years 1 month ago #23037 by support
Dear zsimaiof,

I don't recommend and we don't support changes to the code.

If you know javascript and want to chnage it, you can edit the file:
/plugins/system/istorelocator/assets/js/jquery.ui.map/jquery.ui.map.storelocator.min.js

You can change the zoom right after
if(homeMarker)
{
	homeMarker.setVisible(true); 
	self.addBounds(homeMarker.position);
}

PS: When the user searches for a location or his address the home marker will be added and it will also always be in the map, therefore he will most likely see a zoomed out area. So you'll probably won't have to change the code.

Best regards,

Please Log in or Create an account to join the conversation.

Powered by Kunena Forum

Copyright © 2018 IdealExtensions.com. All Rights Reserved.

This site is not affiliated with or endorsed by the Joomla!™ Project. It is not supported or warranted by the Joomla!™ Project or Open Source Matters™. The Joomla!™ logo is used under a limited license granted by Open Source Matters™, the trademark holder in the United States and other countries.
We may collect your IP address and your browser's User Agent string while using our site for security reasons and deriving aggregate information (analytics). This information is retained for a minimum of 1 and a maximum of 24 months.
Feedback