Hi, i've got a couple of questions.
1.
For an app need to modify the data in the interface once a new view is loaded. Among others, I want to create a new interface for selecting map type among others. So when the new view is loaded, I want to add an 'active' class to the loaded map interface select element. Is there a callback function for a loaded page?
2.
Added points of interests take a lot of time to process when compared to shapes. When adding +- 300 shapes, the time it takes to process that (locking map interaction while doing so), is around 5-30 ms. When adding +- 300 shapes and 600 pois, the process time is around 1200-6000 ms.
I've tried using the (expirimental) pois property and the createPoi function, both seemed to perform just about the same. Is there a way to speed up this process?
3.
The documentation on the switchTo function names a viewParams array. Where can I read the contents of this array?
edit: Seems to be nokia.mh5.app.controller.current.page.model.data . Not immediately accessible through the build callback though.
On a more general note, the mh5 framework seems to be really specialized for just the mapping application. This makes the creation of more generic apps a bit difficult. For example, info bubble's provide the functionality to only have the lines specified. Poi's are quite interactive out of the box while you have to build that functionality for shapes. Still loving working with the mh5 framework, but sometimes I feel like I have to find workarounds to have the functionality I need.
Also, it would be fun to have a gallery or something of apps people have already made with this framework. I'm curious as to how other people are using this.
As always,
Thanks in advance!
Addition:
I need data from a clicked image. Neither the 'this' object nor the event data gives me the data-... parameters in a way that is cross browser compatible.
Edit: Nvm the addition, found a workaround :P

Reply With Quote

