Quantcast
Channel: Forums - ArcGIS Viewer for Flex
Viewing all articles
Browse latest Browse all 2097

Change Spatial Reference in ArcGIS Viewer

$
0
0
Hi,

I am trying to change the spatial reference of my basemap in ArcGIS viewer for Flex.
I have made my streets and imagery basemaps dynamic in the config file:

Code:

<map attributionvisible="true" esrilogovisible="true" openhandcursorvisible="false" scalebarvisible="true" scalebar="default" zoomslidervisible="false" wraparound180="true" addarcgisbasemaps="false" initialextent="108 -45 155 -10" fullextent="-20000000 -20000000 20000000 20000000" wkid="4283" top="40" portalurl="https://www.arcgis.com">
        <basemaps>
            <layer type="dynamic" label="Imagery" icon="assets/images/basemap_imagery.jpg" imageformat="png8" url="http://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer" visible="true"/>
            <layer type="dynamic" label="Streets" icon="assets/images/basemap_streets.jpg" imageformat="png8" url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer" visible="false"/>
        </basemaps>
    </map>

And you can see I set my wkid="4283"

However when I open my ArcGIS Viewer and go to preview, it loads my imagery basemaps but it is still in SpatialReference = 102100. I know this because I have altered my coordinate widget to display the spatial reference wkid alongside the coordinates.

I dont understand why, this works fine in my Flex API in flashbuilder, but when it comes to the viewer maybe I am missing something I have to alter in the Basemaps & Operational Layers, I was thinking config would do everything for me.

Can anyone offer me some help?

Viewing all articles
Browse latest Browse all 2097

Trending Articles