OS Property support center

map zoom in theme1

  • Stephen
  • Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
10 years 4 months ago - 10 years 4 months ago #55382 by Stephen
map zoom in theme1 was created by Stephen
Hi
Two things:

#1
In the theme1 map you can´t zoom in with the mouse scroll wheel, how can I change this behavior?
As for now the only way to zoom in or out is to click the + or - buttons in the map. Not practical at all.

#2
I would like to have the map zoomed in when you go to the properties page, right now it´s zoomed out max (se picture 1). How can I change this ?I would like to have it as in picture 2.

I have noticed that there are a setting in configuration -> Google Map but this setting do not affect the map in theme1.

Regards
Stephen

If the problem can be solved why worry? If the problem can not be solved, worrying will do you no good.
Attachments:
Last edit: 10 years 4 months ago by Stephen.

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

More
10 years 4 months ago #55401 by Mr. Dam
Replied by Mr. Dam on topic map zoom in theme1
Hi Stephen,
#1. A lot of customers complained with me about the map at the top of listing page. They don't want when they scroll the mouse to go to the bottom of screen, the Google map will be zoomed. So we should remove the scroll attribute of the map. To change it again, you can open file: components > com_osproperty > helpers > googlemap.lib.php
find
scrollwheel: false,
and remove it.
#2 The zoom level of the map in property details (theme1) is configured at Back-end > OS Property > Configuration page
Thanks
Dam

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

  • Stephen
  • Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
10 years 4 months ago #55412 by Stephen
Replied by Stephen on topic map zoom in theme1
Hi

#1. A lot of customers complained with me about the map at the top of listing page. They don't want when they scroll the mouse to go to the bottom of screen, the Google map will be zoomed. So we should remove the scroll attribute of the map. To change it again, you can open file: components > com_osproperty > helpers > googlemap.lib.php
find
scrollwheel: false,

Thanks, worked great on listings page.
But how to do the same in the property details page?

#2 The zoom level of the map in property details (theme1) is configured at Back-end > OS Property > Configuration page

Worked now, my misstake from the start (I did not read carefully enough).

If the problem can be solved why worry? If the problem can not be solved, worrying will do you no good.

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

More
10 years 4 months ago #55489 by Mr. Dam
Replied by Mr. Dam on topic map zoom in theme1
Hi Stephen,
With the map in the property details page, you can find
scrollwheel: false,
in
components > com_osproperty > templates > your_current_using_template > details.html.tpl.php
and remove it
Good luck
Dam

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

Moderators: Mr. DamNguyen Phu Quan