Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. QML Map and MapObjects
QtWS25 Last Chance

QML Map and MapObjects

Scheduled Pinned Locked Moved QML and Qt Quick
2 Posts 2 Posters 2.9k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Jano
    wrote on last edited by
    #1

    Hi,

    I'm using Qt mobility.location 1.1 plugin.

    Let me explain my scenario:

    My mobile application show Map and current location. POIs are retreived from one service API through network request. So i created one model and each POI contains latitude and longitude ( and some other informations that are not needed on Map view.).

    I want to dynamically load/show all those POIS in my Map view ( pois have differend icons. ) I also want to take action when user clicks on one POI on the map. Zoom and moving is also enabled on map view.

    NOTE: Model of POIS is not created for Map view but for listview, but there are all data that are needed for show POIs on the map.

    What i tried:

    1. Tried to dynamically load MapObjects (MapImage) to te map ( Qt.createQmlObject ). But issue is that image ( icon ) is not shown if i set external source ( http://www.test.com/myimage.png ). It works only if i set image from Resources and i don't know how to make them clickable aswell?

    2. I also tried to paint QML Elements (Rectangles, Image,) just on the map view, but this require some calculating so that all pois are correctly shown when moving/zooming/rotating etc.. I just wan't to avoid this.

    3. Should i create LandMarkModel just to show MapObjects?

    Many thanks for any suggestions,examples.. any kind of help.

    Regards,
    Jano

    1 Reply Last reply
    0
    • C Offline
      C Offline
      conny
      wrote on last edited by
      #2

      Just for future references, I think the solution is posted here:
      http://developer.qt.nokia.com/forums/viewthread/4818/

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved