J-BusinessDirectory - Map Isseus

Support Forum

 
 

 

Hello,

 

www.lasertag.com/our-locationstop

I am trying to get the map to center on the United States on page load, how do you accomplish that?

Also, I would like to switch out the map icons so they do not have numbers on them. Some of them (the triple digit ones) the numbers do not fit on the icons. 

Thanks! 

 

3 replies

Hi,

 

The map auto center itself based on the marker distribution.
You can edit {joomla}/components/com_jbusinessdirectory/include/search-map.php and replace

var pinImage = new google.maps.MarkerImage("http://chart.apis.google.com/chart?chst=d_map_pin_letter&chld="+(company[5])+"|" + pinColor+"|FFFFFF",
with
var pinImage = new google.maps.MarkerImage("http://chart.apis.google.com/chart?chst=d_map_pin_letter&chld=B|" + pinColor+"|FFFFFF",
           

Is there a way to un-center the map?

With having locations all around the world, it gives a double view of the world and looks rather bad. 

Hi Kyle, 


You can comment map.fitBounds(bounds); in component/com_jbusinessdirectory/include/search-map.php 

 
 
 

4 Item(s)

Show per page