Skip to content

A marker collision plugin for maptalks and uses rbush library.

License

Notifications You must be signed in to change notification settings

ageeye-cn/maptalks.collisionLayer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

maptalks-collisionLayer

A marker collision plugin for maptalks and uses rbush library.

demo

Usage

    var collisionLayer = new maptalks.CollisionLayer('layerName').addTo(map)
    collisionLayer.updateCollision()

Options

Option Type Default
activeId String null
isCollision Boolean true
isShowCollisionPoints Boolean true
hidePointsId String hidePoints
hidePointsSymbol Object {'markerType': 'ellipse','markerFillOpacity': 0.3,'markerLineOpacity': 0.3,'markerWidth': 3,'markerHeight': 3,}

Methods

Method Return Description
updateCollision()
setActiveId(<String> id)
isShowCollisionPoints() Boolean
showCollisionPoints()
hideCollisionPoints()
enableCollision()
disableCollision()
isCollision() Boolean

License

MIT License.

About

A marker collision plugin for maptalks and uses rbush library.

Resources

License

Stars

Watchers

Forks

Packages

No packages published