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

'Map' object has no attribute 'simple_marker' #1019

Closed
dmccrickard opened this issue Nov 19, 2018 · 1 comment
Closed

'Map' object has no attribute 'simple_marker' #1019

dmccrickard opened this issue Nov 19, 2018 · 1 comment

Comments

@dmccrickard
Copy link

Hello there,

I am trying to create a folium map using the code below, but I get an error message saying 'Map' object has no attribute 'simple_marker'

I have attached a screenshot of the error message I am getting.

Would you happen to know why this is happening?

Many thanks in advance for your help on this!

import folium

belfast_coordinates = (54.607868, -5.926437)

MAX_RECORDS = 1000
  
map = folium.Map(location=belfast_coordinates, zoom_start=12)

for each in allcrime[0:MAX_RECORDS].iterrows():
    map.simple_marker(
        location = [each[1]['Longitude'],each[1]['Latitude']], 
        clustered_marker = True)
  
display(map)

folium map error

@ocefpaf
Copy link
Member

ocefpaf commented Nov 19, 2018

Simple marker was removed a long time ago. Please check the docs from a modern version of folium: http://python-visualization.github.io/folium/

@ocefpaf ocefpaf closed this as completed Nov 19, 2018
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

2 participants