The Following User Says Thank You to Android_808 For This Useful Post: | ||
![]() |
2010-12-22
, 07:26
|
Posts: 1,397 |
Thanked: 2,126 times |
Joined on Nov 2009
@ Dublin, Ireland
|
#22
|
![]() |
2010-12-22
, 13:12
|
|
Posts: 397 |
Thanked: 802 times |
Joined on Jan 2010
@ Sydney
|
#23
|
I'm guessing MapsPlugin is a XPCOM library. Where on the file system would this be located and would it be compiled or interpreted. I have found several warnings in the index.html file for functions like pause, resume etc. within GuidanceMockup which may be implemented in the library above. It would also appear that the Guidance instance is called by several dispatch functions. pauseNavigation() for example calls this._guidance.pause().
I imagine if there is a call to this library somewhere to display the directions at a given time on route, an extra function could be added to the dispatcher, using some sound library, to play standard Ovi voice files.
![]() |
2010-12-22
, 13:26
|
|
Posts: 968 |
Thanked: 663 times |
Joined on Jun 2010
@ Australia (Melbourne/vic) / Lebanon (Zgharta/north)
|
#24
|
The Following User Says Thank You to elie-7 For This Useful Post: | ||
![]() |
2010-12-22
, 13:36
|
|
Posts: 311 |
Thanked: 376 times |
Joined on Nov 2010
@ Hungary
|
#25
|
![]() |
2010-12-22
, 14:07
|
|
Posts: 968 |
Thanked: 663 times |
Joined on Jun 2010
@ Australia (Melbourne/vic) / Lebanon (Zgharta/north)
|
#26
|
So... if the whole OVI maps stuff is JavaScript can you add a function to import POIs from Symbian edition's XML?
![]() |
2010-12-22
, 19:21
|
Posts: 1,203 |
Thanked: 3,027 times |
Joined on Dec 2010
|
#27
|
var GuidanceModel=new Class({Name:"GuidanceModel",Implements:[EventSource,Destroyable], _currentRoute:null, _MANEUVER_ICONS:null, _guidance:null, initialize:function(aPluginControl,aRoutingModel,aPositionModel,aMapModel) { var modelInstance=nokia.maps.pfw.PlayerManager.getModelInstance(aPluginControl,this.className); if(modelInstance) { return modelInstance } else { nokia.maps.pfw.PlayerManager.addModelInstance(aPluginControl,this.className,this) } this._pluginControl=aPluginControl; try { this._guidance=this._pluginControl.getGuidance() } catch(ex) { this._guidance=null } if(!this._guidance) { this._guidance=new GuidanceMockup() } this._guidance.setOnGuidanceDone(bind(this,this._onGuidanceDone)); this._routeModel=aRoutingModel; this._mapModel=aMapModel; this._positionModel=aPositionModel }
pauseNavigation:function(aPause) { if(aPause===true||aPause===undefined) { this._guidance.pause() } else { this._guidance.resume() } }
![]() |
2010-12-23
, 09:32
|
|
Posts: 397 |
Thanked: 802 times |
Joined on Jan 2010
@ Sydney
|
#28
|
this.guidance = new nokia.maps.pfw.GuidanceModel(this._pluginControl, this.routing, this.position, this.map);
var GuidanceModel = new Class({ Name: "GuidanceModel", Implements: [EventSource, Destroyable], _currentRoute: null, _MANEUVER_ICONS: null, _guidance: null, initialize: function (aPluginControl, aRoutingModel, aPositionModel, aMapModel) { var modelInstance = nokia.maps.pfw.PlayerManager.getModelInstance(aPluginControl, this.className); if (modelInstance) { return modelInstance } else { nokia.maps.pfw.PlayerManager.addModelInstance(aPluginControl, this.className, this) } this._pluginControl = aPluginControl; try { this._guidance = this._pluginControl.getGuidance(); } catch (ex) { this._guidance = null } if (!this._guidance) { this._guidance = new GuidanceMockup(); } this._guidance.setOnGuidanceDone(bind(this, this._onGuidanceDone)); this._routeModel = aRoutingModel; this._mapModel = aMapModel; this._positionModel = aPositionModel; }, isGuidanceSupported: function () { return this._guidance !== null && this._guidance !== undefined && this._guidance.className !== "GuidanceMockup" }, etc etc
this._pluginControl = this._page.getChildAt("plugin"); . . . this.guidance = new nokia.maps.pfw.GuidanceModel(this._pluginControl, this.routing, this.position, this.map);
<body> <textarea cols="95" rows="5" id="recmsg"></textarea> </body>
<script type="text/javascript" id="javascriptApplication">
try {
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
var cPLX = Components.classes["@nokia.com/MapsPlugin"].getService(Components.interfaces.IPlugin);
} catch (e) {
var cPLX = null;
}
[B]//here here
function writemessage(e){
var txt = e;
var tbox = document.getElementById('recmsg');
if (tbox)
{
tbox.value = tbox.value + "\n" + txt;
tbox.scrollTop = tbox.scrollHeight - tbox.clientHeight;
};
}[/B]
![]() |
2010-12-23
, 13:30
|
|
Posts: 397 |
Thanked: 802 times |
Joined on Jan 2010
@ Sydney
|
#29
|
So... if the whole OVI maps stuff is JavaScript can you add a function to import POIs from Symbian edition's XML?
![]() |
2010-12-23
, 13:52
|
|
Posts: 102 |
Thanked: 153 times |
Joined on Feb 2010
|
#30
|
The Following User Says Thank You to direx For This Useful Post: | ||
I imagine if there is a call to this library somewhere to display the directions at a given time on route, an extra function could be added to the dispatcher, using some sound library, to play standard Ovi voice files.