POST
|
I set up the AppBuilder 3.6 with source codes uncompiled version. When we use chart widget, is there any method we can let two variables to display together in one chart? For example, Population1999 and Population 2010, let them display as 2 columns side by side to compare in a chart. Currently, each chart can only display one variable at one time. Thanks!
... View more
11-13-2014
08:48 AM
|
0
|
0
|
1654
|
POST
|
After adding parser.parse(), there is new issue about adding graphics, it indicates that "Cannot read property 'graphics' of undefined function addGraphic(evt) { var graphic = new Graphic(evt.geometry, symbol); this.map.graphics.add(graphic); } graphics is a property of map object, and I already use paresr.parse(), why it cannot read graphics? Thanks!
... View more
09-15-2014
03:36 PM
|
0
|
3
|
629
|
POST
|
I am trying to create a group of draw tools like point, freehandpolyline and freehandpolygon in a ESRI's JavaScript map template. I set up three buttons in the index.html as the following:
<button id="point" data-dojo-type="dijit/form/Button"></button>
<button id="freehandpolyline" data-dojo-type="dijit/form/Button"></button>
<button id="freehandpolygon" data-dojo-type="dijit/form/Button"></button>
After that I tried to registered these buttons in a file called 'main.js' inside the js folder of the template. var tb = new Draw(this.map); registry.byId("point").on("click", function () { tb.activate(this.id); }); But it just can not call this button at all. The debug tools indicate that "cannot read property 'on' of undefined. Any hint would be helpful. Thanks!
... View more
09-15-2014
12:56 PM
|
0
|
6
|
2617
|
POST
|
I think I got what you mean. We don't have to copy all the files. Thanks a lot!
... View more
08-07-2014
02:50 PM
|
0
|
1
|
449
|
POST
|
Do you mean the Web Server like IIS is on my own computer? We usually copy the files to our organization's server side. When we use Flex, after 'Export release builder', we copy the whole project folder to the server; the compiled swf files are inside one of the folder called 'bin-release', but there are also folders called '.settings', 'bin-debug', 'html-template', 'libs', 'locales', 'src', and files including .actionScriptProperties, .flexProperties, .fxpProperties, .project. All these are copied to our server. But the output from App Builder only contains compiled swf files, seems they are those files from bin-release folder in flex. Thanks!
... View more
08-07-2014
02:43 PM
|
0
|
0
|
449
|
POST
|
Yes, I tried that but it is not working. I found that after using Flex Viewer 3.6 to create one web app and it writes all the files to the folder, I examined all the files. Then I compare these files with the files that are exported from Flash Builder, they are different. The Flash builder has a bin-release folder, but the Flex Viewer 3.6 does not have that. I also tried to import the folder (which is created by App Builder) into Flash Builder, but it can not be even imported. What I thought is that I can import this project into Flex and then use Flex to 'export to release' the whole project. But it is not working. Thanks!
... View more
08-07-2014
02:16 PM
|
0
|
4
|
449
|
POST
|
When I use Flex Viewer 3.6 to create an app, after it is done and export to a folder, how do I publish the app to the server? I tried to copy the folder to the server, but it is not working. When using Flash Builder, there is a function 'export release build', click on that and then just copy the exported folder to the server, it is online. What if I don't use flash builder, can I let Flex Viewer 3.6 to publish app online? Thanks!
... View more
08-07-2014
01:04 PM
|
0
|
6
|
1061
|
POST
|
We use 2.4 version and did not get a chance to update yet. Thanks!
... View more
07-16-2014
03:38 PM
|
0
|
0
|
607
|
POST
|
<configuration>
<layers>
<layer>
<definitionexpression></definitionexpression>
<enableexport>false</enableexport>
<name>Health Indicators</name>
<url>I hide url since it is not public</url>
<expressions>
<expression alias="Census Tract" textsearchlabel="Search by Census Tract [Example: 48201532100]:"
>ct_arr.FIPS LIKE '%[value]%'</expression>
</expressions>
<graphicalsearchlabel>Use a tool to select one or more Census Tracts</graphicalsearchlabel>
<spatialsearchlayer>true</spatialsearchlayer>
<titlefield></titlefield>
<fields all="false">
<field name="ct_arr.FIPS" alias="Census Tract" gridfield="true"/>
<field name="all.pop_per_sq" alias="Population Density" numberformat="0|,|." gridfield="true"/>
<field name="all.pct_minor" alias="Percent Minority" numberformat="0|,|." gridfield="true"/>
<field name="all.pct_black" alias="Percent Black" numberformat="0|,|." gridfield="true"/>
<field name="all.pct_hispan" alias="Percent Hispanic" numberformat="0|,|." gridfield="true"/>
<field name="all.pct_asian" alias="Percent Asian" numberformat="0|,|." gridfield="true"/>
<field name="all.pct_povert" alias="Percent Below Poverty" numberformat="0|,|." gridfield="true"/>
<field name="all.MHI" alias="Median Household Income" numberformat="0|,|." gridfield="true"/>
<field name="all.pct_no_HS" alias="Percent Without High School Diploma" numberformat="0|,|." gridfield="true"/>
<field name="all.pct_hsh_fe" alias="Percent of Female Head of Households" numberformat="0|,|." gridfield="true"/>
<field name="all.avg_comm_t" alias="Average Travel Time to Work" numberformat="0|,|." gridfield="true"/>
<field name="all.pct_no_veh" alias="Percent Households without a Vehicle" numberformat="0|,|." gridfield="true"/>
<field name="all.bkw_ch" alias="Percent of Children Living within a 1/4 mile of a Bikeway" numberformat="0|,|." gridfield="true"/>
<field name="all.bus_w" alias="Percent of Adults Living within a 1/4 Mile of a Bus Stop" numberformat="0|,|." gridfield="true"/>
<field name="all.es_ch" alias="Percent of Children Living with a 1/4 mile of an Elementary School" numberformat="0|,|." gridfield="true"/>
<field name="all.prk_pop" alias="Percent of Resdients Living within a 1/4 Mile of a Park" numberformat="0|,|." gridfield="true"/>
<field name="all.int_sqm" alias="Intersection Density (street intersections per square mile)" numberformat="0|,|." gridfield="true"/>
<field name="all.parks_sqm" alias="Parks per Square Mile" numberformat="2|,|." gridfield="true"/>
<field name="all.grocery_sq" alias="Supermarkets per Square Mile" numberformat="2|,|." gridfield="true"/>
<field name="all.fastfood_s" alias="Fast Food Restaurants per Square Mile" numberformat="4|,|." gridfield="true"/>
<field name="all.supm_pop" alias="Supermarkets per 1,000 Residents" numberformat="0|,|." gridfield="true"/>
<field name="all.ff_pop" alias="Fast Food Restaurants per 1,000 Residents" numberformat="0|,|." gridfield="true"/>
<field name="all.PerObOvr" alias="Percent of Children Overweight" numberformat="0|,|." gridfield="true"/>
</fields>
<linkfield></linkfield>
<icon isfield="false">assets/images/i_target.png</icon>
<zoomscale>145000</zoomscale>
<autoopendatagrid>true</autoopendatagrid>
</layer>
</layers>
<spatialrelationships>
<spatialrelationship>
<name>esriSpatialRelContains</name>
<label>entirely contained in</label>
</spatialrelationship>
<spatialrelationship>
<name>esriSpatialRelIntersects</name>
<label>interssected by</label>
</spatialrelationship>
<spatialrelationship>
<name>esriSpatialRelEnvelopeIntersects</name>
<label>intersected by envelop of</label>
</spatialrelationship>
</spatialrelationships>
<bufferunits>
<bufferunit>
<name>UNIT_FOOT</name>
<label>Feet</label>
</bufferunit>
<bufferunit>
<name>UNIT_STATUTE_MILE</name>
<label>Miles</label>
</bufferunit>
<bufferunit>
<name>UNIT_METER</name>
<label>Meters</label>
</bufferunit>
<bufferunit>
<name>UNIT_KILOMETER</name>
<label>Kilometers</label>
</bufferunit>
</bufferunits>
<tolerance>6</tolerance>
<spatialReference>102003</spatialReference>
<zoomscale>2400</zoomscale>
<geometryservice>http://tasks.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer</geometryservice>
<csvSeparator>,</csvSeparator>
<toleranceforpointgraphicalselection>3</toleranceforpointgraphicalselection><!-- value is in screen pixels -->
<disablebuttons></disablebuttons><!--possible values one or more not all three search types comma sepearted text,graphic,spatial,grid -->
<defaultselectionoption>graphicalInput</defaultselectionoption><!--possible values only one graphicalInput or textInput or spatialInput -->
<enabledrawgraphicbutton>true</enabledrawgraphicbutton>
<labels>
<addtolerance>Add search tolerance to point selection</addtolerance>
<existingdrawgraphicslabel>Use Existing Draw Widget Graphics</existingdrawgraphicslabel>
<graphicalsearchlabel>Graphical Search</graphicalsearchlabel>
<textsearchlabel>Text Search</textsearchlabel>
<resultslabel>Results</resultslabel>
<layerlabel>Search Layer:</layerlabel>
<layerfieldlabel>Search Layer Field:</layerfieldlabel>
<nolayerlabel>No search layer defined.</nolayerlabel>
<submitlabel>Search</submitlabel>
<pointlabel>Select by Point</pointlabel>
<linelabel>Select by Line</linelabel>
<rectanglelabel>Select by Rectangle</rectanglelabel>
<polygonlabel>Select by Polygon</polygonlabel>
<clearlabel>Clear</clearlabel>
<loadinglabel>Loading...</loadinglabel>
<selectionlabel>Features Selected:</selectionlabel>
<gridresultsLabel>Show Results in Grid</gridresultsLabel>
<csvdefaultname>Selected Records</csvdefaultname>
<exportbtnlabel>Export</exportbtnlabel>
<export2csvoptionlabel>Export to CSV</export2csvoptionlabel>
<export2txtoptionlabel>Export to Txt</export2txtoptionlabel>
<bufferLabel>apply a search distance:</bufferLabel>
<spatialsearchLabel>Spatial search</spatialsearchLabel>
<applybufferlabel>Apply buffer</applybufferlabel>
<searchlayerlabel>Search entities of:</searchlayerlabel>
</labels>
<info>widgets/InfoTemplates/InfoPopupWidget.swf</info>
<symbols>
<simplefillsymbol color="0x999999" alpha="0.9">
<outline color="0xff0000" alpha="0.8" width="2"/>
</simplefillsymbol>
<simplemarkersymbol style="circle" size="12" color="0x999999" alpha="0.5" xoffset="0" yoffset="0" angle="0">
<outline style="solid" color="0x000000" alpha="1" width="1"/>
</simplemarkersymbol>
<!--<picturemarkersymbol url="assets/images/i_search.png" height="30" width="30" xoffset="0" yoffset="0"/>-->
<simplelinesymbol color="0xff0000" alpha="0.8" width="2"/>
</symbols>
</configuration>
... View more
07-16-2014
01:07 PM
|
0
|
2
|
607
|
POST
|
It is esriFieldTypeDouble; if I remove numberformat, the data goes back to original .**** four decimals Thanks!
... View more
07-16-2014
12:24 PM
|
0
|
4
|
607
|
POST
|
I tried this, but it seems nothing changed. I also change it to 4|,|. or 100|,|. Thanks!
... View more
07-16-2014
11:34 AM
|
0
|
6
|
607
|
POST
|
I want to keep 2 decimals for a variable in eSearch widget. Can I use numberformat to control decimals? The following code only keep integer. Thanks! <field name="minor" alias="Percent Minority" numberformat="0|,|." gridfield="true"/>
... View more
07-16-2014
09:35 AM
|
0
|
10
|
1129
|
POST
|
I used JavaScript API to build a web application for our organization. The map layer (census tract which is our own map service) seems displaying in a very slow speed; the SAME map service works fine in our Flex-Viewer based application. My question is: what possible reason could make this happen? For example, in JavaScript API environment the layer is created as ArcGIS Feature layer; while in Flex-Viewer environment the layer is ArcGIS Dynamic layer. Any hint will be helpful for us. Thanks a lot!
... View more
07-10-2014
12:36 PM
|
0
|
1
|
3438
|
POST
|
Or is there any link or resources that I can learn this? Thanks! I need to create a radio button to control the �??turn on/off�?? function of several layers. The ESRI sample below provides a Legacy codes, but what I need is AMD style. http://developers.arcgis.com/javascript/sandbox/sandbox.html?sample=layers_web_tiled Here is the code I build so far, radio button just can not show up in my �??toggle2�?? div. Any hints will be great help. Thanks! var selectLayers = [];
//river and feature4 are two layers I already created
selectLayers.push({ layer: rivers, title: "Rivers" });
selectLayers.push({ layer: feaLayer4, title: "Cities and Places" });
//var layerDiv = dojo.create("div");
arrayUtils.forEach(selectLayers, function (slayer) {
radioName = slayer.title;
alert("The Radio Button Name is " + radioName); //This is to test my radio button name is correct
var radioButton = new RadioButton({
"checked": slayer.layer.visible,
"name": "radioButton" + slayer.layer.name,
"value": slayer.layer.name
}); // new RadioButton() ends here
//Add Radio Button to the page
domConstruct.place(radioButton.domNode, "toggle2", "after");
var radioLabel = domConstruct.create('label', {
'for': radioButton.name,
innerHTML: radioName,
}, radioButton.domNode, "after");
domConstruct.place("<br/>", radioLabel, "after");
}); // Radio Button forEach( ) ends here
... View more
05-05-2014
06:29 AM
|
0
|
0
|
183
|
Title | Kudos | Posted |
---|---|---|
2 | 01-29-2014 12:34 PM | |
1 | 07-17-2014 08:20 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|