1. #1
    Sencha User
    Join Date
    Sep 2012
    Posts
    13
    Vote Rating
    0
    keweli is on a distinguished road

      0  

    Default Unanswered: How to use mapOptions?

    Unanswered: How to use mapOptions?


    I am trying to simply show a map with a marker set to the given geolocation. But the mapOptions doesn't seem to work, it just keeps showing some place in America. Am I doing it right?

    Code:
                        {
                            xtype: 'map',
                            title: 'MyMap',
                            height: 202,
                            width: '100%',
                            mapOptions: 'center : new google.maps.LatLng(-37.20097, 145.08719)'
                        }
    Thanks

  2. #2
    bricemason's Avatar
    Join Date
    Jan 2008
    Location
    Upstate NY
    Posts
    280
    Answers
    49
    Vote Rating
    44
    bricemason has a spectacular aura about bricemason has a spectacular aura about bricemason has a spectacular aura about

      0  

    Default


    The map options are an object so this would work:

    Code:
    {
        xtype: 'map',
        title: 'MyMap',
        height: 202,
        width: '100%',
        mapOptions: {
            center : new google.maps.LatLng(-37.20097, 145.08719)
        }
    }
    Brice
    Brice Mason
    Front End Developer
    Modus Create

    @bricemason
    bricemason.com

    Sencha Touch Screencasts
    Vimeo - Sencha Touch Channel

    Github Projects:
    Sencha Cordova Builder enables the automatic creation, building, and running of PhoneGap (Cordova) projects with Sencha Touch.

    Am I Sencha Touch Ready? checks your system to determine what you need to do to start Sencha Touch development. If you're having trouble getting up and running, try this out.

    Sencha Tools Bridge allows Sencha SDK Tools to co-exist with Sencha Cmd on the same system.

Thread Participants: 1

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi