1. #1
    Sencha - Community Support Team VinylFox's Avatar
    Join Date
    Mar 2007
    Location
    Baltimore, MD
    Posts
    1,501
    Vote Rating
    8
    VinylFox will become famous soon enough VinylFox will become famous soon enough

      0  

    Default Ext.ux.GMapPanel - Google Maps

    Ext.ux.GMapPanel - Google Maps


    ExtJS Google Maps Panel Updated With Locale Support and More...

    This is an extension that adds Google Map functionality to any panel, or panel type of component. It has been tested with both 2.x and 3.x branches and appears to work fine in both.

    There are separate versions that work with the Google Maps 2.x API and the 3.x API.

    Features:
    • Render google map to a panels body
    • Add map controls
    • Set map center
    • Add markers
    • Geocode center location or markers
    • Localization for error messages
    • Use any Google map type, Moon, Sky, etc.

    Working on:
    • Add map controls via config (no instantiated) - added July 31
    • Add multiple map controls - added July 31
    • Add listeners for marker interaction - added July 31
    • Add gmap config options - added July 31
    • Document code - added August 20th
    • Load KML file - added November 22nd
    • Document code better - added January 27th
    • Mars, Moon and Sky map support - added sky on March 19th (working on others still)
    • Add more examples - added tab example on March 19th (will add more as needed), added more on April 26th

    Bugs:
    • setCenter killing controls when lat/lng used for center point instead of geocode - fixed August 20th
    • Too many to remember - fixed January 27th
    • setCenter kills the map when using lat/lng - unable to locate problem as of yet

    *

    The UX and Example code can be found on Github
    https://github.com/VinylFox/ExtJS.ux.GMapPanel/


    *

    Please feel free to make modifications or additions and post them back to this thread - I will integrate them with the extension.

    Blog Post:http://extjs.com/blog/2008/07/01/int...pi-with-extjs/

    Live Example:http://www.extjs.com/playpen/gmaps/ux.gmaps.php (uses out-dated component code)

  2. #2
    Sencha User willgillen's Avatar
    Join Date
    Mar 2007
    Posts
    110
    Vote Rating
    0
    willgillen is on a distinguished road

      0  

    Default


    Can you please outline the Licensing?

  3. #3
    Ext User
    Join Date
    Jan 2008
    Posts
    70
    Vote Rating
    0
    NeonMonk is on a distinguished road

      0  

    Default


    Very cool!

  4. #4
    Sencha User
    Join Date
    Mar 2007
    Posts
    464
    Vote Rating
    1
    JorisA is on a distinguished road

      0  

    Thumbs up


    Awesome, I created something similar a while ago with the ability to automaticly add markers from a datastore, but I din't really finish it.

  5. #5
    Ext User
    Join Date
    Apr 2008
    Location
    Baltimore, MD
    Posts
    15
    Vote Rating
    0
    EzBulka is on a distinguished road

      0  

    Default Don't copy and paste from IE

    Don't copy and paste from IE


    This might be old news but it's the first time I've discovered it. Apparently, if you copy the code in IE and paste it into your IDE, it pastes it as one line! Yikes. It works fine in the superior Firefox browser - at least 3.0 does. So in the future, could you post a link to the JS file to make it easier for use in IE? Thanks.

  6. #6
    Ext User
    Join Date
    Jul 2008
    Location
    Budakeszi/Hungary
    Posts
    16
    Vote Rating
    0
    LouiSe is on a distinguished road

      0  

    Default


    Hi VinylFox,

    This is an excellent extension! But i've a - maybe stupid - question, how can i POST selected Google Maps position (LAT, LANG) by SUBMIT with FormPanel?
    http://louise.hu / poetry / development / C, Java, JavaScript, HTML / ExtJS / Alfresco

  7. #7
    Sencha - Community Support Team VinylFox's Avatar
    Join Date
    Mar 2007
    Location
    Baltimore, MD
    Posts
    1,501
    Vote Rating
    8
    VinylFox will become famous soon enough VinylFox will become famous soon enough

      0  

    Default


    Quote Originally Posted by LouiSe View Post
    Hi VinylFox,

    This is an excellent extension! But i've a - maybe stupid - question, how can i POST selected Google Maps position (LAT, LANG) by SUBMIT with FormPanel?
    Not a stupid question at all...what you will need is the center point from the maps handlers that Google provides. You can get a reference to the Google map by using getMap()

    For example:
    Code:
    Ext.getCmp('yourmapid').getMap().getCenterPoint();
    That would return a GMaps GLatLng object which could be used to retrieve lat/long info.

    ie:
    Code:
    var cur_glatlng = Ext.getCmp('yourmapid').getMap().getCenterPoint();
    var cur_lat = cur_glatlng.lat();
    var cur_lng = cur_glatlng.lng();
    Hope that helps.

  8. #8
    Ext User
    Join Date
    Oct 2007
    Posts
    26
    Vote Rating
    0
    runnersixty is on a distinguished road

      0  

    Default


    thanks for the work.
    I use this for map options:

    just after this line

    this.gmap = new GMap2(this.body.dom);


    PHP Code:
    if(Ext.isArray(this.mapConfOpts)){
                    for(
    I=0;I<this.mapConfOpts.length;I++){
                        try{
                            eval(
    'this.gmap.'+this.mapConfOpts[I]+'();');
                        }
                        catch(
    e){
                            
    alert(this.mapConfOpts[I]+' is not a map configuration method');
                        }
                    }
                } 
    using this way:
    PHP Code:
    addControl: new GSmallMapControl(),
    mapConfOpts: ['enableScrollWheelZoom','enableDoubleClickZoom','enableDragging'],
    ..... 
    for sure not the best and clean way, but it works.

    Davide.

  9. #9
    Ext User
    Join Date
    Jul 2008
    Location
    Budakeszi/Hungary
    Posts
    16
    Vote Rating
    0
    LouiSe is on a distinguished road

      0  

    Default


    Thanks, this is helpful for me!
    http://louise.hu / poetry / development / C, Java, JavaScript, HTML / ExtJS / Alfresco

  10. #10
    Ext User
    Join Date
    Apr 2008
    Location
    Baltimore, MD
    Posts
    15
    Vote Rating
    0
    EzBulka is on a distinguished road

      0  

    Default Beware of moving window out of bounds

    Beware of moving window out of bounds


    Perhaps this problem exists outside of the GMapPanel as well. But if you move the Panel outside the bounds of the browser, there might be no way to get it back. If you try to grab the panel, of course, you will simply grab the map. I put this in to prevent that:
    PHP Code:
    listeners:{
        
    'move':{
            
    fn:function(){
                if (
    this.0this.setPosition(this.x,0);
            }
        }


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