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

Sidebar slide over map #34

Closed
Monduiz opened this issue Oct 11, 2015 · 4 comments
Closed

Sidebar slide over map #34

Monduiz opened this issue Oct 11, 2015 · 4 comments

Comments

@Monduiz
Copy link

Monduiz commented Oct 11, 2015

Is there a way to modify the sidebar to slide over the map? I'm working on an application where I have components to the right of the map and it would be better if they didn't get pushed to the bottom when the user wants to use the markers list.

@bmcbride
Copy link
Owner

Have a look at: https://github.com/turbo87/sidebar-v2/

@Monduiz
Copy link
Author

Monduiz commented Oct 14, 2015

Bryan, thank you. I knew about that plugin but I don't like how it looks on a map. Your implementation feels more like a web application.

Also, I tested bootleaf's functionality of a list and map with a file of 30,000 items and something is failing. When I try with a list of 2000, it works. It's not with marketClusters, the plugin can handle that many locations very well so I'm wondering if it's list.js or typehead who can't handle it.

Have you encountered this with larger files?

Thank you by the way, your work is very inspiring!

Bjenk

Sent from my iPad

On Oct 13, 2015, at 7:41 PM, Bryan McBride notifications@github.com wrote:

Have a look at: https://github.com/turbo87/sidebar-v2/


Reply to this email directly or view it on GitHub.

@bmcbride
Copy link
Owner

Hi Bjenk,

30,000 is a LOT of items to throw at the browser. How big is that GeoJSON file? I'm certainly not surprised you are having issues trying to parse that file and manage that many DOM objects. My suggestion would be to look at some server-side solution for handling this. Perhaps you could use CartoDB?

@Monduiz
Copy link
Author

Monduiz commented Oct 14, 2015

Hi Bryan,

Yes it's a lot. I've had to work around not having access to a server for different reasons, it's complicated and related to bureaucratic politics.

I did some test and was able to get som functionality by disabling the sync sidebar function but obviously this isn't the solution.

The file is 8mg. I have tried to break down the data into chunks and then creating bloodhounds datasets and join in an array but it's not helping.

Maybe you are right, with this many, I would have to push for a server-side solution. In leaflet, simply showing the locations and info in a doc is not a problem. It's just the list that can't take it.

Thanks for the suggestions.

Sent from my iPhone

On Oct 14, 2015, at 9:54 AM, Bryan McBride notifications@github.com wrote:

Hi Bjenk,

30,000 is a LOT of items to throw at the browser. How big is that GeoJSON file? I'm certainly not surprised you are having issues trying to parse that file and manage that many DOM objects. My suggestion would be to look at some server-side solution for handling this. Perhaps you could use CartoDB?


Reply to this email directly or view it on GitHub.

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