|
POST
|
I have set up a map template for one of my maps that works really well. One issue i'm trying to resolve is my map runs a tool that generates some simple statistics and displays them as a table in the TOC. I'd like those values to get passed into the print template and I'm not sure how to do that. I know there's the authorText, copyrightText and titleText values that I can populate and pass across and then use dynamic text box's and those do work but the issue I have is I can't seem to get a long string to format on the print template side so that it displays as follows... Number of projects: 4 Total Ac Upland: 56 Total Ac Wetland: 73 Secured Ac: 2 Influence Ac: 6 Total $: 1234 I can pass across a string like "Number of projects: 4,Total Ac: 56,Total $: 1234" but how do format the dynamic text to add a line return at each "," ? Failing that can I pass over other dynamic text like <dyn type="user"/> ?
... View more
01-21-2014
10:20 AM
|
0
|
4
|
1056
|
|
POST
|
I�??ve been trying to get a select by buffer tool working as we are often asked to provide simple mapping products that are a summary of our projects that fall within �??X�?� miles of that location. Anyway I�??ve added the buffer tool to a simple map and it works nicely in that you enable the tool, enter a distance and then click the map to buffer. What I�??m having problems with is that once I get the buffer drawn I need to use that geometry to intersect the points layer and I can�??t seem to get that part working. What am I doing wrong? The buffer code is at the very bottom of the index page. http://maps.ducks.ca/buffer/
... View more
12-16-2013
07:46 AM
|
0
|
9
|
2306
|
|
POST
|
That still doesn't seem to resolve the issue. I copied the code I am using now to dropbox. https://dl.dropboxusercontent.com/u/14069182/index.zip
... View more
11-07-2013
11:21 AM
|
0
|
0
|
1443
|
|
POST
|
If I use registry.byId it returns an undefined value. If I switch it to dom.byId I get the div returned but the measurement.startup(); doesn't get run.
console.log(dom.byId('measureTab'));
on.once(dom.byId('measureTab'), 'show', function() {
alert("Measure!");
measurement.startup();
}); For example if I use the above code I get the div HTML code in the console window but the alert never fires.
... View more
11-07-2013
08:55 AM
|
0
|
0
|
1443
|
|
POST
|
That solves that error but it still comes back with the initial error. I've swapped out the URLs for a public map service I have running so here's the whole code if you care to take a look (it won't load as dropbox won't let it load dojo but I couldn't paste the code here either as it's too long). https://dl.dropboxusercontent.com/u/14069182/index.html
... View more
11-06-2013
01:20 PM
|
0
|
0
|
1443
|
|
POST
|
Thanks! But now I get this error
ReferenceError: on is not defined
... View more
11-06-2013
12:00 PM
|
0
|
0
|
1443
|
|
POST
|
I am trying to build a ERSI webmap using the 3.7 API and dojo and all has been going well until I tried to get the measure tool working. I have an accordion content view on the left side and I'm trying to push the measure tool into that DIV but I'm getting the following dojo error Error: Tried to register widget with id==dijit_layout_ContentPane_1 but that id is already registered http://js.arcgis.com/3.7/ Line 1396 If I place the measure div outside the Accordion section it works fine but that's not ideal. I think it is the way this tool is natively set to be wrapped in its own container and by default builds a Contentpane for it...but how do I get around that?
var measurement = new esri.dijit.Measurement({
map: app.map
}, dojo.byId('measurement'));
measurement.startup();
<div data-dojo-type="dijit.layout.ContentPane" id="leftPane" data-dojo-props="region:'left'">
<!-- start AccordionContainer -->
<div data-dojo-type="dijit/layout/AccordionContainer" data-dojo-props="minSize:20, region:'leading', splitter:true" style="width: 300px;" id="leftAccordion">
<div data-dojo-type="dijit/layout/AccordionPane" title="Layers">
<div id="layerToggle" selected="true">
Toggle Layers: <br />
</div>
</div>
<div data-dojo-type="dijit/layout/AccordionPane" title="Legend">
<div id="legendDiv"></div>
</div>
<div data-dojo-type="dijit/layout/AccordionPane" title="Query">
</div>
<div data-dojo-type="dijit/layout/AccordionPane" title="Print">
<div>Select a print template.</div>
<div id="print_button"></div>
</div>
<div data-dojo-type="dijit/layout/AccordionPane" title="Measurement">
<div id="measurement"></div>
</div>
</div>
<!-- end AccordionContainer -->
</div>
... View more
11-06-2013
11:15 AM
|
0
|
9
|
4346
|
|
POST
|
I am looking into the possibility of offering staff an online edit tool to replace our current ArcGIS desktop work flow that many staff are having problems learning. The basic editor that is offered in the JS or Flex viewer offers most of what I require but I haven't been able to find a solution to clipping one polygon with another. Essentially I need to be able to draw a bounding box around an area and then draw smaller polygons over top that would be clipped out of the underlying bounding polygon. Think clipping a house out of a yard for example. Can this be done?
... View more
09-25-2013
07:46 AM
|
0
|
1
|
637
|