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

GeoJSON set default style to Point and MultiPoint #4155

Closed
wants to merge 5 commits into from

Conversation

jfernandeze
Copy link

Now you can use MultiPoint and Point with Layers GeoJSON with default styles like customize icon

@mourner
Copy link
Member

mourner commented Jan 18, 2016

Not sure about this. You can do the same by passing a pointToLayer function, do we need to extend the API like this?

@jieter
Copy link
Contributor

jieter commented Jan 18, 2016

Yeah, tomorrow someone wants to add popups automatically. I think the current default for Point is a marker is just right.

@jfernandeze
Copy link
Author

This is not mandatory as it is only optional. Of course if you want you can use 'pointToLayer' but in the others types of GeoJson you have the posibility to use defaults options. Perhaps is better modify https://github.com/tombatossals/angular-leaflet-directive...

@jfernandeze
Copy link
Author

Ok! Is true! I can use a pointToLayer function. Thanks a lot.

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.

None yet

3 participants