Здравствуйте, помогите пожалуйста решить проблему.
Создаю приложение на Flex с функцией всплывающих окон. Для этого использую файлы PopUP. Но при запуске приложения и нажатии на объекты никакого окна не всплывает. Что я делаю не так? Подскажите пожалуйста!
Мой файл PopUp_houses.xml выглядит так:
<?xml version="1.0" ?>
<configuration>
<title>{NAME}</title>
<fields>
<field name="NAME"/> <!-- Used in title, do not repeat in content -->
<field name="TYPE" alias="Тип" visible="true"/>
<field name="NAME" alias="Текст" visible="true"/>
<field name="Адрес" alias="Адрес" visible="true"/>
</fields>
</configuration>
Файл config.xml выглядит так:
<?xml version="1.0" ?>
<configuration>
<title>ArcGIS Viewer for Flex</title>
<subtitle>a configurable web mapping application</subtitle>
<logo>assets/images/logo.png</logo>
<style>
<colors>0xFFFFFF,0x333333,0x101010,0x000000,0xFFD700</colors>
<alpha>0.8</alpha>
</style>
<!-- replace the following url with your own geometryservice -->
<geometryservice url="
http://tasks.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer" />
<!-- UI elements -->
<widget left="10" top="50" config="widgets/Navigation/NavigationWidget.xml" url="widgets/Navigation/NavigationWidget.swf"/>
<widget right="-2" bottom="-2" config="widgets/OverviewMap/OverviewMapWidget.xml" url="widgets/OverviewMap/OverviewMapWidget.swf"/>
<widget right="20" top="55" config="widgets/MapSwitcher/MapSwitcherWidget.xml" url="widgets/MapSwitcher/MapSwitcherWidget.swf"/>
<widget left="0" top="0" config="widgets/HeaderController/HeaderControllerWidget.xml" url="widgets/HeaderController/HeaderControllerWidget.swf"/>
<map wraparound180="true" initialextent="-3595100 1802500 -3503400 1831200" fullextent="-20000000 -20000000 20000000 20000000" top="40">
<!--<basemaps>
<layer label="Streets" type="tiled" visible="true"
url="
http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"/>
<layer label="Aerial" type="tiled" visible="false"
url="
http://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer"/>
<layer label="Topo" type="tiled" visible="false"
url="
http://server.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer"/>
</basemaps> -->
<operationallayers>
<layer label="Тестовое приложение" type="dynamic" visible="true"
url="http://blackshine:8399/arcgis/rest/services/test5/MapServer">
<sublayer id="3" popupconfig="popups/PopUp_houses.xml"/>
</layer>
</operationallayers>
</map>
<!-- widgets organized into widget containers that manage close/open etc -->
<!-- supported layout property options: horizontal(default)|float|vertical|fix-->
<widgetcontainer layout="float">
<widget label="Draw and Measure" left="60" top="400"
icon="assets/images/i_draw2.png"
config="widgets/Draw/DrawWidget.xml"
url="widgets/Draw/DrawWidget.swf"/>
<widget label="Print" left="390" top="400"
icon="assets/images/i_print.png"
config="widgets/Print/PrintWidget.xml"
url="widgets/Print/PrintWidget.swf"/>
<!--
<widget label="My first widget"
icon="assets/images/i_widget.png"
config="widgets/Samples/HelloWorld/HelloWorldWidget.xml"
url="widgets/Samples/HelloWorld/HelloWorldWidget.swf"/>
-->
</widgetcontainer>
</configuration>