|
POST
|
Shawn, Is "Lot" the exact name of the layer in a map service as it is listed in your REST service directory?
... View more
06-10-2010
06:47 AM
|
0
|
0
|
1026
|
|
POST
|
Brett, Can you post what you changed the code to? Did you can the name of the map service to the label in the config.xml?
... View more
06-09-2010
05:34 PM
|
0
|
0
|
1396
|
|
POST
|
Brad, That dot Net portion can be avoid completely if you force your clients to use Flash Player 10. If you set your flex projects html wrapper to use flash player 10.0.22 or higher than you can use code like this in your print widget const fileReference:FileReference = new FileReference();
fileReference.addEventListener(Event.COMPLETE, removeCur);
fileReference.addEventListener(Event.CANCEL, removeCur);
fileReference.addEventListener(IOErrorEvent.IO_ERROR, removeCur);
fileReference.addEventListener(SecurityErrorEvent.SECURITY_ERROR, removeCur);
fileReference.save(myPDF.save(Method.LOCAL,"",Download.INLINE,"myPDF.pdf"),"map.pdf");
... View more
06-09-2010
03:51 PM
|
0
|
0
|
1993
|
|
POST
|
Brett, Try this function replacement. //identify features
private function identifyFeatures():void
{
var identifyParams : IdentifyParameters = new IdentifyParameters();
identifyParams.returnGeometry = false;
identifyParams.tolerance = identifyTolerance;
identifyParams.geometry = identifyPoint;
identifyParams.width = map.width;
identifyParams.height = map.height;
identifyParams.mapExtent = map.extent;
identifyParams.spatialReference = map.spatialReference;
for (var i:Number = map.layerIds.length -1; i >= 0; i--)
{
identifyParams.layerOption = identifyLayerOption;
identifyParams.layerIds = null
var layer:Layer = map.getLayer(map.layerIds);
var url:String;
if (layer.visible)
{
if (layer is ArcGISDynamicMapServiceLayer)
{
var dynamicLayer:ArcGISDynamicMapServiceLayer = layer as ArcGISDynamicMapServiceLayer;
url = dynamicLayer.url;
if(identifyLayerOption == "visible")
{
identifyParams.layerIds = dynamicLayer.visibleLayers.source;
identifyParams.layerOption = "all";
if(dynamicLayer.visible == false)
url="";
}
//This is the new code
//Change Parcel Data to the map service name of yours you want to use
//and change 67,68 to the layer numbers of yours
//in the else url=""; is what makes it ignore all other map services
//if there name is not (in my example) Parcel Data.
if (layer.id == "Parcel Data")
{
identifyParams.layerIds = [67,68];
} else {
identifyParams.layerIds = null;
url="";
}
}
else if (layer is ArcGISTiledMapServiceLayer)
{
var tiledLayer:ArcGISTiledMapServiceLayer = layer as ArcGISTiledMapServiceLayer;
url = tiledLayer.url;
if(identifyLayerOption == "visible")
{
if(tiledLayer.visible == false)
url="";
}
}
if(url)
{
var identifyTask:IdentifyTask = new IdentifyTask(url);
identifyTask.addEventListener(IdentifyEvent.IDENTIFY_COMPLETE, onResult);
identifyTask.addEventListener(FaultEvent.FAULT, onFault);
identifyTask.execute(identifyParams);
showMessage(loadingLabel, true);
showStateResults(null);
}
}
}
}
... View more
06-09-2010
03:37 PM
|
0
|
0
|
1396
|
|
POST
|
Shawn, Try [HTML]<identifylayeroption>visible</identifylayeroption>[/HTML]
... View more
06-09-2010
03:25 PM
|
0
|
0
|
781
|
|
POST
|
Jayme, So here is the Enhanced Search Widget v1.0.7 working with the drop down. I have NOT added the auto complete capability to the eSearchWidget and probably will not any time soon (just to busy). For your photo field I am a little unclear. What is an example of the data in the Photo1 field?
... View more
06-09-2010
03:16 PM
|
0
|
0
|
597
|
|
POST
|
Shawn, Sorry, I completely typed my slashes the wrong direction. As far as the esa one... Which one are you pointing to in your config.xml? If you are pointing to the esa one in the config.xml change it to point to the one in the flexviewer folder instead.
... View more
06-09-2010
02:57 PM
|
0
|
0
|
781
|
|
POST
|
Shawn, OK so I found that version of the IdentifyWidgets and it looks like I added the ability to specify which fields for which layers are returned and the field that has hyperlink info in it. So all you should need is to make sure that your PLATLINK field has a full url location in it like "http:\\gislap134\images\image1.jpg".
... View more
06-09-2010
02:26 PM
|
0
|
0
|
1205
|
|
POST
|
Shawn, I am pretty sure I created an IdentifyWidget that uses hyperlinks but I have created a half dozen or so versions of the identify tool so it is hard to tell which one you are using. Probably best for you to attach the mxml and xml code you are using so I can see if you are using one that supports hyperlinks. The original IdentifyWidget does not support hyperlinks at all.
... View more
06-09-2010
02:12 PM
|
0
|
0
|
1205
|
|
POST
|
Brett, I created about a half a dozen different IdentifyWidget version (probably not the best idea :eek: ). Now I am struggling to know which source code to go to when people are having issues or need a minor tweak. It would probally be best for you to attach the version you are working with and I will take a look. I am not use I made one yet that allows multiple layers to be specified. I know I have a version that allows you to limit the identify to one specific layer and which fields (that is the one I use).
... View more
06-09-2010
02:07 PM
|
0
|
0
|
1396
|
|
POST
|
Jesse, Gregory developed a widget called the MapListenerWidget that is exactly what you are after I think. http://forums.esri.com/Thread.asp?c=158&f=2421&t=297522&mc=14#929106
... View more
06-09-2010
02:00 PM
|
0
|
0
|
369
|
|
POST
|
Shawn, The standard Identify widget does not use a layers element in it's xml and neither does the ESA version from the 1.3 Sample Flex Viewer... So what identify are you working with?
... View more
06-09-2010
01:56 PM
|
0
|
0
|
1205
|
|
POST
|
Jayme, You might need to run a "clean" from the project menu. I just took your code from the standard SearchWidget and got it to work. Also do you have a Photo and a Photo1 field?
... View more
06-08-2010
12:49 PM
|
0
|
0
|
597
|
|
POST
|
Brad, Don't take any of what I am about to say personal. One of the biggest problems that people have with web mapping is understanding what it really is. Lets start with what it is NOT: Web mapping is not a web version of ArcMap and was never intended to be. Web mapping is not suppose to be some big complicated app that allows clients to do just about anything Web Mapping is: Web Mapping is suppose to be simple user friendly applications to allow clients to view online data. Web Mapping (ESRI Web APIs) are free and there for are not going to have all the desired functionality of a ArcMap... It's FREE... What you get when you pan around and zoom in etc. is an image. The map image has a embedded graphical scale that gets resized (and remains accurate) when the map IMAGE is resized. Adding a scale to the print layout would not compensate for changes that were made to the map image when placing it in the print layout. A legend by far is going to be the hardest item in your wish list. There is little in the current API that would facilitate it's generation and even in ArcGIS 10 is will be much easier but still will require a lot of coding.
... View more
06-08-2010
08:07 AM
|
0
|
0
|
2431
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 07-06-2020 05:32 AM | |
| 1 | 07-10-2018 05:49 AM | |
| 9 | 01-28-2022 10:58 AM | |
| 1 | 03-28-2022 06:20 AM | |
| 1 | 01-30-2019 07:38 AM |
| Online Status |
Offline
|
| Date Last Visited |
10-01-2025
05:12 AM
|