CircleMarker, Circle Open Popup (leaflet 0.3.1 stable)

427 views
Skip to first unread message

dooley

unread,
Feb 28, 2012, 8:55:55 AM2/28/12
to Leaflet
Hi group.

How can i open a earlier bound popup of a Circlemarker? I bind the
popups

html = <div>'A Popup</div>';
circlemarker.bindPopup(html);

Opens "onclick" fine, but i want to open it later by own code like

circlemarker.openPopup();

after selecting a "marker" from an dropdownlist. Circlemarker has no
method openPopup. Any workaround?

Thanks, Fred

Vladimir Agafonkin

unread,
Feb 28, 2012, 9:18:39 AM2/28/12
to leafl...@googlegroups.com
Hi,

This will be addressed in the next version, the current workaround is circle._openPopup({latlng: circle._latlng});

2012/2/28 dooley <dfddur...@googlemail.com>

dooley

unread,
Feb 28, 2012, 10:33:51 AM2/28/12
to Leaflet
Hi Vladimir,

works very nice.

Thank you.

Kindly regards, Fred

On 28 Feb., 15:18, Vladimir Agafonkin <agafon...@gmail.com> wrote:
> Hi,
>
> This will be addressed in the next version, the current workaround is
> circle._openPopup({latlng: circle._latlng});
>
> 2012/2/28 dooley <dfddurstew...@googlemail.com>
>
>
>
>
>
>
>
>
>
> > Hi group.
>
> > How can i open a earlier bound popup of a Circlemarker? I bind the
> > popups
>
> > html = <div>'A Popup</div>';
> > circlemarker.bindPopup(html);
>
> > Opens "onclick" fine, but i want to open it later by own code like
>
> > circlemarker.openPopup();
>
> > after selecting a "marker" from an dropdownlist. Circlemarker has no
> > method openPopup. Any workaround?
>
> > Thanks, Fred
>
> --
> Vladimir Agafonkinhttp://agafonkin.com/en
Reply all
Reply to author
Forward
0 new messages