0

Gmap center moves ,when gmarkers are loaded.

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

nsharma gravatar image nsharma flag of India
917 1 11

updated 2014-01-08 12:17:32 +0800

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. :)

delete flag offensive retag edit
Be the first one to answer this question!
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
1 follower

RSS

Stats

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

Seen: 19 times

Last updated: Jan 08 '14

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