Tell me more ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I would like to add an extent polygon here in this example:http://geoext.github.com/geoext2/examples/printextent/print-extent.html to may panel, not generating a new one. here is my map initialization :

Ext.define('MyApp.Map', {
        extend: 'GeoExt.panel.Map',
        alias: 'widget.mymap',

        initComponent: function () {  
         var me = this;

            Ext.apply(me, {
                map: map,
            });

        me.callParent(arguments);
    }
});

then add map to mapPanel

Ext.getCmp('mapPanel').add({requires: ['MyApp.Map'], items: [{xtype: 'mymap'  }] });

but I am stuck trying to add that plugin to my panel. In the example it seems simple but I couldn't do it! I am not sure where I have to add the plugin in my case.

share|improve this question

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.