maptalks.js icon indicating copy to clipboard operation
maptalks.js copied to clipboard

Please add a option to control the behavior of the map moving out of boundaries

Open IceSakuraAzure opened this issue 11 months ago • 0 comments

maptalks's version and what browser you use? 1.0.0-rc.33 Egde/122.0.2365.92

Issue description I'm using "identity" maps to create the game map, and I've set "maxExtent" to limit the boundaries of the map. However, when I move out of the boundaries, it still reveals parts of the map that are outside the boundaries. I would like to disable movement out of the boundaries, not the rebound that is shown now. In fact, in the leaflet map, they use a parameter "maxBoundsViscosity" to control the behavior of moving out of boundaries, I think this can be used as a reference.

Please provide a reproduction URL (on any jsfiddle like site)

IceSakuraAzure avatar Mar 22 '24 07:03 IceSakuraAzure