OS Property support center

Map Zoom for Search Results

  • Jason Wagner
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 10 months ago #31765 by Jason Wagner
Map Zoom for Search Results was created by Jason Wagner
Hello,
After a user searches for a property, they have the option on the top of the page to view the results by default view, grid view, map view or Google Earth XML. These different view are indicated by three icons on the top the search results page.

I need to edit the zoom of the map search results view. All of my properties are located in one city in the United States. Currently the map view is zoomed out to view the entireUnited States. I see where to set the zoom level for individual listings, but this setting does not effect the zoom level of the "search results map view." I also need to remove the Google Earth XML view on the far right.

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

More
10 years 10 months ago #31782 by Mr. Dam
Replied by Mr. Dam on topic Re: Map Zoom for Search Results
Hi,
You can setup the default zoom level from Configuration > tab General.
If you don't want to show the icon of Google Earth XML, you can hide it by uncheck the option in configuration > tab Properties.
Thanks
Dam

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

  • Jason Wagner
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 10 months ago #31812 by Jason Wagner
Replied by Jason Wagner on topic Re: Map Zoom for Search Results
Thanks Dam,
Setting the zoom level in the general config is only effecting the zoom level of the property details page. I need to be able to set the zoom for the map view of the listing page. Would you be able to provide a code snippet that I could paste in that code accomplish this in the source?

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

More
10 years 10 months ago #31835 by Mr. Dam
Replied by Mr. Dam on topic Re: Map Zoom for Search Results
In file
helpers > googlemap.lib.php
function loadMapInListing
find
var mapOptions = {
center: centerPlace,
zoom: 12,
streetViewControl: true,
mapTypeId: google.maps.MapTypeId.ROADMAP
};
and change

var mapOptions = {
center: centerPlace,
zoom: 15,
streetViewControl: true,
mapTypeId: google.maps.MapTypeId.ROADMAP
};

It will show deeper zoom level.
Good luck
Dam

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

  • Jason Wagner
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 10 months ago #31906 by Jason Wagner
Replied by Jason Wagner on topic Re: Map Zoom for Search Results
Hi Dang,
I was able to identify this code but it does not effect the listing results map zoom after a search.

When I set the zoom in the backend it works on the property details page. But on the listing view page the map is zoomed out to show the entire United States. Do you know if there's a zoom set for only this listing's view? It's definitely not inheriting the zoom level I set in the back end.

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

More
10 years 10 months ago #31928 by Mr. Dam
Replied by Mr. Dam on topic Re: Map Zoom for Search Results
Hi jason,
Have you modified code as i showed you in last reply? If you can't do it, i can help you.
Please send your site information with super admin account, ftp account to : damdt@joomservices.com
Thanks
Dam

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

  • Jason Wagner
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 10 months ago #32402 by Jason Wagner
Replied by Jason Wagner on topic Re: Map Zoom for Search Results
Hi Dang,
I am sending you my site information now. This is still a major issue.

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

Moderators: Mr. DamNguyen Phu Quan