1. #1
    Sencha User
    Join Date
    Feb 2012
    Location
    Kottayam, Kerala
    Posts
    4
    Vote Rating
    0
    alesha is on a distinguished road

      0  

    Default SEncha Maps

    Could anyone please help me with sencha Maps...

  2. #2
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    9,263
    Vote Rating
    486
    scottmartin has a reputation beyond repute scottmartin has a reputation beyond repute scottmartin has a reputation beyond repute scottmartin has a reputation beyond repute scottmartin has a reputation beyond repute scottmartin has a reputation beyond repute scottmartin has a reputation beyond repute scottmartin has a reputation beyond repute scottmartin has a reputation beyond repute scottmartin has a reputation beyond repute scottmartin has a reputation beyond repute

      0  

    Default

    Did you have a specific question in mind?

    Regards,
    Scott.

  3. #3
    Sencha User
    Join Date
    Feb 2012
    Location
    Kottayam, Kerala
    Posts
    4
    Vote Rating
    0
    alesha is on a distinguished road

      0  

    Default Maps:Plot Markers from store(json data), tap marker and determine direction

    Ext.define('Navigator.view.mapcard', {
    extend: 'Ext.Map',
    xtype: 'mapcard',


    config: {
    title: 'Mappa',
    iconCls: 'maps',
    useCurrentLocation: true,
    mapTypeId: google.maps.MapTypeId.ROADMAP,
    navigationControl: true,
    navigationControlOptions: {
    style: google.maps.NavigationControlStyle.DEFAULT
    },




    listeners: {
    maprender: function (comp, map) {
    var image = '/images/iconmarker.png';
    data = Navigator.store.Contacts;
    for (var i = 0, ln = data.data.length; i < ln; i++) {
    addMarkers(data.data.items[i], image);
    }
    var addMarkers = function (data, image) {
    var latLng = new google.maps.LatLng(data.get('latitude'), data.get('longitude'));
    var marker1 = new google.maps.Marker({
    map: map.map,
    position: latLng,
    icon: image
    });
    google.maps.event.addListener(marker1, 'click', function () {
    infowindow.open(map, marker1);
    //marker1.setPostion(latLng);


    });

    setTimeout(function () { map.panTo(position) }, 1000);
    }
    }
    }






    In the above code fragment i have specified the code to plot the markers from json data, but i do not get any thing displayed on the map.Once the markers are plotted i need to facilitate tap on the markers and determine the directions to go to the marker tapped from my current location.Could you please provide some help regarding the same.

Thread Participants: 1