File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed
Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change 110110 </ div >
111111 </ form >
112112 < form id ="frm2 " onsubmit ="tester_obj.config_update( event ); ">
113+ < div class ="config_div ">
114+ < div class ="opt_div ">
115+ < b > Map Options</ b >
116+ </ div >
117+ < div class ="opt_div ">
118+ Fractional Zoom Enabled:< br >
119+ < input type ="checkbox " checked id ="fld_fractional_zoom_enabled " name ="fld_fractional_zoom_enabled " value ="1 ">
120+ </ div >
121+ </ div >
113122 < div class ="config_div ">
114123 < div class ="opt_div ">
115124 < b > Clusterer Options:</ b >
Original file line number Diff line number Diff line change 1- // Source: D:\vscode\grid_clusterer\v190 \js\ex2\tester.js
1+ // Source: D:\vscode\grid_clusterer\v180 \js\ex2\tester.js
22class tester {
33 /*
44 ---------------------------------------------------------------------
@@ -67,6 +67,11 @@ class tester {
6767 this . info_window_close ( ) ;
6868 this . map_zoom_level_show ( this . map . getZoom ( ) ) ;
6969 } ) ;
70+ // Handler for fractional zoom enable / disable ...
71+ $ ( '#fld_fractional_zoom_enabled' ) . on ( 'change' , ( ) => {
72+ let frac_zoom_enabled = $ ( '#fld_fractional_zoom_enabled' ) . is ( ':checked' ) ;
73+ this . map . setOptions ( { isFractionalZoomEnabled : frac_zoom_enabled } ) ;
74+ } ) ;
7075 // Test once all tiles are loaded ...
7176 google . maps . event . addListenerOnce ( this . map , 'tilesloaded' , ( ) => {
7277 this . test_clusterer ( ) ;
You can’t perform that action at this time.
0 commit comments