Automatic scaling GMap to display all markers not working.
This is due to the fact that the map render occurs after attachment behaviors that prejudice the application settings for the map.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

validoll’s picture

This patch fix it.

validoll’s picture

Status: Active » Needs review
validoll’s picture

Component: Code » OL Behaviors
Pol’s picture

Component: OL Behaviors » Code

Hello Validoll,

This is something I'm currently looking. I think the best way to fix in a good way, which means, globally, for all kind of layers, is by using OpenLayers Strategies, but that will be for later :-)

I think your patch will fix your problem, but will break the ZoomToLayer behavior for KML and probably some other stuff.

I will put this "on hold" until we find a better way to fix this.

validoll’s picture

Component: Code » OL Behaviors

Thanks Pol!
I do not use KML, and this is really a solution for me.
I will wait for your solutions.