-
16 Aug 2010 5:11 AM #1
Where has the .map gone in the kitchn sink example?
Where has the .map gone in the kitchn sink example?
Hi
in the examples: map (examples/map/) the map is created as follows:
The marker on the map is created by:Code:var mapdemo = new Ext.Map({ center: position }); new Ext.Panel({ fullscreen: true, dockedItems: [toolbar], items: [mapdemo] });
If I check out chrome:firebugCode:var marker = new google.maps.Marker({ position: position, map: mapdemo.map });
it shows up as follows:Code:console.dir(mapdemo)
mapdemo.map = Object gm_accessors_=Object
Which all makes sense.
In the kitchesink demo (http://dev.sencha.com/deploy/touch/e...s/kitchensink/ userinferface -> map) the map card is made up slightly differently:
If is use:Code:demos.Map = new Ext.Panel({ layout: 'fit', items: [{ xtype: 'map' }] });
I can find a 'map' entry:Code:console.dir(demos.Map)
in demos.Map.items.map = Object ext-comp-1053=Object
Would be grateful if someone could point out where the googlemap object is?
thank you for your help
ice70
-
16 Aug 2010 5:22 AM #2
demos.Map is a panel which contains a map object as a child item:
Code:// Ext.Map var map = demos.Map.items.first(); console.log(map.map);
Evan Trimboli
Sencha Developer
Twitter - @evantrimboli
Don't be afraid of the source code!
-
16 Aug 2010 5:35 AM #3
Hi Evan,
thank you for you quick reply.
If I update the file: examples\kitchensink\src\demos\map.js to
the console output is:Code:demos.Map = new Ext.Panel({ layout: 'fit', items: [{ xtype: 'map' }] }); var map = demos.Map.items.first(); console.log(map.map);
null
the map still shows though if I navigate to it.
I also tried in safari just in case chrome was doing something unexpected, but got the same result.
Thank you for your help
ice70
-
18 Aug 2010 2:21 AM #4
Hi there
any ideas why the
is null?Code:console.log(map.map);
thank you
Ice70
Similar Threads
-
[FIXED-207] Ext.Map: wrapped map unavailable in afterRender
By cnelissen in forum Sencha Touch 1.x: BugsReplies: 2Last Post: 8 Sep 2010, 7:05 PM -
Kicthen Sink example scrolling behaviour - please help
By colinp in forum Sencha Touch 1.x: DiscussionReplies: 7Last Post: 17 Aug 2010, 4:46 AM -
K Sink
By bobmane in forum Sencha Touch 1.x: DiscussionReplies: 6Last Post: 11 Aug 2010, 8:09 AM -
Question to Cards of Kitchen Sink/ Events Example
By msinn in forum Sencha Touch 1.x: DiscussionReplies: 2Last Post: 30 Jul 2010, 12:53 PM -
TextField does not sink Event.ONCHANGE
By mbellew in forum Ext GWT: DiscussionReplies: 2Last Post: 6 May 2010, 11:42 AM


Reply With Quote