Ignore:
Timestamp:
Oct 13, 2010, 10:08:41 PM (14 years ago)
Author:
grum
Message:

Fix bugs on install process ; add street view control management

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/GMaps/admin/gmaps_maps.tpl

    r7125 r7177  
    125125      //$('#iBDMapNavigationControlPos').bind('change', changeNavigationControlPosition);
    126126      $('#iBDMapScaleControl').bind('change', changeScaleControl);
     127      $('#iBDMapStreetViewControl').bind('change', changeStreetViewControl);
    127128
    128129
     
    131132
    132133
     134    /**
     135     *
     136     */
     137    var changeStreetViewControl = function ()
     138    {
     139      if(properties.gMap!=null)
     140      {
     141        properties.gMap.setOptions(
     142          {
     143            streetViewControl: ($('#iBDMapStreetViewControl').val()=='n')?false:true,
     144          }
     145        );
     146      }
     147    }
    133148
    134149    /**
     
    319334            },
    320335          markerTitle:'',
     336          streetViewControl:($('#iBDMapStreetViewControl').val()=='n')?false:true,
    321337        }
    322338      );
     
    509525          }
    510526        );
     527        $('#iBDMapStreetViewControl').val('n');
    511528
    512529        properties.gMap=null;
     
    530547        $('#iBDMapNavigationControlType').val(tmp.navigationControl);
    531548        $('#iBDMapScaleControl').val(tmp.scaleControl);
     549        $('#iBDMapStreetViewControl').val(tmp.streetViewControl);
    532550
    533551        $('#iBDExampleMap').html('').css(
     
    543561      changeSize($('#iBDMapHeightSliderValue').val(), 'iBDMapHeightSlider');
    544562      changeZoom($('#iBDMapZoomLevelSliderValue').val(), '');
     563      changeStreetViewControl($('#iBDMapStreetViewControl').val());
    545564    }
    546565
     
    614633        navigationControl:$('#iBDMapNavigationControlType').val(),
    615634        scaleControl:$('#iBDMapScaleControl').val(),
     635        streetViewControl:$('#iBDMapStreetViewControl').val(),
    616636        style:'',
    617637      }
     
    687707    <th style="width:90px;">{'gmaps_googleMapNavigationControl'|@translate}</th>
    688708    <th style="width:90px;">{'gmaps_googleMapScaleControl'|@translate}</th>
     709    <th style="width:90px;">{'gmaps_googleMapStreetViewControl'|@translate}</th>
    689710    <th width="40px">&nbsp;</th>
    690711  </tr>
     
    809830          </tr>
    810831          -->
     832
     833          <tr>
     834            <td>{'gmaps_googleMapStreetViewControl'|@translate}</td>
     835            <td>
     836              <select id='iBDMapStreetViewControl'>
     837                <option value='y'>{'gmaps_y'|@translate}</option>
     838                <option value='n'>{'gmaps_n'|@translate}</option>
     839              </select>
     840            </td>
     841          </tr>
    811842
    812843        </table>
Note: See TracChangeset for help on using the changeset viewer.