Tools

Namespaces

Variants

Views

Actions

Search

Contents

Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries. Thanks for all your past and future contributions.

Prerequisites

Example code

This example loops through and displays all supported features/sets and features of the current map. It also
attempts to load features and handles success and failure, and in this example the load should be a success.

function retrieveMapFeatures(map){

var list = nokia.maps.Features.getFeatureMap();

// Loop through the features and show them in an alert// Returns a map of implementations for each registered feature. for(var i in list ){if( list.hasOwnProperty(i)){alert("Feature Map: "+list[i]);}}

var list = nokia.maps.Features.getLoadedMap();// Loop through the features and show them in an alert// Returns a map of the names of fully loaded feature // implementations per feature. for(var i in list ){if( list.hasOwnProperty(i)){alert("Loaded Map:"+list[i]);}}