fixed #2208
fixed problem with gmaps and multiple layer