Reputation: 41
I want that when I click on a point in leaflet my popup opens on the left side. How can I do it?
https://i.sstatic.net/57zfZ.jpg .also I change style leaflet css file like this :
I change this part :
.leaflet-popup {
position: absolute;
text-align: center;
margin-bottom: 20px;
}
to:
.leaflet-popup {
position:absolute;
top: 1px;
left: 1px;
}
But not working!!
Upvotes: 1
Views: 811
Reputation: 41
I enter new style in my HTML and done!.
[Codepen]: https://codepen.io/stackoverflowcom/pen/OJJwooE/ "view on Codepen"
Upvotes: 3