Bonjour
J'ai un site avec en page d’accueil une carte google.
Cette carte ne fonctionne pas très bien
L'autocomplétation ne fonctione pas du tout et je n'arrive pas a pointer la carte sur un lieu par défaut via l'admin panel
Dream à relevè des anomalies, il indique que ces lignes comportent des erreurs de syntaxes !
var default_map_zoom = {if $config.realty_search_map_location_zoom}{$config.realty_search_map_location_zoom}{else}14{/if};
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
{if !$config.realty_search_map_location && $smarty.session.GEOLocationData}
default_map_location = "{$smarty.session.GEOLocationData->Country_name}{if $smarty.session.GEOLocationData->Region}, {$smarty.session.GEOLocationData->Region}{/if}{if $smarty.session.GEOLocationData->City}, {$smarty.session.GEOLocationData->City}{/if}";
{/if}
{if $geo_filter_data.location.0.name && !$pageInfo.Geo_exclude}
{foreach from=$geo_filter_data.location item='loc_name'}
{assign var='geo_location_address' value=$geo_location_address|cat:', '|cat:$loc_name.name}
{/foreach}
{assign var='geo_location_address' value=$geo_location_address|ltrim:', '}
default_map_location = '{$geo_location_address}';
{/if}
{if $smarty.post.loc_lat && $smarty.post.loc_lng}
default_map_location = false;
{/if}
flynaxTpl.mapSearch('map_container', trim(default_map_location));
</script> |
Le script tourne sous 7.0
Merci aux contributeurs !
Partager