apneadiving / Google-Maps-for-Rails

Enables easy Google map + overlays creation in Ruby apps
https://apneadiving.github.io/
MIT License
2.26k stars 382 forks source link

Query about gmap version < v2, map loads very slow #399

Closed shivanibhanwal closed 10 years ago

shivanibhanwal commented 10 years ago

First of all would like to thank you for a wonderful gem and also for prompt replies.

On the map we are showing data based on countries and we are showing clustered data on the map. We have four different models and we are combining data of these four models for each country. Also for the cluster we are showing a different info message where as for the markers we are showing a different info message. We are doing all this processing of json in Helper so that we could share code for two different views in our app. However when we were using less data e.g. 50 markers etc till then it was ok map was loading pretty ok. But as soon as data increased to 3500 to 8000 markers. It is really tooooo slow. When we try to see where it is taking longer time we found it is not the ActiveRecord. But it is actually the views where it is taking too long to render it. Could you please guide us if we are doing something wrong here? Also I would like to know if V2 of gmap4rails will help in this case?

thanks!!

apneadiving commented 10 years ago

Hi,

Cant tell what is slow without seing the app. From 2.1 I create infowindows on click, so it's surely faster.

2.x is far better than 1.x anyway.

shivanibhanwal commented 10 years ago

Thank you @apneadiving I will give a try to version 2.1 I will update here about my final results after moving to 2.1

apneadiving commented 10 years ago

Ok let me close this since it doesnt require any action