Hi Vladimirs,
Thanks for your reply. Actually I am trying to implement this using mvc concept and in my View.js file I have coded
var tab = new sap.m.IconTabBar({
items: [
new sap.m.IconTabFilter({
text: "Floor Plan",
icon: "sap-icon://puzzle",
iconColor: sap.ui.core.IconColor.Default,
content: new sap.m.Image({
src: "image/fp1.jpg",
width:"100%",
height:"100%"
}),
}),
new sap.m.IconTabFilter({
text: "Geo location",
icon: "sap-icon://map",
iconColor: sap.ui.core.IconColor.Default,
content:
new sap.ui.core.HTML({
content:'<div id="map_canvas" style="width:300px;height:200px;"></div>',
})
}),
]
});
return new sap.m.Page({
title: "Title",
showNavButton: true,
navButtonTap:function(){
app = sap.ui.getCore().byId("myApp");
app.to("idestate1");
},
content: [tab
]
});
But I actually don't know where to put $().ready(initialize_map) and because of this I think it is giving error. If I put $().ready(initialize_map) this in the View.js file it is throwing error Uncaught ReferenceError: initialize_map is not defined. So can you please tell me where to put $().ready(initialize_map)..
Thanks
Himadri