# Gmap center moves ,when gmarkers are loaded.

nsharma
917 1 11

I am trying to use gmarker with gmap:

<gmaps height="100%"  zoom="13" lat="26.912274" lng="75.787468"  children="@load(vm.list)"                      mapType="normal">
<template name="children" var="each">
</template>
</gmaps>


If there are no gmarker(list is empty),the gmap center is at right position (at the mentioned lat & lon) ,as soon as there comes some amount of gmarker(say 20 to 30),the gmap center tends to move to some other coordinate.

Run this code with some gmarkers, see for yourself. I have tried to keep the center at right position,didn't got any success so far. Any help?? Thanks in advance. :)

delete retag edit
Be the first one to answer this question!
[hide preview]