Revision history [back]

click to hide/show revision 1
initial version

asked 2014-01-08 12:17:11 +0800

nsharma gravatar image nsharma flag of India

Gmap center moves ,when gmarkers are loaded.

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">
             <gmarker open="true" lat="@load(each.latitude)" 
        lng="@load(each.longitude)" content="@load(each.Info)"/>
            </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. :)

Gmap center moves ,when gmarkers are loaded.

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">
             <gmarker open="true" lat="@load(each.latitude)" 
        lng="@load(each.longitude)" content="@load(each.Info)"/>
            </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. :)

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More