Discussion Board

Results 1 to 15 of 43

Threaded View

  1. #32
    Registered User
    Join Date
    Feb 2012

    Re: How to decrease the Icon (Image) marker size.


    I am confusing on this route map issue, which links should I have to use for my requirement.

    Present, we have the code with Coordinate Points as below and the FULL CODE is also shown below. I need only one thing i.e., converting the string (1.e., Address or city name) to coordinate points (i.e., Ex. 50.1120423728813, 8.68340740740811). Please provide me that code.

    new nokia.maps.geo.Coordinate(50.1120423728813, 8.68340740740811));
    new nokia.maps.geo.Coordinate(50.140411376953125, 8.572110176086426));

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    	<title>Route - Nokia Maps API Example</title>
    	<script src="http://api.maps.nokia.com/2.1.1/jsl.js" type="text/javascript" charset="utf-8"></script>
    	<div id="map" style="width:600px; height:400px;"></div>
    	<script type="text/javascript">
    var map = new nokia.maps.map.Display(
    	document.getElementById("map"), {
    		components: [new nokia.maps.map.component.Behavior()],
    		zoomLevel: 11,
    		center: [50.12, 8.62]
    // Create a route controller
    var router = new nokia.maps.routing.Manager() 
    // Create waypoints
    var waypoints = new nokia.maps.routing.WaypointParameterList();
    	new nokia.maps.geo.Coordinate(50.1120423728813, 8.68340740740811)
    	new nokia.maps.geo.Coordinate(50.140411376953125, 8.572110176086426)
    var modes = [{
    	type: "shortest",
    	transportModes: ["car"],
    	options: "avoidTollroad",
    	trafficMode: "default"
    var onRouteCalculated = function (observedRouter, key, value) {
    	if (value == "finished") {
    		var routes = observedRouter.getRoutes();
    		// Create the default map representation of a route
    		var mapRoute = new nokia.maps.routing.component.RouteResultSet(routes[0]).container;
    		// Zoom to the bounding box of the route
    		map.zoomTo(mapRoute.getBoundingBox(), false, "default");
    	} else if (value == "failed") { 
    		alert("The routing request failed.");
    // Add the observer function to the router's "state" property
    router.addObserver("state", onRouteCalculated);
    // Calculate the route (and call onRouteCalculated afterwards)
    router.calculateRoute(waypoints, modes);
    Last edited by jasfox; 2012-03-07 at 12:13. Reason: formatting

Similar Threads

  1. icon image size for nokia 6670
    By lucidness in forum Symbian
    Replies: 8
    Last Post: 2006-05-01, 19:23
  2. How to decrease the size of animations by changing the source images?
    By MobileVisuals in forum Streaming and Video
    Replies: 1
    Last Post: 2005-05-23, 18:07
  3. How can I decrease and optimize the size of my animated wallpaper?
    By MobileVisuals in forum Streaming and Video
    Replies: 1
    Last Post: 2005-04-19, 18:42
  4. What can be done to decrease JAR size?
    By jjokiranta in forum Mobile Java General
    Replies: 11
    Last Post: 2003-03-20, 10:16

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts