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.

Archived Talk:Optimize HERE Map Type Selector for Asha 305, Asha 306 and Asha 311

From Wiki
Jump to: navigation, search

Hamishwillee - This is not the recommended implementation

Hi r60600

As I understand it the problem faced is that "The Type selector control from the Nokia Map API for Web is designed for a wider screen than a typical web widget". The problem version of the API you're talking about is an old version, and your solution is to replace it with another out-of-date old version of the api which appears a bit better.

That doesn't make sense to me. In general we'd recommend that anyone who wants to use maps on a Java ME device use the "Maps API for Java", rather than trying to get the web API work through the browser - for a start, as far as I know you'd get offline maps, and a framework designed to work on the device.

Please look closely at the English - I don't understand the first sentences.



hamishwillee 07:47, 30 July 2012 (EEST)

Hamishwillee - Suggestions for improvement

Suggestion from our technical expert is that the following applies to an implmentation that is "optimised for touch":

  1. Unwrapped Texts do not display well on a small screen
  2. If you resize the screen then the USER has to scroll too much. = Poor UI
  3. Much better to use icons – touchable and meaningful
  4. Do not keep them displayed over the MapCanvas when not required. Screen is too small.

Suggestion is that you use icons instead like the Java Me IconCommandBar - so you could rewrite this example:

  1. Write a custom MapCompoment extending the TypeSelector component. (This has been done with the Tabbed InfoBubble)
  2. When the MapComponent is attached to map, do some JavaScript magic to retrieve the DOM element holding the texts “Street Map”, “Satellite” etc.
  3. Replace these texts with pictures which are touchable icons.
There is then no need resize the screen, and the Web App is properly touchable.

hamishwillee 06:39, 2 August 2012 (EEST)

This page was last modified on 24 April 2013, at 04:37.
22 page views in the last 30 days.