1

I am developing JavaME LWUIT application which needs to display some data on map. And I'd like to use Google Maps for this.
I thought about the requirements to the maps and their user interface. They are listed below:

  • Pannable map. It should be possible to scroll the map using the touch interface or navigation arrow buttions which are displayed on the map.
  • Zoomable map. At the best, there should be appropriate +/- buttons displayed on the map.
  • Search location by address and move to it (menu command).
  • Remember the last visited location.
  • Marker for the current location.
  • Markers with customable icon and text which is displayed when select the marker (click on it or select somehow).

I spent some time searching for appropriate Map Library for JavaME/LWUIT. I expected to find a free library and map service (ha-ha).
See my results below:

  1. MIDMaps library. URL: http://www.jappit.com/blog/midmaps-google-maps-java-me-library/ That library uses the Google Static Map Service. Not bad... but it needs a lot further improvements... I found the follwoing issues with that library:
    • Markers: impossible to customize marker's icon and text. Displaying the marker's text on click/selection is not supported.
    • Map Panning: no UI controls for this (arrow buttons). Doing panning with menu commands is not a user-friendly.
    • Map Zooming: no UI controls for this (+/- buttons). Not so important...
    • License: not permitted to use in a mobile app if not a Google Premier User. Not a problem...
  2. Nokia Maps API for JavaME. URL: http://www.developer.nokia.com/Develop/Maps/Maps_API_for_Java_ME/ Did not try. But looks like that lib fulfills all my requirements. I am not sure about the following things:
    • Quality of the maps.
    • How much does it cost? I mean the cost of using the map service.
  3. Nutiteq lib which uses OpenStreetMap service. URL: http://www.nutiteq.com/map-api Not free the lib, but the map service.
  4. Guidebee Map API. URL: http://www.guidebee.biz/ It's not free.

Now it's a time for me to ask questions. What should I do? Are there any advices?
Maybe I missed some possibilities or lib/services?
Thank you for your help!

Uku Loskit
  • 40,868
  • 9
  • 92
  • 93
Zakhar
  • 2,143
  • 2
  • 15
  • 15

2 Answers2

2

See the Makeover demo in SVN (I updated it to use Google maps instead of Yahoo maps API which was killed off). The GoogleService API should be available in the SVN history it was (deleted because of licensing nonsense) within the IO services directory and it includes local search etc.

Terrence has a a demo that includes allot of interesting features including a browseable map.

You can also look at Waze although I haven't checked it myself, I saw people using open street map and AFAIK there is an open source mapping application based on that (although the license might not be appropriate for you but it might still be useful as a learning aid).

Shai Almog
  • 51,749
  • 5
  • 35
  • 65
  • Thanks Shai! I will check the info you provided and inform you here about the results. – Zakhar Jan 02 '12 at 04:08
  • 1. About Makeover demo... As I understand (correct me, if I am wrong), it doesn't provide the functionality I need, such as pannable and zoomable map (it just disp the image), markers with customizable icon and text which is displayed on click. So, it doesn't help me. – Zakhar Jan 03 '12 at 08:33
  • 2. About Terrence's demo... Nice demo! Especially I liked the markers with funny icons and dialogs which were displayed on click. Also busy loading indicator and my location marker were good. Unfortunately, again the map is not browseable - no panning, no zoom, just disp the map image. – Zakhar Jan 03 '12 at 08:38
  • 3. About Waze... I just looked at it. There is no version for JavaME. – Zakhar Jan 03 '12 at 08:39
  • The makeover demo allows panning/zooming the map. It doesn't include tiling so you can pan the image size only. – Shai Almog Jan 03 '12 at 09:55
1

After some additional investigations I decided to use Nokia Maps. And now I have a working application which displays interactive map with my data markers on it and also my current location.

I chose Nokia Maps API because it provided real dynamic maps (panning, zooming, tiling) and fulfilled all my requirements, except "Remember the last visited location" (can be implemented on my own).

I met the following problems:

Additional info related to the choosing proper map library can be found here Discussion on Nokia Forum

Community
  • 1
  • 1
Zakhar
  • 2,143
  • 2
  • 15
  • 15