|
POST
|
Is there a horizontal align center call in css for the scale bar so that it will be positioned in the middle of the screen no matter the users monitor resolution?
... View more
06-18-2012
12:48 PM
|
0
|
0
|
607
|
|
POST
|
Check out using ESRI's cloud services to set up an ArcGIS Server License and utilizing the flex api to extend the flex viewer. http://www.esri.com/technology-topics/cloud-gis/index.html Depending on use it's going to cost you around $10,000 and up. Alex Sanders
... View more
03-27-2012
12:28 PM
|
0
|
0
|
627
|
|
POST
|
You can always change your screen resolution on your computer. Have you tried the Advanced Java Print Widget http://www.arcgis.com/rc/item.html?id=6809086326ea4c76bf026a32bb9dd698? It works wonderfully on being able to set scales for prints. Alex Sanders
... View more
03-27-2012
12:24 PM
|
0
|
0
|
434
|
|
POST
|
I'm trying to implement this on the pop up of the identify widget. So you're saying you didn't change anything in the IdentfyWidget.mxml? Here's what I'm trying to do bu the font in the pop up continues to be black if(onlylistedlayers == false){
for (fld in obj){
try{
value = obj[fld] ? String(obj[fld]) : "";
} catch (error: Error) {
value = "";
}
value.replace(/</g,">").replace(/>/g,"<");
content += "<b>" + fld + ": </b><font color='0xFF0000'>"+ value + "</font><br \>";
} Any ideas?
... View more
03-26-2012
12:17 PM
|
0
|
0
|
412
|
|
POST
|
Robert, I get a warning error 3596 - Duplicate Variable Definition for var gf:spark.filters.GlowFilter = new spark.filters.GlowFilter(); const hlGraphic:Graphic = new Graphic(graphic.geometry, graphic.symbol,graphic.attributes); override protected function commitProperties():void
{
super.commitProperties();
var featureLayer:FeatureLayer = hostComponent.featureLayer;
var formattedAttributes:Object = hostComponent.formattedAttributes;
var graphic:Graphic = hostComponent.graphic;
var map:Map = hostComponent.map;
var popUpInfo:PopUpInfo = hostComponent.popUpInfo;
var validMediaInfos:Array = hostComponent.validPopUpMediaInfos;
var geometry:Geometry = graphic ? graphic.geometry : null;
var layerDetails:LayerDetails = featureLayer ? featureLayer.layerDetails : null;
//Make sure there is a graphic
if(graphic){
var gf:spark.filters.GlowFilter = new spark.filters.GlowFilter();
gf.color = 0xFF0000;
gf.alpha = 1;
gf.strength = 2;
gf.blurX = 8;
gf.blurY = 8;
var hlGraphicLayer:GraphicsLayer;
//Attempt to retieve the highlightGraphics layer
hlGraphicLayer = map.getLayer("highlightGraphics") as GraphicsLayer;
//If it does not exist create it.
if(!hlGraphicLayer){
hlGraphicLayer = new GraphicsLayer();
hlGraphicLayer.id = "highlightGraphics";
map.addLayer(hlGraphicLayer);
}
hlGraphicLayer.clear();
//Create the new highlight graphic
/* const hlGraphic:Graphic = new Graphic(graphic.geometry, graphic.symbol,graphic.attributes); */
const hlGraphic:Graphic = new Graphic(graphic.geometry, graphic.symbol,graphic.attributes);
switch(graphic.geometry.type){
case Geometry.MAPPOINT:{
hlGraphic.symbol = new SimpleMarkerSymbol("circle",22,0x000000,0,0,0,0,new SimpleLineSymbol("solid",0xFF0000,0.5,2));
break;
}
case Geometry.POLYLINE:{
hlGraphic.symbol = new SimpleLineSymbol("solid",0xFF0000,0.3,8);
break;
}
default:{
hlGraphic.symbol = new SimpleFillSymbol("solid",0x000000,0,new SimpleLineSymbol("solid",0xFF0000,0.4,3));
break;
}
}
hlGraphic.filters = [gf];
hlGraphicLayer.add(hlGraphic);
//Add inline event listener functions for removing the highlight graphic
map.infoWindow.closeButton.addEventListener(MouseEvent.CLICK, function(event:MouseEvent):void{infoWindowClose(event, hlGraphicLayer)});
function infoWindowClose(evt:Event, graphicLay:GraphicsLayer):void{
graphicLay.clear();
graphicLay.refresh();
graphicLay.map.infoWindow.closeButton.removeEventListener(MouseEvent.CLICK, infoWindowClose);
}
map.addEventListener(MapMouseEvent.MAP_CLICK, function(event:MouseEvent):void{onMapClick(event, hlGraphicLayer)});
function onMapClick(evt:Event, graphicLay:GraphicsLayer):void{
graphicLay.clear();
graphicLay.refresh();
graphicLay.map.removeEventListener(MapMouseEvent.MAP_CLICK, onMapClick);
}
}
vGroup.removeAllElements();
//vGroup.addElement(ToggleLayers);
if (popUpInfo)
{
if (popUpInfo.title)
{
titleText.text = StringUtil.substitute(popUpInfo.title, formattedAttributes);
if (titleText.text)
{
vGroup.addElement(titleText);
vGroup.addElement(titleLine);
}
}
var htmlText:String;
if (popUpInfo.description)
{
htmlText = StringUtil.substitute(popUpInfo.description, formattedAttributes);
if (htmlText)
{
var descriptionText:Text = new PopUpText();
descriptionText.percentWidth = 100;
descriptionText.styleSheet = textStyleSheet;
cleanAndSetHtmlText(descriptionText, htmlText);
//trace(descriptionText.htmlText);
vGroup.addElement(descriptionText);
}
}
else
{
var descriptionForm:Form;
for each (var fieldInfo:PopUpFieldInfo in popUpInfo.popUpFieldInfos)
{
if (fieldInfo.visible)
{
var formItem:FormItem = new FormItem();
formItem.label = fieldInfo.label || fieldInfo.fieldName;
var label:Label;
htmlText = formattedAttributes[fieldInfo.fieldName];
if (htmlText)
{
// convert attribute field values that just contain URLs into links
var match:Array = htmlText.match(/^\s*((https?|ftp):\/\/\S+)\s*$/i);
if (match && match.length > 0)
{
label = new Label();
htmlText = '<a href="' + match[1] + '" target="_blank">' + match[1] + "</a>";
}
else
{
label = new PopUpText();
}
cleanAndSetHtmlText(label, htmlText);
label.selectable = true;
label.styleSheet = this.textStyleSheet;
label.width = 150;
formItem.addChild(label);
}
if (!descriptionForm)
{
descriptionForm = new Form();
descriptionForm.percentWidth = 100;
descriptionForm.horizontalScrollPolicy = ScrollPolicy.OFF;
descriptionForm.verticalScrollPolicy = ScrollPolicy.OFF;
descriptionForm.styleName = "formStyle";
}
descriptionForm.addChild(formItem);
}
}
if (descriptionForm)
{
vGroup.addElement(descriptionForm);
}
}
if (validMediaInfos && validMediaInfos.length > 0)
{
vGroup.addElement(mediaBrowser);
mediaBrowser.attributes = graphic.attributes;
mediaBrowser.formattedAttributes = formattedAttributes;
mediaBrowser.popUpFieldInfos = popUpInfo.popUpFieldInfos;
mediaBrowser.popUpMediaInfos = validMediaInfos;
}
if (popUpInfo.showAttachments && graphic && featureLayer
&& layerDetails && layerDetails.hasAttachments && layerDetails.objectIdField)
{
vGroup.addElement(attachmentInspector);
attachmentInspector.showAttachments(graphic, featureLayer);
}
if (map && geometry)
{
vGroup.addElement(zoomToButton);
}
}
... View more
03-01-2012
09:55 AM
|
0
|
0
|
1320
|
|
POST
|
Thanks for the info, I added the tag to the otb search viewer xml and it is working as well.
... View more
12-27-2011
10:27 AM
|
0
|
0
|
1136
|
|
POST
|
Robert, I just figured it out I think. I was going over several of your past post's and saw where you added the tag <useamf>false</useamf> to the top line of the layer in the xml. I added that and it seems to be working. I was having the same issue with the out of the box search widget. I tried implementing your linkprefix and linksuffix functionality to the widget and was getting the same issue. What does the <useamf> tag do?
... View more
12-27-2011
10:20 AM
|
0
|
0
|
1103
|
|
POST
|
I'm having troubles with the linkfield in the Version 2.4.0.14 of the search viewer. I'm using the linkprefix to parse the link field to a coldfusion page. When I use the field that I want linked it brings over a different number and adds a negative sign to it. for example. http://gisweb/cfGIS/basefile.cfm?SdeNum=-54420094 It should be http://gisweb/cfGIS/basefile.cfm?SdeNum=482450818 The field is an integer. Any suggestions? Alex
... View more
12-27-2011
10:09 AM
|
0
|
0
|
1103
|
|
POST
|
I've never tried implementing an annotation layer as a feature service. I've always used them in dynamic map services and they've worked. Maybe that's the issue?
... View more
12-01-2011
11:04 AM
|
0
|
0
|
438
|
|
POST
|
Make sure you are using the field alias to name the fields you want identified in the layer.
... View more
08-24-2011
11:53 AM
|
0
|
0
|
629
|
|
POST
|
I have a column that has a date field of mm/dd/yyyy. When I publish this data to a map service, the date field changes to add i.e. Wed, Sep 30 2010 06:30 p.m. How can I change the date settings to not display the long form time format from my OS? Alex
... View more
06-06-2011
08:45 AM
|
0
|
2
|
616
|
|
POST
|
I'm getting the issue in the Flex Viewer Application. The link below for help is not working. Does anybody know of any help on this issue?
... View more
06-06-2011
08:27 AM
|
0
|
0
|
1296
|
|
POST
|
You can add this code to your config file right below the operational layers. <lods> <lod scale="591657527.591555" resolution="156543.03392800014"/> <lod scale="295828763.79577702" resolution="78271.516963999937"/> <lod scale="147914381.89788899" resolution="39135.758482000092"/> <lod scale="73957190.948944002" resolution="19567.879240999919"/> <lod scale="36978595.474472001" resolution="9783.9396204999593"/> <lod scale="18489297.737236001" resolution="4891.9698102499797"/> <lod scale="9244648.8686180003" resolution="2445.9849051249898"/> <lod scale="4622324.4343090001" resolution="1222.9924525624949"/> <lod scale="2311162.2171550002" resolution="611.49622628137968"/> <lod scale="1155581.108577" resolution="305.74811314055756"/> <lod scale="577790.55428899999" resolution="152.87405657041106"/> <lod scale="288895.27714399999" resolution="76.437028285073239"/> <lod scale="144447.638572" resolution="38.21851414253662"/> <lod scale="72223.819285999998" resolution="19.10925707126831"/> <lod scale="36111.909642999999" resolution="9.5546285356341549"/> <lod scale="18055.954822" resolution="4.7773142679493699"/> <lod scale="9027.9774109999998" resolution="2.3886571339746849"/> <lod scale="4513.9887049999998" resolution="1.1943285668550503"/> <lod scale="2256.994353" resolution="0.59716428355981721"/> <lod scale="1128.4971760000001" resolution="0.29858214164761665"/> </lods>
... View more
05-19-2011
12:04 PM
|
0
|
0
|
1154
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 04-01-2016 08:40 AM | |
| 11 | 12-29-2014 02:21 PM | |
| 11 | 12-29-2014 02:21 PM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:23 AM
|