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

LPolygon don't show up #152

Open
ghost opened this issue Apr 8, 2017 · 11 comments
Open

LPolygon don't show up #152

ghost opened this issue Apr 8, 2017 · 11 comments

Comments

@ghost
Copy link

ghost commented Apr 8, 2017

Hello,

I want add simple polygon. I try example from: this
I write some code:

        LMap map = new LMap();
        map.addBaseLayer(new LOpenStreetMapLayer(), "CloudMade");
        map.setCenter(60.455, 22.300);
        map.setZoomLevel(18);

        LPolygon leafletPolygon = new LPolygon(new Point(60.455, 22.300),
                new Point(60.456, 22.302), new Point(60.50, 22.308));
        leafletPolygon.setColor("#FF00FF");
        leafletPolygon.setFill(true);
        leafletPolygon.setFillColor("#00FF00");
        map.addComponent(leafletPolygon);
        map.addLayer(leafletPolygon);
        setContent(map);

but LPolygon not exist in my map.
Please help :)

@ghost
Copy link
Author

ghost commented May 1, 2017

Please answer me, i realny need help

@elmot
Copy link
Collaborator

elmot commented May 2, 2017

That works for me.

@ghost
Copy link
Author

ghost commented May 2, 2017

Do you show mi print screen, plz?

@ghost
Copy link
Author

ghost commented May 4, 2017

I try run code from "PolygonWithHolesTest". But lPolygon no show up on the map :(
Try by firefox, chrome and edge

@ghost
Copy link
Author

ghost commented May 8, 2017

I find reason. This library have regression. LPolygon work for v-leaflet 0.6.0 (And lower). All later versions don't how up LPolygon on map.

@mstahv
Copy link
Owner

mstahv commented May 10, 2017

Which version are you using?

@mstahv
Copy link
Owner

mstahv commented May 10, 2017

The PolygonWithHolesTest works fine for me. Did you get some error on browser? Errors on console?

@ghost
Copy link
Author

ghost commented May 10, 2017

I use the latest V-Leaflet » 2.0.0 and last Vaadin v8.0.5 + integrated with Spring Boot v1.5.3
I don't get any errors. All ok, but on map i don't get any polygon.
Maybe U upload empty client project (based on the latest versions of library) with one example polygon ?

@ghost
Copy link
Author

ghost commented May 10, 2017

@mstahv
Copy link
Owner

mstahv commented May 10, 2017

I tried your project and it worked just fine for me:

screen shot 2017-05-10 at 22 20 18

Which browser are you using? Maybe there is a specific issue to your platform?

@basisbit
Copy link
Contributor

basisbit commented Aug 4, 2017

also works fine here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants