POST
|
In case anyone is interested.... found a much easier and better way of doing this...just use Robert's LinkWidget and create an entry for each site you want to share to, include a custom icon as well, and just set the url in the LinkWidget.xml's to these: TWITTER http://api.addthis.com/oexchange/0.8/forward/twitter/offer?url=http://www.yourdomain.com/
FACEBOOK http://api.addthis.com/oexchange/0.8/forward/facebook/offer?url=http://www.yourdomain.com/
LINKEDIN http://api.addthis.com/oexchange/0.8/forward/linkedin/offer?url=http://www.yourdomain.com/
... View more
02-15-2013
10:08 AM
|
0
|
0
|
448
|
POST
|
Robert, I cannot thank you enough, that worked perfectly!
... View more
02-15-2013
07:37 AM
|
0
|
0
|
333
|
POST
|
eventhough this may not be the appropriate place to post this question I am running out of options so I'm doing it anyway! I have set up a new 3.1 project in flash builder 4.6. I have a central landing page where the user can choose from 3 apps (configured via .xml) and then also specify to go to the Public version or the Admin Login version. I made this happen using two index.html files - one I called index.html and the other (used for the admin apps) is called index2.html. In flash builder I had to setup each module to not be optimized for a particular application so that when I build the project I can build/compile both index files at once. Everything worked great just the way I had planned it...and then I tried it in the dreaded IE. The admin sites (which use index2.html) will take the user to a login screen (which still works in IE), but then after logging in everything loads (static images, header, widgets, etc...) But the actual basemap and operational layers will not load. My scalebar in IE shows an NaN KM and blank for the lat/lon. I went to my server and added index2.html to IIS default docs, tried every possible combination of IE/compatability mode/popup blocker/security settings... And, my two index files are identical other than one has the state="Viewer" and the index2.html has state="Login". Wouldn't be a big deal but so many people are still using IE it's incredible! I should note that this all works flawlessly in Chrome and FireFox... Thank you for Any insight into this!
... View more
02-15-2013
06:16 AM
|
0
|
2
|
875
|
POST
|
THANK YOU THANK YOU THANK YOU the AttachmentLayout distance="144" was what I needed!!! THANKS FOR BEING THE FLEXVIEWER GURU AND TAKING THE TIME TO HELP EVERYONE ON HERE!!!!!
... View more
02-14-2013
06:55 AM
|
0
|
0
|
871
|
POST
|
Robert, Here's is what I have. Changed the VGroup to HGroup and removed the two labels: <s:HGroup left="8" right="8" top="8" bottom="8"
horizontalAlign="center">
<mx:Image id="image"
maintainAspectRatio="true"
maxHeight="128"
maxWidth="128"
source="@Embed('/assets/images/edit_genericdocument.png')"
toolTip="{data.name}"/>
</s:HGroup>
... View more
02-14-2013
04:58 AM
|
0
|
0
|
871
|
POST
|
Robert, Well, I tried a few things - but am not a seasoned programmer. I tried using HGroups and VGroups and combinations of the two but just couldn't make anything work. What I did do was remove the image name label and image size label so that just the image shows up. I just assumed that if I use an HGroup instead of VGroup any additional image should be placed horizontally beside the other image(s). Thanks.
... View more
02-14-2013
04:26 AM
|
0
|
0
|
871
|
POST
|
Just bumping this back up.... I've actually moved the project to 3.1 but am still having the same issue. I can increase the image size but once there are 2 or more images added as attachments they will overlap. I'cve tried everything I can think of to prevent this but nothing worked. Would really appreciate some help on this. Thank you!
... View more
02-14-2013
02:47 AM
|
0
|
0
|
871
|
POST
|
Thanks for taking the time to respond! You raise a good point, but the web adaptor is actually on the same server - it is all on one machine - for some reason when I installed 10.1 server I couldn't get my apps to work until I installed the web adaptor as well - which I didnt think was necessary when the server and web server are on the same machine but alas that is what I had to do. I gave Esri support a call and will report back when the issue is figured out. Thanks for your input!
... View more
01-23-2013
09:25 AM
|
0
|
0
|
473
|
POST
|
Getting closer...but still no dice... Turns out if I use the servers internal ip address (and mty vpn is connected) the print tool works great. Then I tried using the external ip address but the print fails just like when I use the domain name in the url. I checked the server logs and the error is: Layer "Layers": Unable to connect to map server at http://##.###.##.##/arcgiswebadaptor/rest/services/xxxxxx/MapServer. Failed to execute (ExportWebMap). Failed to execute (Export Web Map). Looks like if there was a way to let the server recognize its own domain name and allow it to access itself it would work - but my IT guy says that opens up some major security holes.
... View more
01-23-2013
06:07 AM
|
0
|
0
|
473
|
POST
|
I am using the latest viewer source code (3.1). I've made some custom layouts and I can print as long as I turn off all of my dynamic layers. If I use Esri's sample service print url it will print even with my dynamic layers all turned on. The error I get when I use my own service with my layers turned on is: Error executing print task:
[RPC Fault faultString="Unable to complete operation." faultCode="400" faultDetail="Error executing tool."] I cannot find any issues in Firebug. I have set up my print service following the instructions on esri help and it looks identical to Esri's sampleserver print service. I do not have any odd layers that I can think of that would prevent the print from working....I am using some custom .png symbology and some transparencies....but that does not explain why the Esri print url has no issue with my layers at all... Thanks for ANY help!!
... View more
01-21-2013
03:07 AM
|
0
|
4
|
2462
|
POST
|
I tried to use sharethis and addthis code straight from their sites but didn't have any luck...not to say it can't be done...I'm just not an expert. I did, however, manage to get something working, I placed three icons (twitter, facebook, and linkedin) on my map and referenced these functions when clicked... public function twitter():void { navigateToURL(new URLRequest ("http://api.addthis.com/oexchange/0.8/forward/twitter/offer?url=http://www.xxxxxxxxxxx.com"), "_blank"); } public function facebook():void { navigateToURL(new URLRequest ("http://api.addthis.com/oexchange/0.8/forward/facebook/offer?url=http://www.xxxxxxxxxx.com"), "_blank"); } public function linkedin():void { navigateToURL(new URLRequest ("http://api.addthis.com/oexchange/0.8/forward/linkedin/offer?url=http://www.xxxxxxxx.com/"), "_blank"); } My code for the icon looks like this: <s:Image id="myFxImage" source="assets/images/twitter.png" alpha="0.7" click="twitter()" mouseOver="onImageMouseOver()" mouseOut="onImageMouseOut()"/> <s:Image id="myFxImage2" source="assets/images/facebook.png" alpha="0.7" click="facebook()" mouseOver="onImageMouseOver2()" mouseOut="onImageMouseOut2()"/> <s:Image id="myFxImage3" source="assets/images/linkedin.png" alpha="0.7" click="linkedin()" mouseOver="onImageMouseOver3()" mouseOut="onImageMouseOut3()"/> Maybe not the perfect way to do it but it posts the link to their walls...
... View more
11-19-2012
02:54 AM
|
0
|
0
|
448
|
POST
|
using the latest flaxviewer 3.0. I would like my popups to hide fields if they do not contain a value. Can this be done easily? I'm assuming it will need to happen in the mxml and not the xml, correct? Thanks
... View more
09-27-2012
09:21 AM
|
0
|
10
|
4593
|
POST
|
Tyler, This might help you...some links which describe what needs to be done to automatically add a layer to the map when a widget is opened. I use this to show where streetview is available by adding a layer I created to the map when the streetview widget is opened. http://forums.arcgis.com/threads/57108-Show-layer-when-widget-opens http://forums.arcgis.com/threads/14345-FlexViewer-2.1-Add-Layer-to-the-map-when-a-widget-is-activated
... View more
09-27-2012
02:46 AM
|
0
|
0
|
288
|
POST
|
As stated above, I'm using the eMapSwitcher and trying to force the map to zoom in to 36000 if the aerial basemap ic clicked and the current scale is greater than 36000. I've added the following to emapSwitcherWidget.mxml thinking it would do the trick, but it does nothing...any ideas? private function basemapButtonBar_changeHandler(event:IndexChangeEvent):void
{
var layers:ArrayCollection = map.layers as ArrayCollection;
basemapsButtonBar.fader.value = event.newIndex + 1;
for (var x:int = 0; x < basemapList.length; x++){
var basemapLabel:String = basemapList.getItemAt(x).label;
for each (var layer:Layer in layers){
if(basemapList.getItemAt(event.newIndex).label != basemapLabel)
if(layer.id == basemapLabel)
layer.visible = false;
if(layer.id == basemapLabel)
layer.alpha = 1;
}
}
if(basemapList.getItemAt(event.newIndex).forcescaleonswitch && map.scale < basemapList.getItemAt(event.newIndex).forcescaleonswitch){
map.scale = basemapList.getItemAt(event.newIndex).forcescaleonswitch;
/* if(basemapList.getItemAt(basemapSelectionComponent.selectedIndex).label == "myspecialbasemap"){
map.centerAt(new MapPoint(x,y, map.spatialReference));
} */
if(basemapList.getItemAt(basemapSelectionComponent.selectedIndex).label == "Aerial (36,111 and below)" && map.scale > 36111.909643)
map.scale = 36111.909643;
}
AppEvent.dispatch(AppEvent.BASEMAP_SWITCH, basemapList.getItemAt(event.newIndex).id);
} Is it perhaps that my added code is interfering with the forcescaleonswitch code?
... View more
09-21-2012
06:25 AM
|
0
|
0
|
592
|
POST
|
Robert, Uisng a combination of minscale, maxscale, autswitchtoscale and forcescaleonswitch I have my basemaps configured almost the way i want. The only problem where a user may get confused is the fact that the aerial basemap image can be clicked in the basemap chooser at a scale of 1:100000, for example) and the screen just turns white (because I have the aerial minscale set to 36000). What would be ideal is if the forcescaleonswitch worked in both directions; right now i have forcescaleonswitch set to 4500 so that when you're zoomed in to 1000 and just see a white background and you click aerial it takes you to 4500 where the aerial is available. Could this be made to also zoom in to 36000 when the scale is larger than 36000 (ie, if you are at 200,000 and you click aerial it zooms to 36000). Or, could the aerial thumbnail just be removed from the basemap choose box until the scale has reached 36000? This is what my config looks like: <layer label="Aerial (36,111 and below)" type="tiled" visible="false" maxscale="4513.9887049999998" minscale="36111.909643" forcescaleonswitch="4513.9887049999998" autoswitchtoscale="36111.909643"
icon="assets/images/aerial.png"
url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer"/>
<layer label="Topo (72,223 and above)" type="tiled" visible="true" maxscale="72223.819286" forcescaleonswitch="72223.819286" autoswitchtoscale="72223.819286"
icon="assets/images/topo.png"
url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer"/> Thank you!
... View more
09-20-2012
04:21 AM
|
0
|
0
|
592
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|