Use of FontAwesome without all.js depencency?
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 25/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- javascript, typescript
Hướng nghiên cứu
Bắt đầu với AdvancedMarkerElement HTML markers example được liên kết trong issue và kiểm tra cách dependency FontAwesome all.js của nó được sử dụng. Tái tạo cấu hình CSS-only được mô tả; hoàn tất khi marker tương tác được render mà không có dependency 15MB, tên glyph bị thiếu hoặc xung đột CSS.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
I have a map with AdvancedMarkerElements working great. Unfortunately, the sample scripts in the repo here depend on the use of FontAwesome's all.js package. In addition to being a 15MB download, it conflicts with the general CSS-based implementation, overwriting some CSS glyphs with question marks.
Removing the library dependency results in the rendering of the AdvancedMarkerElement having the name of the glyph removed from the content.
I've searched through the API documentation for Maps and extensively online but can't find a way to prevent the AdvancedMarkerElement from trying to replace the glyph and forcing SVG, as well as preventing it from conflicting with the standard FA Pro CSS implementation.
To further complicate things, I am trying to use a pin highlight for interaction, so the basic PinElement approach doesn't seem like it will work. Basically, I'm trying to recreate the example found at https://developers.google.com/maps/documentation/javascript/advanced-markers/html-markers#interactive_markers but without the SVG library dependency.
Any suggestions on how to address this or what I am overlooking?
- Ngôn ngữ chính
- TypeScript
- Star
- 804
- Fork
- 826
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của googlemaps/js-samples
-
Advanced Markers Animation Unused VariableCó thể đã có người làm @treckstar đã nhận 832 ngày trước. Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 68/100
googlemaps/js-samples#1794 ·
-
DriverĐang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 5/100
googlemaps/js-samples#1940 ·
-
Exposed api key in documentationĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 35/100
googlemaps/js-samples#1932 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 32/100
googlemaps/js-samples#1914 ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 20/100
googlemaps/js-samples#1808 ·
Tất cả issue của googlemaps/js-samples
Issue tương tự
-
Bug: Cloudflare Pages static _redirects identity rule causes RSC Flight to reload as HTMLCó thể đã có người làm @Donvero đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Mantitup-Org/vista#210 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
simstudioai/sim#9831 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
status: waiting for maintainer
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
mui/material-ui#49751 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
diplodoc-platform/transform#1184 ·
Maintainer thường phản hồi trong vòng 1 ngày