OS Property support center

Default zoom on mapview

  • DanieleR
  • Topic Author
  • Offline
  • New Member
  • New Member
More
11 years 2 months ago #25745 by DanieleR
Default zoom on mapview was created by DanieleR
Hi Dam,
there is a way to set a default zoom on the googlemap displayed in "map-view" (Advanced search) ?

Thanks,
Daniele

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

More
11 years 2 months ago #25754 by Mr. Dam
Replied by Mr. Dam on topic Re: Default zoom on mapview
Hi Daniele,
Currently, we can't set the map zoom of the map view in the listing. Because the zoom value is hard code.
If user search city, zoom level is 16, if user only search state, zoom level is 10, if user only search country, zoom level is 7 and in default is 4.
You can edit those value in file
components > com_osproperty > templates > default > result.map.html.tpl.php
Thanks
Dam

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

Moderators: Mr. DamNguyen Phu Quan