POST
|
Hey! First of all, thank you very much, Stephen, for that (almost) perfect instruction! Nate already mentioned the wrong " character, and I solved the visibility problem: The correct class name to use in the CSS selector is "esriBasemapGallery", not "basemap-gallery". Fix this and it works. I wish both of you a nice weekend!
... View more
04-24-2014
06:47 AM
|
0
|
1
|
513
|
POST
|
Hello! We are using the "side accordion" web template ( http://www.arcgis.com/home/item.html?id=8bbdc5a80ad34d91bb1c12132da20413 ) to present our storytelling maps, and we would like to add a "basemap gallery" ( https://developers.arcgis.com/javascript/jssamples/widget_basemap.html ) feature to the page. Unfortunately, the JS code of the template appears to be quite complex, and several attempts to solve this have failed (the basemap gallery won't appear at all). Does anybody know a working solution for this? Many thanks in advance!
... View more
04-15-2014
12:08 AM
|
0
|
6
|
5593
|
POST
|
The problem is solved. Here is what was going on: For some reason, mxmlc (the compiler that comes with the free Flex SDK) requires paths for embedded assets to begin with a "/". For example, here is a line from the Flex Viewer's "src/default.css" file: downArrowUpSkin: Embed(source="assets/images/arrow_down.png"); This will cause a compilation error with mxmlc. To make it work, you have to add a leading "/" to the file path: downArrowUpSkin: Embed(source="/assets/images/arrow_down.png"); There are many of such lines in the Flex Viewer sources, and if all of them are modified as described here, mxmlc will compile the project successfully. Now, for some reason, FlashDevelop displays only a small subset of all compiler errors which are caused by this problem. I fixed all faulty lines which FlashDevelop told me about, until no further error messages showed up. Still, the project didn't compile, with FlashDevelop providing no further explaination. Finally, I had the idea to manually call mxmlc with the required arguments from the command line, and voilà, it spat out a bunch of more missing-slash-related error messages. I fixed them, and now it works. Still, I'd be glad if someone could perhaps tell me a better solution to this problem. Having to change the sources of all projects which seem to be sort of "not built for mxmlc" is a bit ugly. Furthermore, on Linux and other Unix derivates, a leading slash normally indicates an *absolute* path. In other words, the way how mxmlc seems to resolve paths doesn't conform to a most elementary convention under these operating systems, which is extremely irritating.
... View more
01-13-2011
12:29 AM
|
0
|
0
|
279
|
POST
|
Hello, and thank you for you reply. However, Have you tried Project | Clean ? I can't find any button / menu entry to "clean a project" in FlashDevelop. To make this more clear, I'm not talking about Adobe Flash Builder. FlashDevelop is a free (open source) and much less resource-hungry replacement which works really fine for me, except for compiling the Flex Viewer sources...
... View more
01-09-2011
11:13 PM
|
0
|
0
|
279
|
POST
|
Hello together. For my Flex development work, I use the latest version of the FlashDevelop IDE, which is based on the open source Flex SDK (version 4.1.0). Now I have problems with compiling the ArcGIS Flex Viewer 2.2 application using this environment. I managed to fix a few errors which I was notified about by the compiler (missing library path, missing leading "/" in asset file paths). Now, I don't get any further error messages, but the project still fails to build. So, my question is, is there anyone who has successfully compiled Flex Viewer 2.2 (or 2.1, same problem there) using the FlashDevelop/Flex SDK environment and could tell me how to do it? With best regards, Seb
... View more
01-04-2011
05:12 AM
|
0
|
4
|
1709
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|