AnsweredAssumed Answered

FeatureService with different spatialreference

Question asked by ramisobhighali on Jun 15, 2016
Latest reply on Jun 15, 2016 by ramisobhighali

Hello,

In AppStudio, desktop edition, Is it possible to add FeatureService with a spatial reference different from the basemap's ? If yes, how can I do that ?

 

I tried the below QML but the featureservice doesn't show !

 

Map {

        id: mainMap

        anchors.fill: parent

        extent: envelopeInitalExtent

        wrapAroundEnabled: true

        rotationByPinchingEnabled: true

        magnifierOnPressAndHoldEnabled: false

        mapPanningByMagnifierEnabled: true

        zoomByPinchingEnabled: true

 

        //INITIAL EXTENT

        Envelope {

            id: envelopeInitalExtent

            xMax: -13630134.691272736

            yMax: 4554320.7069897875

            xMin: -13647294.804122735

            yMin: 4535211.44991852

            spatialReference: mainMap.spatialReference

        }

 

 

        //BASEMAP

        ArcGISTiledMapServiceLayer {

            url: appWindow.info.propertyValue("basemapServiceUrl", "http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer")

        }

 

 

        //CREATE A FEATURE SERVICE TABLE FROM A FEATURE SERVICE

        GeodatabaseFeatureServiceTable {

            id: featureServiceTable

            url: "MY_FS_URL"

            spatialReference: mainMap.spatialReference

        }

 

        FeatureLayer {

            id: featureLayer

            featureTable: featureServiceTable

        }      

    }

 

Thanks.

Outcomes