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

Adding marker to the Map via addMapClickListener doesn't redraw marker with new position #10

Open
haulmont-git opened this issue Sep 12, 2016 · 0 comments
Assignees
Labels
client: web type: bug Something isn't working

Comments

@haulmont-git
Copy link

Проблема в том, что когда имплементируешь MapViewer#addMapClickListener с возможностью добавлять маркер на карту маркер не отрисовывается до момента, пока не подвигаешь курсором.
Пример как был заимплементирован листенер:
{code:lang=java|title=Code}
mvZoneMap.addMapClickListener(new MapClickListener() {
@OverRide
public void onClick(MapClickEvent event) {
if (mZoneLocation != null)
mvZoneMap.removeMarker(mZoneLocation);

            gpZoneLocation = event.getPosition();
            mZoneLocation = mvZoneMap.createMarker("Zone center", gpZoneLocation, true);
            mvZoneMap.addMarker(mZoneLocation);
        }

});



---
Original issue: https://youtrack.haulmont.com/issue/PL-7866
@haulmont-git haulmont-git added this to the Undefined milestone Apr 27, 2018
@rapekas rapekas removed the charts label Apr 28, 2018
@jreznot jreznot removed this from the Undefined milestone May 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
client: web type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants