Skip to content

Commit

Permalink
Merge pull request #1098 from HelloYuiYui/master
Browse files Browse the repository at this point in the history
FixedPopup: Allows fixing the popup on coordinates
  • Loading branch information
Viglino authored Aug 22, 2024
2 parents 299c77d + c3f79a9 commit 79661f2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions examples/popup/map.fixedpopup.html
Original file line number Diff line number Diff line change
Expand Up @@ -135,18 +135,18 @@ <h2>Options:</h2>
<option value="tooltips">tooltips</option>
</select>
<br />
<input id="ck" type="checkbox" onchange="if (this.checked) popup.addPopupClass('shadow'); else popup.removePopupClass('shadow');" />
<input id="ck" type="checkbox" onchange="this.checked ? popup.addPopupClass('shadow') & popup2.addPopupClass('shadow') : popup.removePopupClass('shadow') & popup2.removePopupClass('shadow')" />
<label for="ck">shadow</label>
<br />
<input id="cb" type="checkbox" checked onchange="popup.setClosebox(this.checked);" />
<input id="cb" type="checkbox" checked onchange="popup.setClosebox(this.checked); popup2.setClosebox(this.checked);" />
<label for="cb">hasclosebox</label>
<br />
<label>
<input name="fix" type="radio" checked onchange="popup.setHook('viewport');" />
<input name="fix" type="radio" checked onchange="popup.setHook('viewport'); popup2.setHook('viewport')" />
hook on viewport
</label>
<label>
<input name="fix" type="radio" onchange="popup.setHook('map');" />
<input name="fix" type="radio" onchange="popup.setHook('map'); popup2.setHook('map')" />
hook on map
</label>
</div>
Expand Down

0 comments on commit 79661f2

Please sign in to comment.