(Difference between revisions)

HERE Maps API - Add a map into your Blogger post

From Nokia Developer Wiki
Jump to: navigation, search
hamishwillee (Talk | contribs)
m (Hamishwillee - Automated change of category from Ovi Maps to Nokia Maps)
hamishwillee (Talk | contribs)
m (Hamishwillee - Bot addition of Template:ArticleMetaData)
Line 1: Line 1:
|sourcecode= <!-- Link to example source code e.g. [[Media:The Code Example ZIP.zip]] -->
|installfile= <!-- Link to installation file (e.g. [[Media:The Installation File.sis]]) -->
|devices= <!-- Devices tested against - e.g. ''devices=Nokia 6131 NFC, Nokia C7-00'') -->
|sdk= <!-- SDK(s) built and tested against (e.g. [http://linktosdkdownload/ Nokia Qt SDK 1.1]) -->
|platform= <!-- Compatible platforms - e.g. Symbian^1 and later, Qt 4.6 and later -->
|devicecompatability= <!-- Compatible devices e.g.: All* (must have internal GPS) -->
|dependencies= <!-- Any other/external dependencies e.g.: Google Maps Api v1.0 -->
|signing=<!-- Signing requirements - empty or one of: Self-Signed, DevCert, Manufacturer -->
|capabilities= <!-- Capabilities required by the article/code example (e.g. Location, NetworkServices. -->
|keywords= <!-- APIs, classes and methods (e.g. QSystemScreenSaver, QList, CBase -->
|id= <!-- Article Id (Knowledge base articles only) -->
|language= <!-- Language category code for non-English topics - e.g. Lang-Chinese -->
|translated-by= <!-- [[User:XXXX]] -->
|translated-from-title= <!-- Title only -->
|translated-from-id= <!-- Id of translated revision -->
|review-by=<!-- After re-review: [[User:username]] -->
|review-timestamp= <!-- After re-review: YYYYMMDD -->
|update-by= <!-- After significant update: [[User:username]]-->
|update-timestamp= <!-- After significant update: YYYYMMDD -->
[[Category:Web]][[Category:Browser]][[Category:Nokia Maps]]
[[Category:Web]][[Category:Browser]][[Category:Nokia Maps]]

Revision as of 02:44, 2 January 2012

Article Metadata
Created: Maveric (20 Jun 2011)
Last edited: hamishwillee (02 Jan 2012)



Blogger at http://blogger.com is one of the most popular web blogging systems. To have a map inside the map would be cool, so in this article we will go thru the steps how to add Ovi Maps into your blog article.


Ovi 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 Ovi 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 src="http://api.maps.ovi.com/jsl.js" type="text/javascript" charset="utf-8"></script>
<div id="map" style="width:400px; height:400px;">
<script type="text/javascript">
var map = new ovi.mapsapi.map.Display(
'zoomLevel': 10, //zoom level for the map
'center': [52.51, 13.4] //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 aswell (0,0).

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

See the example live here


For more on Ovi Maps API

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


Tested on

Google Chrome 11.0x

Mozilla Firefox 5.0

272 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.