|
POST
|
Kenny, saw this post, and have a similar need. Having some issues trying to figure out what all imports are needed for this. Any chance you could point me in the right direction? Thanks, R_
... View more
03-13-2013
04:37 PM
|
0
|
0
|
1128
|
|
POST
|
Thanks Anthony, That was good timing, had not seen that new post yet. This should help get me on the way. R_
... View more
03-13-2013
03:52 PM
|
0
|
0
|
760
|
|
POST
|
Assuming you are using the source code, would be in the locale/en_US folder in FlashBuilder package explorer. R_
... View more
03-13-2013
03:42 PM
|
0
|
0
|
1736
|
|
POST
|
Bump... No ideas? Still no way to define the popup config file for layers added programtically? Maybe and enhancement in 3.2? Still hoping, R_
... View more
03-13-2013
03:34 PM
|
0
|
0
|
760
|
|
POST
|
Here are the available "labels" for the locate widget. Can be found in the VewerStrings.properties file:
########## Locate Widget
locateSubmitLabel=Locate
addressLabel=Address
coordinatesLabel=Coordinates
addressTitle=Enter the address
coordinatesTitle=Enter the coordinates
xLabel=Longitude (X)
yLabel=Latitude (Y)
locationsLabel=Locations found:
bingCulture=en-US
requiredFields=Required fields:
requiredField=Required field:
deleteResultTooltip=Delete result
resultScoreText=Score:
bingResultConfidenceText=Confidence: R_
... View more
03-13-2013
03:30 PM
|
0
|
0
|
1736
|
|
POST
|
Thanks again Robert, bottom of the init function works. However, this.widgetState("closed") gives error of call to undefined method widgetState. Not sure why it doesn't like it so I addressed it this way: //Added Code
var data:Object = {
id: widgetId,
state: "closed"
}
AppEvent.dispatch(AppEvent.WIDGET_CHANGE_STATE, data);
//End Added Code and seems to be working. I can breifly see the swipe widget open and going to the minimized state (tranparent background, but not collapsed yet), then it closes. all layers added with mapservices widget now show up. Put my excludelayers option back in there (saw you changed layArr to layAc) and everything is working as desired. Thanks again for you help on this, R_ BTW, I'm actually using the sample TestOpenClose widget to get my widget ID's. pretty nifty GUI for that.
... View more
03-13-2013
02:38 PM
|
0
|
0
|
1553
|
|
POST
|
Thought about that, but not sure how to keep it from closing itself when I do want to open it. Maybe I could put it in the init function of a widget that loads afterwards? Would I be correct in assuming that the widgetID number reflects the order that they are loaded in the viewer? Guess it gives me a place to start. Thanks, R_
... View more
03-13-2013
02:06 PM
|
0
|
0
|
1553
|
|
POST
|
I think I have the code required to close the widget, just not sure where to put it. Where would one insert code to close widgetID=10 after the map is done loading (for that matter, any time after the widgets have loaded)? Thanks for any pointers, R_
... View more
03-13-2013
01:47 PM
|
0
|
0
|
1790
|
|
POST
|
You say you upgraded, did you happen to name it the same as the 3.0 version? If so, there could be some "old" files in there that conflict. Might try deleting the entire folder from your build path and re-build the project. R_
... View more
03-13-2013
11:19 AM
|
0
|
0
|
775
|
|
POST
|
Thanks Robert, figured it was something like that. I know the preload minimized works, but I really don't want the minimized widget floating on the viewer. Was hoping there was a simple way to automatically close the widget after a preload=open/minimized. I see some examples of how to close a widget from within a widget, but not externally. R_
... View more
03-13-2013
10:54 AM
|
0
|
0
|
1790
|
|
POST
|
That did it. Seems to be working as expected once it has been opened. However, I can add as many layers to the map as I want before I open the SwipeS widget, and they will not show up in the list at all. If I open the SwipeSpotlight widget BEFORE I add any services, then all of them get added to the dropdown. SwipeSpotlight widget doesn't have to remain open, just as long as it has been opened (can be minimized or closed), the layers get added. Not sure if this could easily be fixed or not? If not, is there an easy way to have it open and close the SwipeSpotlight widget automatically on viewer load (I know the preload="open", but what about automatically closing it)? R_
... View more
03-13-2013
10:27 AM
|
0
|
0
|
1790
|
|
POST
|
Robert, I think maybe the zip file didn't get updated? The mxml from my 3.1 and 3.1.1 are identical. R_
... View more
03-13-2013
09:48 AM
|
0
|
0
|
1790
|
|
POST
|
Nicholas, You probably already know, but if you haven't noticed, along with the initial sort defined in the xml, you can also click on the column heading in either data grid and it will sort on that field. Click again, it will sort in opposite order. R_
... View more
03-13-2013
08:01 AM
|
0
|
0
|
1291
|
|
POST
|
After seeing your post, I figure it must be because of my modification. I modified the SwipeSpotlight widget to allow a list of excluded layers, and modified the MapServices widget to have a checkbox for "Load at bottom" so you can choose at load time instead of hardcoded in the config. So, I deleted everything, imported a new fv project, copied the API, etc. added the two widgets, even removed the other widgets. Now I have a OOTB viewer stripped down with these two widgets added. I downloaded the latest versions (deleted the fires service from the MapServices.xml as it hangs the browser) and noticed that you have now included the listners in the swipe widget, so figured I'd be good to go. Same thing, doesn't matter if I set the loadBottom to 0 or 1. It will put them in the "more" tab or TOC (depending on what fv I test it on as I don't have both loaded) at the top or bottom according to the loadBottom tag, but will NOT put it in the SwipeSpotlight widget list unless I remove that layer and add it back in again. However, every layer added after the first one will populate the dropdown whether I removed the first one or not..... Just that the first one won't show up afterwards unless it's removed first. also, here is the code I added to exclude layers in case you wanted it some time (of course, the one I'm testing now is unaltered): // My Add
private var excludeLayers:Array;
private var exclude:Boolean = false;
// End add
private function init():void
{
if (configXML)
{
useBasemaps = configXML.usebasemaps && configXML.usebasemaps == "true";
askAbout = configXML.askaboutturningonlayer && configXML.askaboutturningonlayer == "true";
//My Add
excludeLayers = [];
var elyrList:XMLList = configXML..excludelayer;
for (var el:int = 0; el < elyrList.length(); el++) {
excludeLayers.push(elyrList[el][email protected]());
}
}
//End add
if(useBasemaps){
layArr = [];
for(var i:int=0; i<map.layerIds.length; i++)
{
layArr.push(map.layerIds);
}
activeLayer.dataProvider = layArr;
}else{
layArr = [];
for each (var opsLayer:Object in configData.opLayers){
// My Add
opsLayer.exclude = false;
if (excludeLayers.indexOf(opsLayer.label) != -1){
opsLayer.exclude = true
}else{
opsLayer.exclude = false
}
if (opsLayer.exclude != true){
layArr.push(opsLayer.label);
}
}
//End add Anyway, I'm at a loss, R_
... View more
03-12-2013
05:42 PM
|
0
|
0
|
1790
|
|
POST
|
you could just download the warning.gif to your src/assets/images folder and source it from there. That will tell you (and resolve) if it is a crossdomain issue. R_
... View more
03-12-2013
05:18 PM
|
0
|
0
|
1555
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 05-14-2026 04:00 PM | |
| 1 | 09-14-2022 07:53 AM | |
| 1 | 09-14-2022 08:23 AM | |
| 1 | 05-21-2026 08:53 AM | |
| 1 | 05-14-2026 04:28 PM |
| Online Status |
Online
|
| Date Last Visited |
Monday
|