Learn what Felgo offers to help your business succeed. Start your free evaluation today! Felgo for Your Business

Forums

OverviewFelgo 3 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.

Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded