POST
|
Lefteris, Than the cahnge is a simple as this, In the MapSwitcherWidget.mxml change this function as indicated below: private function initBasemapButtonBar():void
{
basemapList = new ArrayList();
var labels:Array = [];
for each (var basemap:Object in configData.basemaps.reverse())
{
var label:String = basemap.label;
if (labels.indexOf(label) == -1) // avoid duplicates using the labels
{
labels.push(label);
basemapList.addItem(basemap);
}
}
if (basemapList.length <= 1)
{
this.currentState = "noBasemaps";
}
else
{
setBasemapButtonBarIndexToTopmostVisibleBasemap();
}
} Don't forget to click the Mark as answer check and to click the top arrow (promote) as shown below: I did just that and recompiled the website and now the map switcher is not displayed at all.
... View more
02-08-2012
09:41 AM
|
0
|
0
|
612
|
POST
|
Lefteris, Do you have the ability to change code in the Viewer? Yes I do. I loaded up the source code of flexviewer in the adobe flash builder. Thanks.
... View more
02-08-2012
09:26 AM
|
0
|
0
|
612
|
POST
|
In another forum question (http://forums.arcgis.com/threads/49443-Basemap-own-and-esri-can-be-posted-together) it was determined that the easier way to display your own basemap along the esri basemaps is to place your basemap last, so that the LODs of the esri basemaps are set first. However, for display purposes on the map switcher, is there any way to reverse the way that the basemaps are displayed to show their labels in reverse order? To be clear, I am asking not to reverse the order of the basemaps in the config.xml file but the basemap labels in map switcher display, so my basemap is shown on left side of it. Thank you.
... View more
02-08-2012
09:17 AM
|
0
|
6
|
2359
|
POST
|
Lefteris, Jan is on the right track but you do not have to make it a tiled layer to use it as a basemap or =have it work with the other esri basemaps. Your issue is that you have it as the first basemap in your list and there for is the layer that defines the maps LODs and spatial reference. If you more it to the last layer listed than it should work fine as then the first basemap will be a tiled layer and the map will get the LODs from that layer. Don't forget to click the Mark as answer check and to click the top arrow (promote) as shown below: That was it! Thank you all for your help!!
... View more
02-08-2012
07:53 AM
|
0
|
0
|
784
|
POST
|
The district 1 layer is on Web Mercator projection as well. Thank you. Attached is a video that shows that the basemap that I am trying to use is on Web Mercator as well. Also it shows that I can view my basemap but if I click on the map switcher to view the esri basemap I cannot. However, if I comment out my basemap, the esri basemap are displayed!!! " rel="nofollow" target="_blank">http://www.youtube.com/watch?v=zK3E6IVN8C4[/video]
... View more
02-07-2012
04:58 PM
|
0
|
0
|
784
|
POST
|
What's the projection of your basemap? If it is using Web Mercator like the ArcGIS Onlines ones? If so, it should work. The district 1 layer is on Web Mercator projection as well. Thank you.
... View more
02-07-2012
09:47 AM
|
0
|
0
|
784
|
POST
|
Lefteris, Are you saying that you want District 1 to display on top of one or the other of the basemaps you have listed? Or are you saying that you want District 1 to act like a basemap and have a button in the map switcher? Thank you responding. The second scenario is what I am trying to accomplish. The district 1 layer is on Web Mercator projection as well.
... View more
02-07-2012
09:46 AM
|
0
|
0
|
784
|
POST
|
I created my own basemap and I am trying to use in the app along with two of the esri basemap As it is shown in the code, the District 1 will show, but not the esri basemaps if the user click on the map switcher. If I comment out the District 1 layer, then both ESRI basemaps will be displayed if selected. In ArcMAp all the basemaps can be shown together with no problems. How can I use my and esri basemap in the same app? Thank you. Here is the code for basemaps: <basemaps> <layer label="District 1" type="dynamic" visible="true" url="http://10.168.28.59/DEA_ArcGIS/rest/services/basemaps/District1/MapServer"/> <layer label="Aerial" type="tiled" visible="false" url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer"/> <layer label="Topo" type="tiled" visible="false" url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer"/> </basemaps>
... View more
02-06-2012
12:56 PM
|
0
|
8
|
1384
|
POST
|
The project that I am working it is a requirement to display all the fields in the popup during a search or a query. The problem is that there are 40 fields and it makes it a very long infowindow or popup window when you view the results. So, does anyone know how to limit the results, to let's say 20 fields, and there will be a link at the bottom of the popup window saying "for more click here" where users can click and view the rest of the results in a separate popup. I know that this is not simple, so any other suggestions of how to deal with the display of a long list of fields after a click on the map or a query will be appreciated. Thanks.
... View more
10-06-2011
06:27 AM
|
0
|
3
|
2260
|
POST
|
Thank you. Lefteris, You will have to export a release build and then copy everything from the bin-release folder to your web server.
... View more
10-06-2011
06:17 AM
|
0
|
0
|
762
|
POST
|
First of all, thank you for making the life for flex newbies easier. I followed your steps and I successfuly altered the width of the pop up window when I tested it in flash builder. So, now what do I transfer to my application to apply the wider property for the pop up window? What do I copy from the compiled code (bin-debug) to my application. I know that I have to copy the default.css but what else? Thank you so much. Chad, The popup that is used in the Viewer is actually part of the Flex API, so the source for it is not in the Viewers project structure. That being said it is easy to add the API's PopUpRendererSkin.mxml to your Flex Viewer project so that you can modify it and have it used by your viewer app. All you need to do is get the Flex API download from here: http://resources.arcgis.com/content/arcgis-flex-api-download When you unzip it you will have a arcgis_api_for_flex_2_4 folder drill down and find arcgis_api_for_flex_2_4\ArcGIS_Flex\skins\src\com\esri\ags\skins\PopUpRendererSkin.mxml and copy it to the clipboard. In the Flex Viewer project right click on src folder in the Package Explorer and choose New > Package and for the name field put com.esri.ags.skins and then paste the PopUpRendererSkin.mxml into that Package/folder. then look for vGroup.addElement(zoomToButton) and comment that line out. Then the next time you compile run your viewer the zoom to button should be gone.
... View more
10-05-2011
06:04 PM
|
0
|
0
|
762
|
POST
|
If you downloaded the source code for the viewer and opened it in flash builder you should be able to see the default.css under the src/default package and the folder to place the popuprenderer.mxml skin under com.esri.viewer/skins folder. If you don't see it then you need to go to the esri site and follow the steps for the developers to download and setup the flexviewer code in the flash builder (formely called flex builder).
... View more
10-05-2011
10:42 AM
|
0
|
0
|
555
|
POST
|
Attached is the compiled version that works with flexviewer 2.4. I tested it and it works, but use it at your own risk and I assume no responsibility for anything. How do you manually recompile the older version to work in 2.4? I downloaded a trial of Adobe Flash Builder, and have no problem doing it myself. I just have no idea where to start...
... View more
09-29-2011
12:58 PM
|
0
|
0
|
1127
|
POST
|
Thank you. I had a problem with the Flash Builder to work with the new flexviewer 2.4 and I didn't know how to implement the flash sdk 4.1. I just figured out that by updating the flash builder from version 4 (the version that I have) to the 4.01, it fixes the problem because the updated version works with the sdk 4.1 Lefteris, Still separate download as it has more to do with your IDE environment than with esri.
... View more
09-29-2011
12:47 PM
|
0
|
0
|
323
|
POST
|
Doesn't the download of the zip file for the flexviewer 2.4 include the libary file .swc for the adobe flex SDK 4.1 to set it up in the properties build path? Do you still have to download the flex 4.1 sdk separately? Azizul, Your not the first one to miss these sections of the documentation: From the What's New in 2.4 Viewer (under "General Changes"): It's also mentioned briefly in the "Upgrading your viewer Code": as posted by Bjorn in this thread http://forums.arcgis.com/threads/35876-ArcGIS-API-for-Flex-2.4-just-released-%29?p=121408&viewfull=1#post121408
... View more
09-29-2011
08:32 AM
|
0
|
0
|
323
|
Title | Kudos | Posted |
---|---|---|
1 | 06-02-2023 03:22 PM | |
1 | 02-28-2024 09:35 AM | |
2 | 12-19-2023 06:48 PM | |
1 | 12-06-2023 11:03 AM | |
1 | 06-26-2023 09:20 AM |
Online Status |
Offline
|
Date Last Visited |
a week ago
|