Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
描画ツール (ポリゴン) を使用してオーバーレイを描画する前に、イベントを行いたいと考えています。その際、以前の図面をすべてクリアしたいと思います。
コーヒースクリプトで
google.maps.event.addDomListener mapElement, 'click', (e) -> if e?.target?.parentElement?.parentElement?.parentElement?.title == "Draw a shape" clearExistingShapes() # <-- your own code goes there
あまりエレガントではありませんが、ピンチで機能します。