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

GPS Markers #665

Open
HADDADENICAR opened this issue Jun 8, 2018 · 3 comments
Open

GPS Markers #665

HADDADENICAR opened this issue Jun 8, 2018 · 3 comments

Comments

@HADDADENICAR
Copy link

is it possible to have gps markers inside the map ,with geopyspark ?
thanks

@jpolchlo
Copy link
Collaborator

jpolchlo commented Jun 8, 2018

Hi, Haddad.

I have to ask if you are using the geonotebook environment, or if you are using folium or ipyleaflet. If you are in the geonotebook env, then please consider moving to a conventional pyspark Jupyter kernel and importing folium or ipyleaflet, as we are no longer recommending geonotebook.

With that said, markers are added according to the instructions from whichever map display plugin you've opted for. See the applicable docs and let me know if you need further assistance? Thanks!

@HADDADENICAR
Copy link
Author

Hello,no i didn't used geopyspark yet .
i tried folium with pyspark with no success since folium objects aren't serialiazble ,the issue is here ,for that i thought using your geopyspark but before i want to know if gps markers are possible or not.

@jpolchlo
Copy link
Collaborator

jpolchlo commented Jun 8, 2018

As long as you use the folium objects only on the notebook on the master, you won't have to serialize. You'd be well-served to produce a GeoJSON file from your computations and just display that as a layer with a styling function to get the correct marker shape. The main concern I have with your approach is that leaflet performance will start to degrade quickly with too many markers. Having a very large quantity of locations to mark would be the only sensible reason to call out to spark for the processing, and very large quantities of markers may not work very well in any leaflet-based map.

In any event, I'm not sure if geopyspark is going to provide a solution to your problems, since we're more interested in the computation side of the equation, and we farm out the display to other packages like folium.

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