Forums

OverviewFelgo 2 Support (Qt 5) › Map error on 'supportedMapTypes'

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #23272

    jrrobles79

    If I try to change my map type, my app crashes,

     

    
            Map{
                id:map
                anchors.fill: parent
                plugin: mapPlugin
                center: QtPositioning.coordinate(39.296458, -76.626366) // Oslo  39.296458, -76.626366
                zoomLevel: 14
                supportedMapTypes: MapType.GrayStreetMap
    
    
                MapQuickItem {
                    id: marker
                    anchorPoint.x: pin.width
                    anchorPoint.y: pin.height
                    coordinate: QtPositioning.coordinate(39.296458, -76.626366)
    
                    /*Image {
                        id: name
                        source: "../../assets/images/ios_icons/lampPin.imageset/lampPin.png"
                    }*/
    
                    sourceItem: Image {
                        id: pin
                        source: "../../assets/images/ios_icons/lampPin.imageset/lampPin.png"
                    }
                }
    
            }

     

    #23340

    Alex
    Felgo Team

    Hi,

    you probably want to use the activeMapType property to assign the active type. The supportedMapTypes property holds a list of supported types and is readonly.

    Best,
    Alex

    #23350

    jrrobles79

    Yes thank you Alex!, I have already check that, was my mistake I read the wrong property, still doesn’t work, but I think thats because I need more configuration on the map plugin

Viewing 3 posts - 1 through 3 (of 3 total)

RSS feed for this thread

You must be logged in to reply to this topic.

Voted #1 for:

  • Easiest to learn
  • Most time saving
  • Best support

Develop Cross-Platform Apps and Games 50% Faster!

  • Voted the best supported, most time-saving and easiest to learn cross-platform development tool
  • Based on the Qt framework, with native performance and appearance on all platforms including iOS and Android
  • Offers a variety of plugins to monetize, analyze and engage users
FREE!
create apps
create games
cross platform
native performance
3rd party services
game network
multiplayer
level editor
easiest to learn
biggest time saving
best support