PDA

View Full Version : How to add a Plugins ?



Oxii
23 Sep 2012, 6:51 AM
here is my map initialization :



Ext.define('App.Map', {
extend: 'GeoExt.panel.Map',
alias: 'widget.themap',
initComponent: function () {
var me = this;
Ext.apply(me, {
map: map,
});
me.callParent(arguments); }});

then add map to mapPanel:



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

now I want to use the extent polygon here in this example:http://geoext.github.com/geoext2/examples/printextent/print-extent.html
on my mapPanel, not generating a new one.
I am not sure how/where I have to add the plugin property ??

scottmartin
24 Sep 2012, 9:54 AM
Duplicate post:
http://www.sencha.com/forum/showthread.php?243535

Scott.