HERE Maps API - Add a map into your Blogger post
m (Jasfox - Updated example to use Nokia Maps API 2.2) |
m (Jasfox -) |
||
| Line 10: | Line 10: | ||
|signing=<!-- Signing requirements - empty or one of: Self-Signed, DevCert, Manufacturer --> | |signing=<!-- Signing requirements - empty or one of: Self-Signed, DevCert, Manufacturer --> | ||
|capabilities= <!-- Capabilities required by the article/code example (e.g. Location, NetworkServices. --> | |capabilities= <!-- Capabilities required by the article/code example (e.g. Location, NetworkServices. --> | ||
| − | |keywords= | + | |keywords= Blog, Blogger, Wordpress |
|id= <!-- Article Id (Knowledge base articles only) --> | |id= <!-- Article Id (Knowledge base articles only) --> | ||
|language= <!-- Language category code for non-English topics - e.g. Lang-Chinese --> | |language= <!-- Language category code for non-English topics - e.g. Lang-Chinese --> | ||
| Line 26: | Line 26: | ||
* [http://api.maps.nokia.com/ Nokia Maps API] | * [http://api.maps.nokia.com/ Nokia Maps API] | ||
* [http://api.maps.nokia.com/en/playground/examples/maps/getting_started/basic.html Basic Map Example] | * [http://api.maps.nokia.com/en/playground/examples/maps/getting_started/basic.html Basic Map Example] | ||
| + | * [http://www.vicchi.org/2012/04/17/two-wordpress-plugins-and-the-missing-nokia-map/ Word Press Plugins for Nokia Maps] | ||
}} | }} | ||
{{Abstract|This article explains how to add a map to your blog post. }} | {{Abstract|This article explains how to add a map to your blog post. }} | ||
| − | |||
| − | + | == Word Press Plugins == | |
| + | A pair of [http://wordpress.org/ WordPress] plugins have been created [http://www.vicchi.org/2012/04/17/two-wordpress-plugins-and-the-missing-nokia-map/ here] specifically to handle adding Nokia Maps on their website: | ||
| + | * [http://wordpress.org/extend/plugins/wp-nokia-auth/ Word Press Nokia Map credentials Plugin] | ||
| + | * [http://wordpress.org/extend/plugins/wp-quadratum/ Word Press Foursquare Nokia Map Plugin] | ||
| + | * [https://github.com/vicchi/wp-nokia-auth Word Press Nokia Map credentials] | ||
| + | * [https://github.com/vicchi/wp-quadratum Word Press Foursquare Nokia Map Code] | ||
| − | == | + | ==Blogger== |
| − | + | Blogger at http://blogger.com is a popular web blogging system. Here are the required steps for adding a Nokia Map to your blog post. | |
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
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. | 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. | ||
| − | |||
| − | |||
Follow these steps to add Nokia Maps into your blog: | Follow these steps to add Nokia Maps into your blog: | ||
| − | + | '''STEP 1''' Open a new Blogger post editing window. | |
| − | Open a new Blogger post editing window. | + | |
| − | + | ||
| − | + | ||
| − | + | ||
| + | '''STEP 2''' Copy and paste the following code into the post ('Edit HTML code' mode) | ||
<code javascript> | <code javascript> | ||
| Line 73: | Line 69: | ||
</code> | </code> | ||
| − | + | '''STEP 3''' Post it! - it's done! | |
| − | + | ||
| − | Post it! - it's done! | + | |
Note: | Note: | ||
| Line 82: | Line 76: | ||
You can edit the map properties and change e.g. the zoom level and map center. | You can edit the map properties and change e.g. the zoom level and map center. | ||
| + | |||
==For more on Nokia Maps API== | ==For more on Nokia Maps API== | ||
Revision as of 18:38, 17 April 2012
Article Metadata
Tested with
Compatibility
Article
This article explains how to add a map to your blog post.
Word Press Plugins
A pair of WordPress plugins have been created here specifically to handle adding Nokia Maps on their website:
- Word Press Nokia Map credentials Plugin
- Word Press Foursquare Nokia Map Plugin
- Word Press Nokia Map credentials
- Word Press Foursquare Nokia Map Code
Blogger
Blogger at http://blogger.com is a popular web blogging system. Here are the required steps for adding a Nokia Map to your blog post.
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.
Follow these steps to add Nokia Maps into your blog:
STEP 1 Open a new Blogger post editing window.
STEP 2 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(
document.getElementById("mapContainer"),
{
'zoomLevel': 10, //zoom level for the map
'center': [19.119, 72.8957] //center coordinates
}
);
</script>
STEP 3 Post it! - it's done!
Note:
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,

