Ovi Maps API

kevinSharp | 23 December, 2010 19:59

Ovi Maps API is a straightforward Location Based API, featuring object-oriented paradigms in a Java Script environment. It consists of multiple modules which can ship separately or in any possible combination. Available modules include Map Rendering, Search, and Routing.

The Ovi Maps API is optimised for use in desktop browsers and assumes typical desktop connectivity; for mobile uses see the related Ovi Maps Rendering API.

Use of Ovi Maps API is simple. Once the Ovi Maps API JavaScript library is included in an HTML page, only a few lines of code are needed to have Ovi Maps running.

Include the Ovi Maps API JavaScript library:

<head>
 ...
  <script src="http://api.maps.ovi.com/jsl.js" type="text/javascript" charset="utf-8">
  </script>
 ...
</head>

... and then display a basic map with defined zoom level and centre coordinates. The map will be placed inside the 'map' DIV element:

<div id="map" style="width:600px; height:400px;"></div>
<script type="text/javascript">
  var map = new ovi.mapsapi.map.Display(document.getElementById("map"), {
    'zoomLevel': 10, //zoom level for the map
    'center': [52.51, 13.4] // center coordinates
});
</script>

 

The API is designed with a decoupled UI, meaning that all of the front end is attach- and detachable, including  even basic features like dragging and clicking.

An observer design pattern makes tracking state changes easy. The concept is straightforward: the observer is a function which is set by the addObserver function for either a specific key (OObject class) or a specific action (OList class). If the related value changes or the related action is triggered, the given observer function is triggered.

Check out the full details, documentation, examples, and the Ovi Maps Playground environment.


RSSComments

program

makemymart | 25/12/2010, 18:52

thanks for this useful info,
I am trying to debug the Server file in rmi structure. I put break point in client where the contorl calls the implementation file.in implementaion file also i put break point .but debug cannot show the control in implementation. it directly executes the client file. please give solution to this problem..

http://www.makemymart.com

Re: Ovi Maps API

miksuh | 27/12/2010, 18:30

@ makemymart

Exactly what are you talking about? Sorry but I fail to see how your question is supposed to be related to this article or Ovi Maps API. The link you provided did not make things any clearer. How do you even expect that Nokia guys or anyone else could answer you when what you tell is as vague as that. And wouldn't developer forums better place to sk questions like that anyway?

Re: Ovi Maps API

ltomuta | 28/12/2010, 21:18

ltomuta

@miksuh

makemymart is just a little spammer, can be ignored.;)

Re: Ovi Maps API

intip2 | 03/02/2011, 08:57

Discussion and interesting story

You must login to post comments. Login
 
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved