Revision as of 17:58, 13 April 2012 by jasfox (Talk | contribs)

HERE Maps API - Add a map into your Blogger post

From Nokia Developer Wiki
Jump to: navigation, search
Article Metadata
Tested with
Devices(s): Google Chrome, Mozilla Firefox, Internet Explorer, Opera
Platform(s): Web Browser
Dependencies: Nokia Maps 2.2.0
Created: Maveric (20 Jun 2011)
Updated: avnee.nathani (12 Jan 2012)
Last edited: jasfox (13 Apr 2012)

This article explains how to add a map to your blog post.



Blogger at http://blogger.com is one of the most popular web blogging systems. To have a map inside a blog post would be cool, let's go through the steps of adding Nokia Maps to your blog post.


Nokia Maps API supported web browser (basically any modern web browser)

A new or existing account at Blogger.com (http://blogger.com)


We will create a new blog article using the online tools of Blogger. The example code will include the required HTML, JavaScript and styling needed to display the map. If needed, modify the paths and name of the file to suite your purposes.

Example code

Follow these steps to add Nokia Maps into your blog:


Open a new Blogger post editing window.


Copy and paste the following code into the post ('Edit HTML code' mode)

<script type="text/javascript" src="http://api.maps.nokia.com/2.2.0/jsl.js" charset="utf-8">
<div id="map" style="width:400px; height:400px;">
<script type="text/javascript">
// Don't forget to set your API credentials
nokia.Settings.set( "appId", "YOUR APP ID GOES HERE");
nokia.Settings.set( "authenticationToken", "YOUR AUTHENTICATION TOKEN GOES HERE");
var map = new nokia.maps.map.Display(
'zoomLevel': 10, //zoom level for the map
'center': [19.119, 72.8957] //center coordinates


Post it! - it's done!


If you omit the zoom level value it will default to 0 (zero) and if you omit center, the coordinates will default to zero coordinates as well (0,0).

You can edit the map properties and change e.g. the zoom level and map center.

For more on Nokia Maps API

Please check out the Nokia Maps API full documentation and API reference here:

You may also access the interactive Nokia Maps API playground,

243 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.


Thank you!

We appreciate your feedback.