Select to view content in your preferred language

activate graphical search by point after loaded SearchWidget

1157
9
06-12-2014 02:01 AM
NatashaManzuiga
Regular Contributor
Hi, how can activate the Graphical Search by point after I load the SearchWidget?
Thanks,

Naty
Tags (2)
0 Kudos
9 Replies
NatashaManzuiga
Regular Contributor
I just added the function after basewidget_widgetConfigLoaded:
setMapAction("mappoint", "Draw Point", drawSymbol, searchDrawEnd,null,false);

In this function the last parameters means that I set the ShowDrawTips to false..
I want to change the default tooltip that say Click to Add a point...How can I do?
Naty
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Naty,

   The viewer team has not given us tht ability yet. But I have made the enhancement request to 3.7 already.
0 Kudos
NatashaManzuiga
Regular Contributor
Naty,

   The viewer team has not given us tht ability yet. But I have made the enhancement request to 3.7 already.


Thanks Robert, I used that workaroud and it's ok for me!! 🙂
Robert, what is the right way to customize the InfoWindow of the SearchWidget.mxml?
Thanks,

Naty
0 Kudos
NatashaManzuiga
Regular Contributor
Thanks Robert, I used that workaroud and it's ok for me!! 🙂
Robert, what is the right way to customize the InfoWindow of the SearchWidget.mxml?
Thanks,

Naty


I added the file PopUpRendererSkin.mxml and I customized my popup 🙂
how can I resize the popup?
Thanks,
Naty
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Naty,

   There are lots of threads/posts about changing the size of the popup. Just adjust the width and or add a height attribute to the SparkSkin.

http://forums.arcgis.com/threads/28487-PopUps
0 Kudos
NatashaManzuiga
Regular Contributor
Naty,

   There are lots of threads/posts about changing the size of the popup. Just adjust the width and or add a height attribute to the SparkSkin.

http://forums.arcgis.com/threads/28487-PopUps



Thanks Roberts, but if I want to make the popup resizable like Widgets?
Naty
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Naty,

   I have not done a lot of testing on this change and I do not intend to spend any time supporting these changes, but here is the code necessary for a resizable popup.
0 Kudos
RhettZufelt
MVP Notable Contributor

Hi Robert,

Nice changes to the skin, really like the option of resizing the infowindow to "fit" the results and is working fine.

However, I have noticed that if you have related records, once you push the "Show Related Records" tab, the resize option no longer works until you reload the flexviewer (even if you Hide Related Records).

I know you do not intent to spend any time supporting these changes, but wondering if you might have an idea as to why this "breaks" it and point me in the right direction?

Thanks again,


R_

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Rhett,

  I would assume that it might have something to do with the showRelatedRecords_changeHandler function in the PopUpRendererSkin.mxml where it does hostComponent.width = hostComponent.width * 2;

0 Kudos