Skip to content

Conversation

@hswong3i
Copy link

Existing implementation using icon-fullscreen.png and icon-fullscreen-2x.png for different screen (e.g. iOS with retina display). Moreover, we don't have any toggle effect for the icon status.

This PR rework the icon with:

  • Locally vendor Font Awesome v5.15.4 compress-solid.svg and expand-solid.svg
  • Add default content for icon
  • Add toggle status for icon
  • Rework style with SCSS
  • Create minified version JS and CSS
  • Simplify demo and README.md with above changes

Some style reuse from: domoritz/leaflet-locatecontrol#296

Online demo: https://drustack.github.io/brunob-leaflet.fullscreen/

Fix #87

Signed-off-by: Wong Hoi Sing Edison hswong3i@pantarei-design.com

Existing implementation using `icon-fullscreen.png` and
`icon-fullscreen-2x.png` for different screen (e.g. iOS with retina
display). Moreover, we don't have any toggle effect for the icon status.

This PR rework the icon with:
* Locally vendor Font Awesome v5.15.4 `compress-solid.svg` and
  `expand-solid.svg`
* Add default content for icon
* Add toggle status for icon
* Rework style with SCSS
* Create minified version JS and CSS
* Simplify demo and README.md with above changes

Some style reuse from: domoritz/leaflet-locatecontrol#296

Online demo: https://drustack.github.io/brunob-leaflet.fullscreen/

Fix brunob#87

Signed-off-by: Wong Hoi Sing Edison <hswong3i@pantarei-design.com>
@brunob
Copy link
Owner

brunob commented Nov 30, 2021

Thx for the PR, really appreciate :) but i think this is an oversized code change for a small functional change. I'd like to :

  • keep away from sass,
  • don't provide a minified version (up to users to minify their sources with their chosen tools)

Anyway, i think the icon change on toggle is really needed change + the switch to a SVG icon (maybe we should use the one from https://github.com/Leaflet/Leaflet.fullscreen/blob/gh-pages/fullscreen.svg)

@hswong3i
Copy link
Author

My similar PR: Leaflet/Leaflet.fullscreen#118

My initial though are:

BTW, I also face a critical issue here:

Sorry that I will shift my focus back to using https://github.com/Leaflet/Leaflet.fullscreen (even it is inactive, I could using my patched version for my client project, now).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants