|
POST
|
No problem, Since you said you are using Bing as main map, then you will have the Bing logo on there so probably not an issue. Not sure if you are allowed to have Bing displayed without the logo, even if only in overview. I don't use Bing, so haven't looked into the agreement, but you might want to make sure your usage doesn't violate it. Suspect if your only basemap options are Bing, it wouldn't be a problem. R_
... View more
12-14-2012
07:34 PM
|
0
|
0
|
1395
|
|
POST
|
Very bottom of the eMapSwitcherWidget.mxml: <s:HSlider id="fader" left="10" right="10" mouseFocusEnabled="false"
minimum="1" maximum="{basemapList.length}" bottom="5"
snapInterval="0.01" liveDragging="true" enabled="true"
showDataTip="false" value="2" change="faderFade(event)"
skinClass="widgets.eMapSwitcher.BasemapFaderSkin"/> will make the slider start out on the second basemap. R_
... View more
12-13-2012
04:46 PM
|
0
|
0
|
1322
|
|
POST
|
Well, if you have the source code, it looks fairly simple: In my overviewMapWidget.xml I have the following: <?xml version="1.0"?>
<configuration>
<!-- possible values for initialstate: open or closed (default) -->
<initialstate>open</initialstate>
<!-- by default it will use the same basemap as current main map,
you can hardcode as below if you wish -->
<bing key="your_key_here"/>
<layer label="Bing" type="bing" visible="true" style="road" culture="en-US" url="[email protected]"/>
</configuration> basically assinging a nonexistet (dummy) url to the bing layer tag and providing my Bing key. (url can be any non-null) This will then test for if (url) as true and send it to this part of the OverviewMapComponent.mxml (otherwise, it goes straight to loading from Basemaps): if (url)
{
useBaseMapLayer = false;
type = configXML.layer.@type;
useProxy = configXML.layer.@useproxy[0] && configXML.layer.@useproxy == "true";
switch (type.toLowerCase())
{
case "tiled":
{
var tiledlayer:ArcGISTiledMapServiceLayer = new ArcGISTiledMapServiceLayer(url);
tiledlayer.alpha = alpha;
if (proxyUrl && useProxy)
{
tiledLayer.proxyURL = proxyUrl;
}
overviewMap.addLayer(tiledlayer);
break;
}
case "dynamic":
{
var dynlayer:ArcGISDynamicMapServiceLayer = new ArcGISDynamicMapServiceLayer(url);
dynlayer.alpha = alpha;
if (proxyUrl && useProxy)
{
dynlayer.proxyURL = proxyUrl;
}
overviewMap.addLayer(dynlayer);
break;
}
case "bing":
{
var veTiledLayer:VETiledLayer = new VETiledLayer();
veTiledLayer.alpha = alpha;
veTiledLayer.id = label;
veTiledLayer.visible = visible;
veTiledLayer.key = configXML.bing.@key;
veTiledLayer.mapStyle = configXML.layer.@style;
if (style)
{
veTiledLayer.mapStyle = style;
}
if (culture)
{
veTiledLayer.culture = culture;
}
overviewMap.addLayer(veTiledLayer);
break;
}
}
}
else
The red text is the code I added (copied from several lines below in the same file) and modified the .key to get it from the config. Also modified it to get style, otherwise, you ONLY get streets. This way, it lets you pick "road", "aerial", or "aerialWithLabels". This is working for me, I have the Bing streets layer in my overview map (nothing else), and it zooms/pans as expected regardless of what basemaps I have visible in the main viewer. R_
... View more
12-13-2012
04:16 PM
|
0
|
0
|
1395
|
|
POST
|
It appears as if the OverviewMapComponent.mxml tests for presence of url, if so, it loads the hardcoded service. If not, it loads basemaps. So, since Bing is built in and you don't supply a url, it doesn't appear as if you can hardcode it to utlize Bing maps unless you can come up with the url to the service or re-write the source so that it doesn't exclude it. R_
... View more
12-13-2012
03:05 PM
|
0
|
0
|
1395
|
|
POST
|
The overview map is going to use layers you have loaded in the main config. See this post: http://forums.arcgis.com/threads/30788-Static-Overview-Map?p=105461#post105461 to see how to "pick" what service(s) show in the overview map to make it "static". This post is for the 2.4 version, but I incorporated these changes into 3.0 and is working fine (though I haven't tested Bing maps to make sure it works with them). Hope this helps, R_
... View more
12-13-2012
03:00 PM
|
0
|
0
|
1395
|
|
POST
|
No, I don't know. As far as the compress being faster, one would have to test that. I did find that several of the arcpy tools run a lot faster though. In particular, if I used the gp version it would take 10-15 minutes to compact my FGDB depending on network traffic. using the arcpy version, it would compact it in 10-15 seconds depending on network traffic. Hope you figure it out, R_
... View more
12-13-2012
02:54 PM
|
0
|
0
|
3615
|
|
POST
|
Well, this was pretty confusing, but turns out in the end, it's pretty simple. All I did was make the following changes to the WidgetTemplateSkin.mxml. <s:Group id="headerToolGroup"
height="30"
right="70" top="0"
alpha.closed="0"
includeInLayout.minimized="false"
visible.minimized="false"
visible.open="true">
<s:layout>
<s:HorizontalLayout paddingLeft="10"/>
</s:layout>
</s:Group>
<s:Group id="minclose"
height="30"
right="3" top="0"
includeInLayout.minimized="true"
visible.closed="false"
visible.minimized="true">
<s:layout>
<s:HorizontalLayout gap="2"
paddingLeft="2"
verticalAlign="middle"/>
</s:layout>
<mx:Image id="minimizeButton"
and it works. R_
... View more
12-13-2012
02:46 PM
|
0
|
0
|
683
|
|
POST
|
Robert, Thank you again, for available to reply. I got the below Python code. But It has this error message when executing "Error 000837: The workspace is not the correct workspace type. Failed to execute<Compress>". The SDE connection file is from the folder that ArcCatalog uses to connect. See attached screen copy of connection in arcCatalog. I am stuck here 😞 try: # Compress the database print "Begining Compress..." + "\n" gp.toolbox = "management" # For this script to work it will need the full path to the .sde connection file. gp.compress(" C:\Documents and Settings\Administrator\Application Data\ESRI\Desktop10.1\ArcCatalog\Connection to chester_sqlexpress.sde") print gp.GetMessages() + "\n" output.write(gp.GetMessages()+ "\n") Without being able to dive in and test, I believe at least one of the issues is here. I think that should be something like "Database Connections\\Connection to chester_sqlexpress" . I often start a model in ArcMap and add the compress tool, then browse to the dataset, export to python script and that will give you the proper synatax for the path. Just a thought, not sure if it helps, R_ Also, not sure about compress, but arcpy.Compact_management runs orders of magnitude faster than the gp.Compact_management. Might get better perfomance if you convert it all to arcpy.
... View more
12-13-2012
01:08 PM
|
0
|
0
|
3615
|
|
POST
|
Ok, since there are no <medias> tags in the query widget config, is this really what you are asking as you provided a link to the popupconfig info. If you are actually using the queryWidget, look here: http://resources.arcgis.com/en/help/flex-viewer/concepts/index.html#/Query_widget_tags/01m30000000t000000/ R_
... View more
12-13-2012
12:15 PM
|
0
|
0
|
1400
|
|
POST
|
Thanks again for pointing me in the right direction. I will see what I can figure out. R_
... View more
12-13-2012
07:58 AM
|
0
|
0
|
683
|
|
POST
|
Anyone know how to keep the close button (black X) on a widget when minimized? I would like to be able to close the widget from the minimized state. Currently, one has to full size it, then can be closed. Any idea? Thanks, R_
... View more
12-12-2012
04:30 PM
|
0
|
3
|
1009
|
|
POST
|
Do you have this above your <fields> tag? <linkfield>URL</linkfield> It appears as if that is what they did on the queryWidget traffic cameras example. Doesn't display the photo in the datagrid, but it does in the popup when hover/click on the result. R_
... View more
12-12-2012
02:56 PM
|
0
|
0
|
1400
|
|
POST
|
Have you looked at the eSearchWidget url query option? http://www.arcgis.com/home/item.html?id=5d4995ccdb99429185dfd8d8fb2a513e click the open button to view the example site. will automatically come up with a feature search as defined in the xml and the url. R_
... View more
12-12-2012
02:47 PM
|
0
|
0
|
402
|
|
POST
|
Robert has explained that to me earlier in this thread. Go to post 474 and read from there, should give you the info you need to get going. http://forums.arcgis.com/threads/18453-Table-of-Contents-Legend-Widget-for-FlexViewer-2.x?p=224265&viewfull=1#post224265 R_ And yes, it does support hyperlinks in the description fields. PS, the "layer" description is set in the layer properties in ArcMap when making the service. The service definition is set using server manager (at least that is the only place I have found to do it). Also, keep in mind that if you re-publish a service, even with the same name, the "service definition" will be overwritten/cleared (also clears cache settings)(have not found a way around this yet).
... View more
12-12-2012
06:20 AM
|
0
|
0
|
2800
|
|
POST
|
I just keep a separate Word document with the: 1 - change/modification name/info 2 - the code change what/where 3 - the link to the post where I gleaned the info. I come back to this file again and again as I often want to do the same (or similar) mods to other FlexViewer apps. R_ Of course, this is mainly to preserve the customizations that I have made. If no customizations, I just do as Robert suggested above.
... View more
12-11-2012
10:25 AM
|
0
|
0
|
563
|
| 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 |
yesterday
|