|
POST
|
Stacey, If your new map service is the same spatial reference as the the other base maps than all you have to do is ensure that your map service with the extra LOD is the first added to the map and its LODS will be used for all other map services that are added to the map. So try adding yours first to the basemaps list in your config.xml
... View more
09-29-2010
08:16 AM
|
0
|
0
|
494
|
|
POST
|
Stuart, I don't know how you only had one text field in 9.3.1 when you used US Streets... Did you customize your locateWidget to fill in those other fields in code?
... View more
09-29-2010
07:48 AM
|
0
|
0
|
2112
|
|
POST
|
Don, I am looking into it. Can you give me a use case or workflow that you are considering this for?
... View more
09-29-2010
07:09 AM
|
0
|
0
|
2604
|
|
POST
|
Jonas, You can not do this just by changing the configuration xml. You would have to modify the SearchWidget mxml code to prevent the infopopup from occurring.
... View more
09-29-2010
06:36 AM
|
0
|
0
|
1003
|
|
POST
|
Bob, You have to know your widgets Id number. The widgets id is not a string it is a sequential number that is assigned when the widget is created in FlexViewer. Here is the code: ViewerContainer.dispatchEvent(new AppEvent(AppEvent.WIDGET_RUN, yourWidgetsID#)); I added a new function to the ViewerContainer.mxml for the purpose of finding a widgets id #
//Add this new variable at the beginning with the other private and public vars
public var _configData:ConfigData;
//Add this new function
public function getWidgetId(widgetLabel:String):Number
{
var id:Number;
for (var i:Number = 0; i < _configData.widgets.length; i++)
{
if (_configData.widgets.label == widgetLabel)
id = _configData.widgets.id;
}
return id;
}
//Add this to the postConfigHandler function
_configData = event.data as ConfigData;
Then you can do something like this ViewerContainer.dispatchEvent(new AppEvent(AppEvent.WIDGET_RUN, ViewerContainer.getWidgetId("Search")));
... View more
09-29-2010
06:31 AM
|
0
|
0
|
2604
|
|
POST
|
Stuart, It is likely that you choose a different type of locator when you made your ArcGIS Server 10 version. There are many types to choose from I would suggest creating a couple of different types and see which one works as you want it to.
... View more
09-29-2010
06:17 AM
|
0
|
0
|
2112
|
|
POST
|
Melissa, I am not sure about the other ways out there but I use ASP.Net Webservice to do that on my site. I can't really talk about the ease of creating this service as I have been a .Net Developer for many years, so it came naturally to me. I do know there are many examples that you can Google of how to create a web service in dot net. My querying of my SQL Server 2005 is very responsive and the data is just returned as XML so Flex has not issue traversing it. You will want to keep your queried data to exactly what you need and try to limit the amount returned. I pass a Parcel ID Number to my web service and that will ensure I only get one record returned.
... View more
09-29-2010
06:09 AM
|
0
|
0
|
2348
|
|
POST
|
Matilda, This is what I got working (mostly)
<!-- saved from url=(0014)about:internet -->
<html lang="en">
<!--
Smart developers always View Source.
This application was built using Adobe Flex, an open source framework
for building rich Internet applications that get delivered via the
Flash Player or to desktops via Adobe AIR.
Learn more about Flex at http://flex.org
// -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- BEGIN Browser History required section -->
<link rel="stylesheet" type="text/css" href="history/history.css" />
<!-- END Browser History required section -->
<title>${title}</title>
<script src="AC_OETags.js" language="javascript"></script>
<script src="http://maps.google.com/maps/api/js?sensor=false" type="text/javascript"></script>
<!-- BEGIN Browser History required section -->
<script src="history/history.js" language="javascript"></script>
<!-- END Browser History required section -->
<style>
body { margin: 0px; overflow:hidden }
</style>
<script language="JavaScript" type="text/javascript">
<!--
// -----------------------------------------------------------------------------
// Globals
// Major version of Flash required
var requiredMajorVersion = ${version_major};
// Minor version of Flash required
var requiredMinorVersion = ${version_minor};
// Minor version of Flash required
var requiredRevision = ${version_revision};
// -----------------------------------------------------------------------------
// -->
</script>
</head>
<body scroll="no" onload="initialize()" onunload="GUnload()">
<div id="pano" style="width: 100%; height: 50%;float:top"></div>
<script language="JavaScript" type="text/javascript">
<!--
// Version check for the Flash Player that has the ability to start Player Product Install (6.0r65)
var hasProductInstall = DetectFlashVer(6, 0, 65);
// Version check based upon the values defined in globals
var hasRequestedVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
var myPano;
var panoClient;
var nextPanoId;
var sv = new google.maps.StreetViewService();
var panorama;
function initialize()
{
panorama = new google.maps.StreetViewPanorama(document.getElementById("pano"));
}
function setPanorama( lat, lng )
{
alert(lat + ", " +lng);
var svlatLng = new google.maps.LatLng(lat,lng);
sv.getPanoramaByLocation(svlatLng, 50, processSVData);
}
function processSVData(data, status) {
if (status == google.maps.StreetViewStatus.OK) {
//alert("Got to StreetViewStatus");
panorama.setPano(data.location.pano);
panorama.setPov({
heading: 270,
pitch: 0,
zoom: 1
});
panorama.setVisible(true);
} else {
alert("Street View data not found for this location.");
}
}
if ( hasProductInstall && !hasRequestedVersion ) {
// DO NOT MODIFY THE FOLLOWING FOUR LINES
// Location visited after installation is complete if installation is required
var MMPlayerType = (isIE == true) ? "ActiveX" : "PlugIn";
var MMredirectURL = window.location;
document.title = document.title.slice(0, 47) + " - Flash Player Installation";
var MMdoctitle = document.title;
AC_FL_RunContent(
"src", "playerProductInstall",
"FlashVars", "MMredirectURL="+MMredirectURL+'&MMplayerType='+MMPlayerType+'&MMdoctitle='+MMdoctitle+"",
"width", "${width}",
"height", "${height}",
"align", "middle",
"id", "${application}",
"quality", "high",
"bgcolor", "${bgcolor}",
"name", "${application}",
"allowScriptAccess","sameDomain",
"type", "application/x-shockwave-flash",
"pluginspage", "http://www.adobe.com/go/getflashplayer"
);
} else if (hasRequestedVersion) {
// if we've detected an acceptable version
// embed the Flash Content SWF when all tests are passed
AC_FL_RunContent(
"src", "${swf}",
"width", "${width}",
"height", "${height}",
"align", "middle",
"id", "${application}",
"quality", "high",
"bgcolor", "${bgcolor}",
"name", "${application}",
"allowScriptAccess","sameDomain",
"type", "application/x-shockwave-flash",
"pluginspage", "http://www.adobe.com/go/getflashplayer"
);
} else { // flash is too old or we can't detect the plugin
var alternateContent = 'Alternate HTML content should be placed here. '
+ 'This content requires the Adobe Flash Player. '
+ '<a href=http://www.adobe.com/go/getflash/>Get Flash</a>';
document.write(alternateContent); // insert non-flash content
}
// -->
</script>
<noscript>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
id="${application}" width="${width}" height="${height}"
codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab">
<param name="movie" value="${swf}.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="${bgcolor}" />
<param name="allowScriptAccess" value="sameDomain" />
<embed src="${swf}.swf" quality="high" bgcolor="${bgcolor}"
width="${width}" height="${height}" name="${application}" align="middle"
play="true"
loop="false"
quality="high"
allowScriptAccess="sameDomain"
type="application/x-shockwave-flash"
pluginspage="http://www.adobe.com/go/getflashplayer">
</embed>
</object>
</noscript>
</body>
</html>
... View more
09-28-2010
11:19 AM
|
0
|
0
|
1798
|
|
POST
|
Koman, You need to exclude those layers that you don't want or set their visibility to false.
... View more
09-28-2010
11:02 AM
|
0
|
0
|
3315
|
|
POST
|
Koman, The only people that are experiencing the issue with doubled results in the identify are people that can not duplicate the same issue using others map services like ESRIs. So you likely have an issue in your map service.
... View more
09-28-2010
09:50 AM
|
0
|
0
|
2535
|
|
POST
|
Daniel, That is not feasible, from what I know of the TOC as it is now.
... View more
09-28-2010
09:47 AM
|
0
|
0
|
848
|
|
POST
|
Matilda, Where is your javascript code for the ExternalInterface.call( "setPanorama", event.latLng.lat(), event.latLng.lng() );?
... View more
09-28-2010
07:53 AM
|
0
|
0
|
2601
|
|
POST
|
Daniel, You can do the same thing in ActionScript using the Map.reorderLayer method Example ActionScript code to move a layer to the bottom of all layers: myMap.reorderLayer("myGraphicsLayer", 0); ActionScript code to move a layer to the top of all other layers: myMap.reorderLayer("myTiledLayer", myMap.layers.length); http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/Map.html
... View more
09-28-2010
04:24 AM
|
0
|
0
|
848
|
|
POST
|
Matt, I am not sure what you are really after with that question but, if you just change the values to Lat Lon i.e some geographic projection and you are still using the basemaps that come standard in the FlexViewer 2.1 app then you might get undesired results as those basemaps are in Web mercator and not WGS 1984. You could be the extent of your area of interest using the Extent Helper and get the web mercator values that you need. http://help.arcgis.com/en/webapps/flexviewer/help/extenthelper/flexviewer_extenthelper.html Or you can look into the new WebMercatorExtent object and get your values from code. http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/geometry/WebMercatorExtent.html
... View more
09-28-2010
04:19 AM
|
0
|
0
|
428
|
|
POST
|
Frank, I do see your mouse issue in FF on your site but not on my FlexViewer 2.1 site in FF. Not sure what to tell you but something must have gotten screwed up.
... View more
09-27-2010
02:34 PM
|
0
|
0
|
1750
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 04-14-2020 11:36 AM | |
| 17 | 05-17-2021 01:51 PM | |
| 1 | 07-06-2020 05:32 AM | |
| 1 | 07-10-2018 05:49 AM | |
| 9 | 01-28-2022 10:58 AM |
| Online Status |
Offline
|
| Date Last Visited |
06-08-2026
06:27 AM
|