PDA

View Full Version : ExtJS with Oracle Mapviewer



farid2
26 Jun 2012, 5:31 AM
Hi,
I need to have oracle map component loads into a extjs panel (tab panel).
Oracle mapviewer needs a div tag with it's predifined id (e.g. "map"). The javascript for the map is :


var mapview = new MVMapView(document.getElementById("map"), baseURL);
mapview.display();


However when doing so, it produce error and map won't show up! The error says that it cannot find the div tag!
Please shed some light on my issue.
Thanks

scottmartin
26 Jun 2012, 8:33 AM
Have you created the div in your html?



<html>
<head>
..
</head>
<body>
<div id="map" style="padding:30px;"></div>
</body>
</html>


Scott.