1. #321
    Sencha User
    Join Date
    May 2009
    Posts
    29
    Vote Rating
    2
    Antjac is on a distinguished road

      0  

    Default


    As Haggai said,

    This is a little patch for Ext.ux.GMapPanel3.js

    Change lines 273 and 284 by
    Code:
    this.gmap = new google.maps.Map(this.body.dom,  {zoom:this.zoomLevel,mapTypeId:  (this.gmapTypeId!=undefined?eval(this.gmapTypeId):google.maps.MapTypeId.ROADMAP)});
    '

    This is to allow you to change the style of the map :
    • MapTypeId.ROADMAP displays the default road map view
    • MapTypeId.SATELLITE displays Google Earth satellite images
    • MapTypeId.HYBRID displays a mixture of normal and satellite views
    • MapTypeId.TERRAIN displays a physical map based on terrain information
    You can now add this line in your gmappanel declarationgmap

    Code:
    TypeId: 'google.maps.MapTypeId.TERRAIN',
    by exemple to show a physical map

  2. #322
    Sencha User
    Join Date
    Sep 2011
    Location
    Maddaloni (CE) Italy
    Posts
    74
    Vote Rating
    1
    ing.amdangelo is on a distinguished road

      0  

    Default get direction

    get direction


    If possible to implements get direction ??
    Ing theMAdPumpkin

  3. #323
    Sencha User
    Join Date
    Aug 2011
    Posts
    28
    Vote Rating
    0
    Ankit.Desai is on a distinguished road

      0  

    Default getMap () call on gmappanel returns undefined

    getMap () call on gmappanel returns undefined


    I have migrated from Google Map api v2 to v3. When I try to call getMap() on gmaappanel to pass to markercluster, I am not getting Map object. I have updated GMapPanel3.js and v3 url. If I don't do clustering of marker than it works fine as I am n't extracting Map object from GmapPanel. Code is as below.


    Code:
    Ext.create('Ext.Viewport', {
              id:'viewport',
              title: 'Site Register',
              layout: 'border',
              items: [
                  {
                    region: 'west',
                    title: '',
                    id:'searchPanel',
                    split:true,
                    width:600,
                    autoScroll:true,
                    items:[
                     {  
                        xtype    :'panel',
                        id       :'inboxListPanel',
                        emptyText: 'No records',
                        title    : 'Inbox',
                        collapsible: true,
                        draggable: true,
                        style    :'text-align:center',
                        items    : [grid]
                      }
                     ]
                },{
                    region: 'center',
                    id: 'mainPanel',
                    deferredRender: false,
                    items: [
                        Ext.create("Ext.tab.Panel", {
                        region: 'center',
                        id:'mapPanel',
                        width:'100%',
                        activeTab: 0,
                        items: [{
                         xtype: 'gmappanel',
                         title: 'Map',
                         id : 'gSiteMap',
                         width:900,
                         height:850,
                         zoomLevel: 5,
                         gmapType: 'map',
                         mapConfOpts: ['enableScrollWheelZoom','enableDoubleClickZoom','enableDragging'],
                         mapControls: ['GSmallMapControl','GMapTypeControl','NonExistantControl'],
                         setCenter: {
                           geoCodeAddr: '1600 Penn St, Washington DC, DC',
                           marker:{ title: 'HQ, Washington DC DC'}
                        }
            }]
         }]
    });
    
    var gmp = Ext.getCmp('gSiteMap');
    var gm = gmp.getMap();    <----------------- gm is undefined !
    I have GMapPanel.js from Link

Thread Participants: 98

  1. Animal (5 Posts)
  2. willgillen (1 Post)
  3. pop k (1 Post)
  4. sean (1 Post)
  5. dolittle (1 Post)
  6. JorisA (2 Posts)
  7. tobiu (1 Post)
  8. mauro.pelucchi (1 Post)
  9. bhaidaya (1 Post)
  10. yuki (1 Post)
  11. z1nkum (1 Post)
  12. fsa3 (1 Post)
  13. hendricd (2 Posts)
  14. xantus (1 Post)
  15. dodgie (1 Post)
  16. runnersixty (1 Post)
  17. TigersWay (2 Posts)
  18. bclinton (4 Posts)
  19. luisparada (1 Post)
  20. lorezyra (4 Posts)
  21. mask_hot (1 Post)
  22. ghutchens (1 Post)
  23. josh803316 (1 Post)
  24. BuckBazooka (2 Posts)
  25. achebe (2 Posts)
  26. mnask (1 Post)
  27. GobbaF (4 Posts)
  28. NeonMonk (1 Post)
  29. nunziofiore (2 Posts)
  30. sabiola (1 Post)
  31. Joyfulbob (7 Posts)
  32. JoyfulBobHome (1 Post)
  33. davidrolli (3 Posts)
  34. nctag (2 Posts)
  35. keckeroo (2 Posts)
  36. moegal (4 Posts)
  37. EzBulka (2 Posts)
  38. lokiofragnar (3 Posts)
  39. mnask79 (9 Posts)
  40. EachOnSet (1 Post)
  41. abraxxa (15 Posts)
  42. stolsma (4 Posts)
  43. IT100 (3 Posts)
  44. Scorpie (1 Post)
  45. cyfl (1 Post)
  46. LouiSe (3 Posts)
  47. Matt Bittner (2 Posts)
  48. rb4i (1 Post)
  49. ScarFreewill (1 Post)
  50. prabhukm (3 Posts)
  51. arthurakay (1 Post)
  52. ExtSwede (1 Post)
  53. f1xxx3r (1 Post)
  54. mirgor (1 Post)
  55. Daz (3 Posts)
  56. rlegend (6 Posts)
  57. veerugadde (4 Posts)
  58. sprestel (1 Post)
  59. nikhilkrishnan (1 Post)
  60. Stju (4 Posts)
  61. rubyaryat (1 Post)
  62. daveh0 (3 Posts)
  63. whdanj (2 Posts)
  64. Jangla (15 Posts)
  65. haggai (1 Post)
  66. ripun008 (7 Posts)
  67. treadmill (5 Posts)
  68. Antjac (1 Post)
  69. talha06 (2 Posts)
  70. The Transporter (2 Posts)
  71. ADP-LMY (1 Post)
  72. madcity (2 Posts)
  73. Margusja (13 Posts)
  74. presedo (1 Post)
  75. satishyl (2 Posts)
  76. shinkenno (12 Posts)
  77. FabianIB (1 Post)
  78. chickenwings (2 Posts)
  79. frrogoy (5 Posts)
  80. scusyxx (1 Post)
  81. extjsuser2010 (1 Post)
  82. karlsnyder0 (1 Post)
  83. a06mikkl (3 Posts)
  84. ptmll (1 Post)
  85. cdt3pm (1 Post)
  86. scaron (1 Post)
  87. ankurkaps (1 Post)
  88. guyza (1 Post)
  89. DeDarling (3 Posts)
  90. EduardoIbarra (1 Post)
  91. kinestetic (1 Post)
  92. surendrankn (2 Posts)
  93. mr.zaur (3 Posts)
  94. aparker (1 Post)
  95. kkris1983 (1 Post)
  96. neerajbherwal (1 Post)
  97. Ankit.Desai (3 Posts)
  98. ing.amdangelo (1 Post)