Custom Interactive Maps with Google Maps API (Full Course)
And then in the add marker function, we'll provide a parameter for draggable.
然后在添加标记函数中,我们将为可拖动提供一个参数。
Custom Interactive Maps with Google Maps API (Full Course)
And then down here in the marker options, we'll set the draggable property as well.
然后在标记选项中,我们还将设置可拖动属性。
Custom Interactive Maps with Google Maps API (Full Course)
So with draggable set to false, we can't move this map around.
因此,当draggable设置为false时,我们无法移动这张地图。
科技 Crash Course
One of my favorite affordances, which suggests to users that an on-screen element is draggable, is knurling – that texture added to objects to improve grip and show you where to best grab them.