Jump to content

Prestashop 1.6 - Aumentar Zoom en el mapa


iwakura-san

Recommended Posts

Mira ver en el fichero:

 

/themes/plantilla/js/stores.js
Cambiar el valor del zoom aquí:

 

$(document).ready(function(){
	map = new google.maps.Map(document.getElementById('map'), {
		center: new google.maps.LatLng(defaultLat, defaultLong),
		zoom: 10,
		mapTypeId: 'roadmap',
		mapTypeControlOptions: {style: google.maps.MapTypeControlStyle.DROPDOWN_MENU}
	});
Es decir, donde dice "zoom:10"

 

Información sacada de aquí: http://www.prestashop.com/forums/topic/218662-solucionadoconfigurar-zoom-en-mapa-de-sucursales/

Edited by nadie (see edit history)
Link to comment
Share on other sites

Mira ver en el fichero:

 

/themes/plantilla/js/stores.js
Cambiar el valor del zoom aquí:

 

$(document).ready(function(){
	map = new google.maps.Map(document.getElementById('map'), {
		center: new google.maps.LatLng(defaultLat, defaultLong),
		zoom: 10,
		mapTypeId: 'roadmap',
		mapTypeControlOptions: {style: google.maps.MapTypeControlStyle.DROPDOWN_MENU}
	});
Es decir, donde dice "zoom:10"

 

Información sacada de aquí: http://www.prestashop.com/forums/topic/218662-solucionadoconfigurar-zoom-en-mapa-de-sucursales/

 

Muchas gracias por su respuesta, he hecho lo que me ha dicho, pero no visualicé ningún cambio en el zoom del mapa, por mas valores diferentes que escriba en el código. Quisiera conocer otra solución alternativa. Gracias.

Link to comment
Share on other sites

  • 1 month later...

Buen día, estuve mirando tu tema, las respuestas encontradas me orientaron mucho, despues me di cuenta que tambien tenia el mismo error y aunque  modificaba el zoom la configuracion permanecia igual 
 
$(document).ready(function(){
map = new google.maps.Map(document.getElementById('map'), {
center: new google.maps.LatLng(defaultLat, defaultLong),
zoom: 17,
mapTypeId: 'roadmap',
mapTypeControlOptions: {style: google.maps.MapTypeControlStyle.DROPDOWN_MENU}
});

 

debes modificar tambien estos dos:

 

if(zoomOverride > 20)
zoomOverride = 20;

 

y

 

if (map.getZoom() > 20) map.setZoom(20);

 

ya que venían por defecto en 10

Link to comment
Share on other sites

  • nadie locked this topic
Guest
This topic is now closed to further replies.
×
×
  • Create New...