Back to Findus Support

merodeador
merodeador

How can i customize the initial zoom? I have tried tried changing the setting in radiantweb/findus/components/findus/largemap.htm :

// Set the options to be used when creating the map
        var myOptions = {
            zoom: 0,
            center: new google.maps.LatLng({{ lat }}, {{ lon }}),
            mapTypeId: google.maps.MapTypeId.ROADMAP
        };

        var mapL = new google.maps.Map(document.getElementById("largemap"),myOptions);

but changing the value of zoom doesn't seem to work.

ChadStrat
ChadStrat

do you have more than one map on a page? wonder if the options var is getting mistaken for another options. if so I would say change the name of the options var. But that is the correct setting. maybe also make sure browser cache is emptied out?

ChadStrat

merodeador
merodeador

There's only one map. I've tried clearing the browser cache and also made sure jQuery is not loading twice. I've tried to put a map on a completely empty page with default settings for the map component (except the zoom). So far, no luck. Probably my own mistake, will post the solution when/if i find it.

I would also like to add a little feature request : It would be awesome if you could set the zoom level in the component's options.

Thanks :-)

Last updated

1-3 of 3