Skip to content

Refactor Rectangle and Polygon #723

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

Merged
merged 10 commits into from
Sep 16, 2017

Conversation

ocefpaf
Copy link
Member

@ocefpaf ocefpaf commented Sep 16, 2017

In this PR:

  • added tooltip support to all vector layers
  • rename Rectangle and Polygon and set to leaflet's Path defaults.
  • unify get_bounds routine to avoid wrong responses
  • If Path option fill_color is present it will override fill=False

@@ -14,7 +14,7 @@
import branca.element

import folium
from folium.features import PolygonMarker, RectangleMarker, TopoJson
from folium.features import Polygon, Rectangle, TopoJson

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

F401 'folium.features.Polygon' imported but unused
F401 'folium.features.Rectangle' imported but unused

from folium.features import Circle, CircleMarker, Polygon, Rectangle
from folium.utilities import get_bounds

def test_circle():

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

E302 expected 2 blank lines, found 1

@ocefpaf ocefpaf merged commit a1cdff8 into python-visualization:master Sep 16, 2017
@ocefpaf ocefpaf deleted the refact_rect_pol branch September 16, 2017 18:52
sanga pushed a commit to sanga/folium that referenced this pull request Oct 24, 2017
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

Successfully merging this pull request may close these issues.

2 participants