Try adding a height
and width
to your map container.
<div id="mapContainer" style="width:540px; height:334px;"></div>
If your app_id
and app_code
are invalid you should at least get a grey box.
If you place the <div>
before the <script>
tag then it will be present in the DOM when the script is running. This should work:
<div id="mapContainer" style="width:540px; height:334px;"></div>
<script type="text/javascript">
nokia.Settings.set("app_id", "My_app_id");
nokia.Settings.set("app_code", "My_app_code");
var map = new nokia.maps.map.Display(
document.getElementById("mapContainer"), {
zoomLevel: 10,
center: [52.51, 13.4]
});
</script>
Also open firebug and see if any map tiles are being downloaded or if you have any JavaScript errors.