Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

infowindow can you add autoclose option when click map #515

Closed
shanyipeng opened this issue Oct 13, 2017 · 3 comments
Closed

infowindow can you add autoclose option when click map #515

shanyipeng opened this issue Oct 13, 2017 · 3 comments

Comments

@shanyipeng
Copy link

Environment

  • maptalks version:
  • Browser (version):
  • OS/Platform (version):

Issue Description

jsfiddle or codepen URL

the example url of maptalks to attach in

https://cdn.jsdelivr.net/npm/maptalks@0.30.0/dist/maptalks.js

https://cdn.jsdelivr.net/npm/maptalks@0.30.0/dist/maptalks.css

@fuzhenn
Copy link
Member

fuzhenn commented Oct 13, 2017

Good idea!

How about adding a new option autoCloseOn like below?

Let users be able to choose which events to auto close the infowindow.

new maptalks.ui.InfoWindow({
   //...
  'autoCloseOn' : 'click contextmenu' //close when click or right click on map, null by default
});
@shanyipeng
Copy link
Author

I like it !

@fuzhenn
Copy link
Member

fuzhenn commented Oct 18, 2017

@shanyipeng thx for your proposal.

'autoCloseOn' is implemented in the commit above.

Will be released in 0.32.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants