Select to view content in your preferred language

Thematic Query Widget - Adjusting length of widget

1629
9
01-04-2012 04:30 AM
JustinGleeson
Deactivated User
Hi,

I'm using the Thematic Query Widget from the samples as a means of allowing users to display specific thematic maps. The default version available in the samples works fine but it only displays 4 selections in the window as currently designed (see ThematicWidgetSamples.jpg).

Is there a way of adjusting the widget so it would be greater in length and allow an initial display of 10 selections? (see ThematicWidgetSamples1.jpg). If anyone has an adjusted sample that would suit this it would be great.

many thanks

Justin
0 Kudos
9 Replies
RobertScheitlin__GISP
MVP Emeritus
Justin,

   You can set the height and width of any widget by specifying them in the main config.xml:

<widget label="Louisville Police (QueryWidget)" width="300" height="600"
            icon="assets/images/i_policestation.png"
            config="widgets/Query/QueryWidget_Louisville_PoliceStations.xml"
            url="widgets/Query/QueryWidget.swf"/>
0 Kudos
by Anonymous User
Not applicable
Original User: JustinGleeson1

Hi Robert,

That has worked well, thank you.

I have another issue to do with the Thematic Widget, you may have some suggestions.

I have a series of maps relating to different house price themes - Sales, Rental and Yield. All of the maps associated with the different themes are stored under 3 separate Thematic Widgets.

This works well when displaying the maps for Rents (see image 1). The user will be able to select the type of map they are interested in etc. The problem arises when the user selects the Yields widget at the top. This displayes over the Rents maps and both are then 'live' at the same time (see image 2).

Is there a way of adjusting the code within the Thematic Widget so that it only displays one at a time - when one is selected all other thematic widgets are then closed?

thanks

Justin
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Justin,

   That would only be possible by editing the code for the viewer do you have Flash Builder and the Flex Viewer source code?
0 Kudos
by Anonymous User
Not applicable
Original User: JustinGleeson1

Justin,

   That would only be possible by editing the code for the viewer do you have Flash Builder and the Flex Viewer source code?


Hi Robert,

I'm sorry but I don't have Flash Builder. I'm using the Thematic Query Widget.swf and 3 individual thematic query widget.xml for my themes. ThematicQueryWidgetDaftSales.xml example attached

The widgets are called in the main config file:
<widget label="Average Sales Asking Prices" width="300" height="380"
                preload="open"
                left="95" top="50"
                icon="DAFT_WidgetsPopupsETC/Images/HouseImage_Sales.png"
                config="DAFT_WidgetsPopupsETC/ThematicQueryWidgetDaftSales.xml"
                url="DAFT_WidgetsPopupsETC/ThematicQueryWidget.swf"/>
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Justin,

   As I mentioned it is not going to be possible for you then. It would require custom code in the WidgetManager of the viewer or the HeaderControllerWidget. You will have to settle for educating your users on the need to close one before opening another (maybe put that in the splash page).
0 Kudos
by Anonymous User
Not applicable
Original User: JustinGleeson1

Justin,

   As I mentioned it is not going to be possible for you then. It would require custom code in the WidgetManager of the viewer or the HeaderControllerWidget. You will have to settle for educating your users on the need to close one before opening another (maybe put that in the splash page).


Robert,

thanks for your help - I'll look into how I can go about adjusting the code in the WidgetManager

cheers

Justin
0 Kudos
by Anonymous User
Not applicable
Original User: mehrshadx

I realize this is an old thread, but is there a way to remove "Click on the map to see details" or edit it? I would be grateful if anyone may have a solution.

Thanks
Mehrshad
Census Bureau, DC
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Mehrshad,

   That is a lbele in the Widgets source code. You would have to edit the source code to hide or change that.
0 Kudos
by Anonymous User
Not applicable
Original User: mehrshadx

Robert,

As always, thank you for your reply. I'll dig into the source code then. 

Mehrshad
0 Kudos