LeGhe Posted February 20, 2012 Share Posted February 20, 2012 Bonjour, J'aimerais afficher la liste des magasins (comme dans "affichage simplifié) MAIS avec la carte de géolocalisation dessous. Le code ci-dessous affiche bien la map, bien centrée comme il faut, mais SANS les larqueurs de magasins... Comment faire SVP ?? {if $simplifiedStoresDiplay} {if $stores|@count} <p>{l s='Here are the details of our stores, feel free to contact us:'}</p> {foreach from=$stores item=store} <div class="store-small"> {if $store.has_picture}<p><img src="{$img_store_dir}{$store.id_store}-Magasins.jpg" style="float: left; margin-left: 5px; margin-right: 5px;" alt="" width="{$MagasinsSize.width}" height="{$MagasinsSize.height}" />{/if} <br /> <b>{$store.name|escape:'htmlall':'UTF-8'}</b><br /> {$store.address1|escape:'htmlall':'UTF-8'}<br /> {$store.postcode} {$store.city|escape:'htmlall':'UTF-8'}{if $store.state}, {$store.state}{/if}<br /> {if $store.phone}{l s='Phone:' js=0} {$store.phone}{/if}<br /> {if $store.email}{l s='@:' js=0} {$store.email}{/if}<br /> {if $store.address2}<a href="{$store.address2}">{$store.address2}</a>{/if}<br /><br /> <b>{if $store.note}{$store.note}{/if}</b> </p> </div> {/foreach} {/if} <script type="text/javascript"> // <![CDATA[ var map; var markers = []; var infoWindow; var locationSelect; var defaultLat = '{$defaultLat}'; var defaultLong = '{$defaultLong}'; var translation_1 = '{l s='No store found, try to select a wider radius' js=1}'; var translation_2 = '{l s='store found - see details:' js=1}'; var translation_3 = '{l s='stores found - see all results:' js=1}'; var translation_4 = '{l s='Phone:' js=1}'; var translation_5 = '{l s='Get Directions' js=1}'; var translation_6 = '{l s='Not found' js=1}'; var hasStoreIcon = '{$hasStoreIcon}'; var distance_unit = '{$distance_unit}'; var img_store_dir = '{$img_store_dir}'; var img_ps_dir = '{$img_ps_dir}'; var searchUrl = '{$searchUrl}'; //]]> </script> <div id="map"></div> Link to comment Share on other sites More sharing options...
cockpitinferno Posted January 18, 2013 Share Posted January 18, 2013 avez vous trouvé une solution, j'aimerais faire la même chose. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now