Changeset 70459 in spip-zone


Ignore:
Timestamp:
Mar 6, 2013, 10:35:33 AM (6 years ago)
Author:
cedric@…
Message:

Nommer l'objet de configuration en fonction de la map

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/gis/trunk/modeles/carte_gis.html

    r70458 r70459  
    7676<script type="text/javascript">/*<!\[CDATA\[*/
    7777var map[(#GET{id})];
    78 var map_cfg = {
     78var map_cfg_[(#GET{id})] = {
    7979"mapid":"map[(#GET{id})]",
    8080"scrollWheelZoom": [(#ENV{zoom_molette,#ENV{zoom_wheel}}|=={non}|?{false,true})],
     
    117117};
    118118if (typeof(callback_map[(#GET{id})]) === "function") {
    119         map_cfg['callback']=callback_map[(#GET{id})];
     119        map_cfg_[(#GET{id})]['callback']=callback_map[(#GET{id})];
    120120}
    121121
     
    124124        $(function(){
    125125                jQuery.getScript('[(#PRODUIRE{fond=javascript/gis.js,cluster=#ENV{cluster,non}})]',function(){
    126                         gis_init_map(map_cfg);
     126                        gis_init_map(map_cfg_[(#GET{id})]);
    127127                });
    128128        });
Note: See TracChangeset for help on using the changeset viewer.