Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add colors description #3

Open
karam-mustafa opened this issue Feb 8, 2023 · 1 comment
Open

Add colors description #3

karam-mustafa opened this issue Feb 8, 2023 · 1 comment

Comments

@karam-mustafa
Copy link
Member

karam-mustafa commented Feb 8, 2023

On the map page, we want to display such as a panner to describe the meaning of each color that is mapped here

        let iconUrl ='https://cdn.rawgit.com/pointhi/leaflet-color-markers/master/img/marker-icon-2x-green.png';
        let color = 'green'
        if(item.type == 1){
            iconUrl = 'https://cdn.rawgit.com/pointhi/leaflet-color-markers/master/img/marker-icon-2x-red.png';
            color = 'red'
        }
        if(item.type >= 2 || item.typeKey <= 7 ){
            iconUrl = 'https://cdn.rawgit.com/pointhi/leaflet-color-markers/master/img/marker-icon-2x-yellow.png';
            color = 'yellow'
        }
@bit-01
Copy link

bit-01 commented Feb 10, 2023

how about we use fontawsome or custom icon font for the markers instead of png images.
This would give us high resolution graphics in the map with little load time. ?
if it is okay i can start working on it with this issue together.

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

No branches or pull requests

2 participants