map class adapt to the googe map api on javascript