Coder Social home page Coder Social logo

brandonxiang / leaflet.marker.highlight Goto Github PK

View Code? Open in Web Editor NEW
63.0 10.0 24.0 312 KB

Highlight performance for L.marker

Home Page: https://brandonxiang.github.io/leaflet.marker.highlight/

License: MIT License

CSS 38.43% JavaScript 61.57%
leaflet-plugins leaflet highlight-effects markers demo marker

leaflet.marker.highlight's Introduction

leaflet.marker.highlight

Highlight effects for L.marker.

Demo

DEMO

Installation

npm install leaflet.marker.highlight --save

Usage

Temporarily Highlight

Highlight effects will occur in the situation that you put your mouse over the marker.

You can set it when initializing a marker.

var marker1 = L.marker([51.5, -0.09], {highlight: 'temporary'}).addTo(map);

Or you can use a method to enable the highlight effects.

marker1.enableTemporaryHighlight();
marker1.disableTemporaryHighlight();

Permanently Highlight

Highlight effects are always on.

var marker1 = L.marker([51.5, -0.09], {highlight: 'permanent'}).addTo(map);

or

marker1.enablePermanentHighlight();

Cancel the marker highlight effects by

marker1.disablePermanentHighlight();

License

MIT

Chinese Version

README

leaflet.marker.highlight's People

Contributors

brandonxiang avatar lchanouha avatar roastedmonk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

leaflet.marker.highlight's Issues

Passing the highligth color in a function, option

This plugin is quite good, but you're limited to what the CSS file color for the glow flare is set.

What about selecting the color of the effect (radius etc...) overriding the default CSS or inhereting the color of the marker.

I use BeautifyMarker and maybe its possible to get the backgroundColor of the marker and use it for the glow and flare.

How to use it in angular 7

Hello, very glade to use this plugin ,but I want to know how to use it in angular 2 and above(angular 7)?Because I follow steps to install and coding , but have issue of ypeError: this.addedMarker.enableTemporaryHighlight is not a function.

Change Colors

Hi,

Before anything i would like to say thanks for this awesome pllugins, may I ask is there anyway to change the colors on the fly? without hacking the CSS files directly? thanks again!!!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.