Results 1 to 3 of 3

Thread: QML Map & Tiles

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    May 2011
    Posts
    81
    Thanks
    6
    Thanked 5 Times in 4 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11

    Question QML Map & Tiles

    Can't find anything that explains how to do this...

    But, I have an OSM QML map that works well. I want to add a tile overlay that is weather radar from a 3rd party. What is the best way to do that?

    Right now, I am declaring a MapItemGroup of MapQuickItems, each one having an Image component that points to the correct tile on the external server. This works, but seems to be a cumbersome way to go about it.

    Any thoughts or examples?

  2. #2
    Join Date
    May 2011
    Posts
    81
    Thanks
    6
    Thanked 5 Times in 4 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11

    Default Re: QML Map & Tiles

    Wow... 2300+ views and no one has any suggestions?

  3. #3
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,236
    Thanks
    303
    Thanked 864 Times in 851 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: QML Map & Tiles

    Maybe because none of those 2300+ viewers has any idea what you are trying to accomplish given your one line description, and probably no one has done anything like this. I certainly haven't.

    But it sounds like your solution is too tightly coupled. In generic terms, you want to overlay a tile containing an image on a map. The source of the image shouldn't matter, only that the tile should update when a new image is set on it. So I would suggest finding a way to decouple getting image data from the server from displaying that image in a tile - maybe a class that knows the association between a tile and the image source, and another class that monitors the source for updates, creates a new image, and loads it onto the tile.
    <=== The Great Pumpkin says ===>
    Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.

Similar Threads

  1. Best way to draw tiles to QGL from the memory
    By leonardo2204 in forum Qt Programming
    Replies: 2
    Last Post: 14th March 2012, 18:02

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.