POST
|
Thanks for the info! I think it would be good to be able to not use the default geocode service for the feature, but I'm working with the uncompiled code now and uses Roberts fix from this thread so that works for me. I still have some problems with the result graphics though. When using keyboard arrows and pressing enter on one result in the result list the graphic appear, and if I'm typing a searchterm that only gets one result the graphic appear as well. But when clicking with the mouse on a result in the result list the info window shows and the map zoom in to the result but no graphic appears. Is this a bug, or is it just me who experience this behavior? (It is the same when I use the compiled version as well so it's not because of any code change by me.)
... View more
01-10-2013
11:54 PM
|
0
|
0
|
564
|
POST
|
I really like the idea of the new searchbox in the HeaderControllerWidget, but I'm not able to configuring it as I want. Don't know if I'm doing it wrong or if it's impossible without changing the source code. I want to use my own searchlayers and no locator at all, and I want the results to display as graphics. First of all I think the conceptual graphic in the documentation is wrong, it looks like the <labels> tag and <symbols> tag is supposed to be in the <searchlayer> tag, but in the text it says they should be in the <search> tag which seems to be correct. My config-file looks like this (the search tag): <search> <searchlayers> <searchlayer> <url>http://oskar75:6080/arcgis/rest/services/test/Sokning/MapServer</url> <layerids>0,1,2</layerids> <searchfields>FASTIGHET,ADRESS,TEXT</searchfields> </searchlayer> </searchlayers> <zoomscale>5000</zoomscale> <labels> <searchprompt>Skriv fastighet, adress eller plats</searchprompt> <noresults>Inga träffar hittades</noresults> <searchresulttitle>Sökträff</searchresulttitle> <clearfeaturelabel>Rensa</clearfeaturelabel> </labels> <symbols> <simplemarkersymbol color="0x00FFFF" alpha="0.7" size="10"/> <simplefillsymbol color="0x00FFFF" alpha="0.5"> <outline alpha="0.9" width="2"/> </simplefillsymbol> </symbols> </search> The search works fine for my three layer ids but also displays searchresult from what I guess is the default locator. Is there anyway to disable that? I don't see any graphics to my results though, is something wrong with my <symbols> tag? (My layers are one polygon layer and two point layers). My last wish I think would require editing the source code (maybe something for the next version?), I would like the resultlist to display and update while typing, without pressing enter, after the users has entered a number of characters (for example 4 or 5).
... View more
12-21-2012
12:12 AM
|
0
|
14
|
1134
|
POST
|
Dasa, I made that change to the map tag and then the application works in a browser (except the initial extent wasn't correct). But the problem in the AppBuilder is still there. Changing or removing tha initial extent in the config doesn't help either.
... View more
12-20-2012
09:41 PM
|
0
|
0
|
639
|
POST
|
The config file (for this simple test application) looks like this: <?xml version="1.0" ?>
<configuration>
<title>ArcGIS Viewer for Flex</title>
<logo>assets/images/logo.png</logo>
<style>
<colors>0xffffff,0x333333,0x101010,0x0,0xffd700</colors>
<alpha>0.8</alpha>
<font name="Verdana"/>
<titlefont name="Verdana"/>
<subtitlefont name="Verdana"/>
</style>
<!-- replace the following url with your own geometryservice -->
<geometryservice url="http://oskar75:6080/arcgis/rest/services/Utilities/Geometry/GeometryServer"/>
<subtitle>test</subtitle>
<widget url="widgets/Navigation/NavigationWidget.swf" config="widgets/Navigation/NavigationWidget.xml" left="10" top="50"/>
<widget url="widgets/OverviewMap/OverviewMapWidget.swf" config="widgets/OverviewMap/OverviewMapWidget.xml" right="0" bottom="0"/>
<widget url="widgets/MapSwitcher/MapSwitcherWidget.swf" config="widgets/MapSwitcher/MapSwitcherWidget.xml" right="20" top="55"/>
<widget url="widgets/HeaderController/HeaderControllerWidget.swf" config="widgets/HeaderController/HeaderControllerWidget.xml" left="0" top="0"/>
<map attributionvisible="false" esrilogovisible="true" openhandcursorvisible="false" scalebarvisible="true" scalebar="metric" zoomslidervisible="false" wraparound180="true" addarcgisbasemaps="false" initialextent="1694414.743585312 7736155.2180623105 1953383.3954153643 7882914.312369778" wkid="102100" top="40" portalurl="https://www.arcgis.com/">
<basemaps>
<layer type="tiled" label="Bakgrundskarta" url="http://oskar75:6080/arcgis/rest/services/test/Bakgrundskarta/MapServer" visible="true"/>
<layer type="tiled" label="Ortofoto test" url="http://oskar75:6080/arcgis/rest/services/test/Ortofoto_test/MapServer" visible="false"/>
</basemaps>
<operationallayers>
<layer type="dynamic" label="Riksintressen test" imageformat="png8" url="http://oskar75:6080/arcgis/rest/services/test/Riksintressen_test/MapServer" visible="true"/>
<layer type="dynamic" label="Fastigheter rättigheter" imageformat="png8" url="http://oskar75:6080/arcgis/rest/services/test/Fastigheter_r%C3%A4ttigheter/MapServer" visible="true"/>
</operationallayers>
</map>
<widgetcontainer layout="float">
<widget url="widgets/Draw/DrawWidget.swf" config="widgets/Draw/DrawWidget.xml" label="Rita" icon="assets/images/i_draw2.png"/>
<widget url="widgets/Print/PrintWidget.swf" config="widgets/Print/PrintWidget.xml" label="Skriv ut" icon="assets/images/i_print.png"/>
<widget url="widgets/Legend/LegendWidget.swf" config="widgets/Legend/LegendWidget_1.xml" label="Teckenförklaring" icon="assets/images/Legend32.png"/>
<widget url="widgets/Search/SearchWidget.swf" config="widgets/Search/SearchWidget_1.xml" label="Sök" icon="assets/images/i_search.png"/>
</widgetcontainer>
</configuration> And I see at least one thing that's incorrect, the wkid of my map services that I use in this application (they are not public) is 3010, and the config file says the wkid of the map is 102100. The initial extent is what I can't set in the AppBuilder for my basemaps so it's the extent that I set with a basemap from arcgis online. And with that config file I can't see the application at all in a browser, just a blank screen, but I see a spinning clock and then the handcursor when trying to drag the blank map as well as the esri-logo. I tried making changes to the config.xml and set wkid to 3010 and an initialextent suitable to my basemaps, but it's still the same, both in AppBuiler and in the browser.
... View more
12-20-2012
03:36 AM
|
0
|
0
|
639
|
POST
|
Hi, I've tried the new AppBuilder 3.1 and have problems creating apps with my basemaps. If I'm only using sample basemaps from arcgis online eventhing works, but if I use my basemaps (that worked perfectly in 3.0) the app builder freezez when I go to step 3 to set the extent. se the attached image. And if I'm viewing the application in a browser I can't se my basemaps. [ATTACH=CONFIG]20071[/ATTACH]
... View more
12-19-2012
05:27 AM
|
0
|
7
|
985
|
POST
|
Jorge, have you seen this thread: http://forums.arcgis.com/threads/33618-FAO-Robert-Scheitlin-or-anyone-who-knows-about-saved-graphics-as-text-files Not a widget, but a pyhton script you can use in ArcGIS to convert to shapefile. I'm not sure if it works with the 3.0 version, but you can try. /Mattias
... View more
09-25-2012
10:36 PM
|
0
|
0
|
191
|
POST
|
On your slider, try set the mouseFocusEnabled property to false like: <s:HSlider id="slider" mouseFocusEnabled="false" .............../> I had a problem just like yours that I solved this way...
... View more
07-26-2012
02:30 AM
|
0
|
0
|
286
|
POST
|
sorry, your code above was a mix of what it should be in the index.template.html and the index.html. In the index.html it should be: swfobject.embedSWF( "index.swf?ts=" + new Date().getTime(), "flashContent", "100%", "100%", swfVersionStr, xiSwfUrlStr, flashvars, params, attributes);
... View more
05-21-2012
10:16 PM
|
0
|
0
|
1640
|
POST
|
Eric, yes that change will make sure that the main application index.swf is not loaded from the browser cache. Due to some datatype problems with the PopUpConfig URLs in ConfigManager it is easier to do that fix in the MapManager.mxml Look for the line: var popUpConfigURL:String = arrLayerPopUp.popUpConfig; It should be around line nr 1017, and replace it with: var popUpConfigURL:String = String(arrLayerPopUp.popUpConfig) + "?ts=" + new Date().getTime(); That should make sure that PopUpConfigs doesn't load from browser cache...
... View more
05-21-2012
06:08 AM
|
0
|
0
|
751
|
POST
|
Eric, I reacently noticed that this fix doesn't apply to the PopUpConfig-files too. It was a little bit more tricky to fix than I first thought, I will try to solve it and post back here when/if I'm able to solve it... As it is now it applies to config-files, both main-configs and widget configs and all widget swf files. For the index.swf I think you have to add a timestamp to the index.html file if you haven't already done that. Concerning the .swz-files I don't think there is any differens between them so you can just take the index.swf. But I'm not 100% sure...
... View more
05-16-2012
06:32 AM
|
0
|
0
|
751
|
POST
|
Eric, the problem with a blank white screen and no errors I've had before. I could solve that by installing a new version of flash player. I don't know what was wrong, the version I had was supposed to be working. Try updating your flash player and see that changes anything. The index.html is supposed to be created when building the project, it's based on the index.template.html in the html-template folder.
... View more
05-14-2012
11:20 PM
|
0
|
0
|
889
|
POST
|
Sorry I forgot to mention that the solution in that thread is for those who is working with the source code i FlashBuilder. And that the ConfigManager.as file was for version 2.3.1. Well I started a new project with the source code for 2.5 and made the changes to the ConfigManager.as, and it works for me at least. Eric, did you first try to running the application without any changes at all? if that works you could try the new ConfigManager.as attached to this post. If not you should read this carefully and start over. Or you could try to use the compiled version and change the index.swf to the one I included in ConfigManager_v2.5.zip, that's my compiled file after making the changes to the ConfigManager. I can't guarantee that it'll work, but it may be worth a try. Jesse and other who use the compiled version could try this as well. But I'm not sure if there might be some of my FB-settings or something else that will make any other changes to my compiled index.swf compared to the one you get when dowloading the compiled version.
... View more
05-11-2012
01:08 AM
|
0
|
0
|
889
|
POST
|
You can modify the configmanager.as and add timestamps to the URLs when swf-files and xml-files are loaded, which will prevent the browser from getting it from the cache memory. Take a look at this thread: http://forums.arcgis.com/threads/16664-Preventing-client-side-caching-of-the-Flex-Viewer
... View more
05-09-2012
12:24 AM
|
0
|
0
|
889
|
POST
|
I'd say there is a Flex API path for doing this. You can use the IdentifyTask with IdentifyParameters where you've set the geometry to the buffer and specified which layers you want to search by using LayerIds (for example all layers in the mapservice). Or have I misunderstood something?
... View more
04-17-2012
11:08 PM
|
0
|
0
|
588
|
POST
|
Then you need to change the code in src/widgets/HeaderController/WidgetItemDataGroupRenderer.mxml But if making the images a bit bigger, you then probably want to make changes to different parts to the HeaderControllerWidget to adjust everything to the new image sizes... /Mattias
... View more
03-20-2012
02:39 AM
|
0
|
0
|
373
|
Title | Kudos | Posted |
---|---|---|
1 | 10-14-2015 01:59 AM | |
1 | 06-13-2024 12:31 AM | |
2 | 03-28-2024 01:07 AM | |
1 | 03-27-2024 04:09 AM | |
1 | 06-13-2024 12:22 AM |
Online Status |
Offline
|
Date Last Visited |
Friday
|