Select to view content in your preferred language

Loading Local Mapservice

521
2
02-17-2011 06:57 PM
HolmSeifert
Emerging Contributor
Hi,
i have a question concerning loading localhost services in flex builder.
Should be a simple task.
Simple put a resource, a map resource, into the operational layer.
SO here is the part for the operational layer:

  <operationallayers>
            <layer label="Boundaries and Places" type="tiled" visible="false"
                   url="http://server.arcgisonline.com/ArcGIS/rest/services/Reference/World_Boundaries_and_Places_Alternate/..."/>
            <layer label="Fires" type="feature" visible="false" alpha="1"
                   info="widgets/InfoTemplates/SimpleInfoWinWidget.swf"
                   infoconfig="widgets/InfoTemplates/IWT_Fires.xml"
                   url="http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Fire/Sheep/FeatureServer/0"/>
  <layer label="Test" type="feature" visible="false" alpha="1"
                   url="http://sv-03/arcgis/services/ServerBasic02/MapServer/0"/>


Its going about the last 2 codes. The running machine is called sv-03, but i changed it to localhost.
So the application starts but then running endless. Do i have to change the ccordinate system?

i have tried it also in the flex api as simple code. The same thing.

Thanks
Holm
Tags (2)
0 Kudos
2 Replies
RobertScheitlin__GISP
MVP Emeritus
Holm,

If you examine the 2 esri urls above yours you will notice that thiers has "rest" in the url as fles uses the rest service endpoint and not the soap.

http://sv-03/arcgis/rest/services/ServerBasic02/MapServer/0
0 Kudos
HolmSeifert
Emerging Contributor
Hallo Robert,
thanks a lot.
Now it functions. But what i am interested is the projection. The server projected on the fly, because i have another coordinate system as the maps provided by esri. Ok now.

Thanks a lot.

I have also seen your example.
It´s every time i´m learning a new language. The easiest things i overlook. 🙂

Holm
0 Kudos