Skip to main content

Featured

Dhadi Game - An Indian War game

Hi Friends, Today i will introduce an indian traditional board game to android user I am very interested in playing dhadi game with my friends. Now that interest  becomes as an android game Here these are the playing instructions to the dhadi game Dhadi is a traditional indian game with two players.It runs with mind power between 2 players.You can play against your friends Features: Auto Move Suggestions Interesting Graphic View to game Time taken by two players will be shown individually Total movements shows Intresting background sounds and music music and sound on/off feature No permissions are needed to this app. Download the best Dhadi for Android now! https://play.google.com/store/apps/details?id=in.mjtech.daddy

leaflet remove all layers javascript

To remove all layers in the leaflet just u need to keep code ass follows
map.eachLayer(function (layer) {
      map.removeLayer(layer)
});
map is the main object of the leaflet map i.e. L.map
and eachLayer is function used to get all layers on the map area including map images also,
If you need to remove specific elements you can use instanceof function.
It will helps you to know which type of layer passed as arg to that
the syntax for this instanceof function is
layer instanceof L.layer_type
for removing specific data i.e.,to remove only circles from map you can use
map.eachLayer(function (layer) {
        if(layer instanceof L.Circle)
        map.removeLayer(layer)
    });
This code....
thank You...:-)
keep visiting

Comments

Popular Posts