Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Mar 2013

    Use HTML5 and canvas

    Ive read that nokia maps support canvas and optimize the rendering of the map using it. But it is not explained how to use it! Ive tried to render map in cavas all the afternoon but no success. Anyone knows how to use it?


  2. #2
    Regular Contributor
    Join Date
    Aug 2011

    Re: Use HTML5 and canvas

    You don't need to worry about using a Canvas element yourself - the library will automagically inject a series of canvas elements into the block level element containing the map - this is usually just a plain old <div>

    Just try the following code in the basic map example, and you'll see what I mean.
    // Get the DOM node to which we will append the map
    var mapContainer = document.getElementById("mapContainer");
    // Create a map inside the map container DOM node
    var map = new nokia.maps.map.Display(mapContainer, {
    	// initial center and zoom level of the map
    	center: [52.51, 13.4],
    	zoomLevel: 10
    // have a look at the injected HTML.

Similar Threads

  1. HTML5 apps..
    By mrrekcuf in forum Nokia N9
    Replies: 4
    Last Post: 2011-09-16, 14:25
  2. html5 onclick
    By Meins in forum Qt
    Replies: 1
    Last Post: 2011-07-07, 10:22

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts