-
13 Dec 2011 8:03 PM #1
Unanswered: How to use Map as a part of the page in Sencha touch framework?
Unanswered: How to use Map as a part of the page in Sencha touch framework?
I am using the Sencha Touch framework for the development of my iPad application.
I am in need of using Map as a part of the screen(say half a page). When I try to do put a map component into my page, its covering the full page overlapping the previous components.
Please share your suggestions.
Thanks in advance,
Easwar
-
14 Dec 2011 8:59 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,656
- Vote Rating
- 435
- Answers
- 3108
Sencha Touch 1 or Sencha Touch 2?
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
15 Dec 2011 3:56 AM #3
Need more info
Need more info
Hi, Thanks for your reply. I am doing with sencha touch 1. Actually can you say how to place a map on the page, as a part of it.
-
15 Dec 2011 3:18 PM #4
My guess is that you have the fullscreen property attached to the map component.
Here is a simple example that shows 2 maps each taking up 50% of the container.
change hbox to vbox if you want to stack the components.Code:Ext.setup({ onReady: function() { new Ext.Panel({ layout:'hbox', fullscreen:true, items:[ { xtype:'map', flex:1 }, { xtype:'map', flex:1 } ] }); } });


Reply With Quote