|
POST
|
Hi all I recompiled the AttributeAsssitant project and would liketo know how can I install it using a customized version of the loaded.config file. Does the file loaded.config gets created when I run "AttributeAssistant" in my case it does not work.
... View more
12-11-2013
10:27 AM
|
0
|
4
|
5020
|
|
POST
|
Esri has also training sessions in ArcGIS JavaScript
... View more
10-22-2013
09:19 AM
|
0
|
0
|
1151
|
|
POST
|
Hi all I need to add a feature layer to a map and give the option to the user to search by a Number field that indicates the work order number or incident number. How can I do that?
... View more
10-17-2013
03:37 PM
|
0
|
0
|
732
|
|
POST
|
Kpeter, I just created a map service and included one editable SDE layer for testing purposes. The I added it to the map pointing to my ArcGIS Server rest service.
... View more
10-17-2013
03:15 AM
|
0
|
0
|
1739
|
|
POST
|
Hi all, What template allows to query for an address or intersection and then for a layer by Feature ID. I would like to let the user search by address, intersection or folio. Thanks
... View more
10-16-2013
05:52 PM
|
0
|
0
|
2040
|
|
POST
|
Jonathan, I also have another question, could the Basic Viewer be added to the http://esri.github.io/#ActionScript,JavaScript Several other developers are using this viewer as a starting point of their JavaScript developments. Thanks
... View more
10-14-2013
06:54 PM
|
0
|
0
|
939
|
|
POST
|
Hi again, I do not understand!! I downloaded the Basic Viewer generated from the template. Because some js files are AMD style I assumed that the whole project was AMD. Does it mean that this code is legacy code and will not run soon? Are we going to get a new version with pure AMD? Going back to the topic of this post, could you please give me some samples of source code to add this type of buttons, panels, etc: Toolbar with the following buttons: o Previous Extent, Next Extent o Select By Rectangle, By Polygon, by Circle, o Buffer, o Network Tracing (VERY IMPORTANT) �?� Customize Base map toolbar, to show custom base maps instead of Esri base maps �?� popup results window showing the selection of several features o Layers list, add interactivity when check/uncheck layer maps refreshes. Currently I only get one layer per map service, can not check/uncheck layers inside a group �?� Multi search floating panel, search by address, intersection, folio, etc, Thanks Anytime you see "dojo.something", it generally means that is non-AMD. In the index file is the following code:
dojo.require("utilities.App");
dojo.require("templateConfig.commonConfig");
var i18n;
dojo.ready(function(){ ...
This indicates a non-AMD style application. I am speaking with you, as an employee of ESRI, attempting to help 😃 http://www.esri.com/careers/students/summer-internships/intern-profiles/intern-profile-web-design-development You said you had the Basic Viewer in AMD style and I wanted to see your code, because the viewer you linked is in legacy style, so buttons are added in a different way (it matters).
... View more
10-14-2013
12:21 PM
|
0
|
0
|
939
|
|
POST
|
Jon, In the index.html file there is a function declared this way: dojo.ready(function(){ i18n = dojo.i18n.getLocalization("esriTemplate","template"); This is the new style, the old style was: function init(){ dojo.require("utilities.app"); dojo.require("templateConfig.commonConfig"); .... //show map on load dojo.addOnLoad(init); which I found easier to code and understand. This post is about how to add buttons in the Esri Basic Viewer code generated by the template. This is NOT about AMD. Again if you need information about how the Basic Viewer was coded, talk with Esri directly.
... View more
10-14-2013
12:09 PM
|
0
|
0
|
2832
|
|
POST
|
This is the AMDified version of the Esri's JavaScript Basic Viewer: http://www.arcgis.com/apps/OnePane/basicviewer/index.html The code I added follows the existing code in the "layout.js" file, but if you take a look to the index.htm or other .js files they follow the AMD style. For a detailed explanation of why it was coded this way, please contact Esri directly. Regards
... View more
10-11-2013
06:14 PM
|
0
|
0
|
2832
|
|
POST
|
The answer: http://forums.arcgis.com/threads/94491-Extend-the-esri-JavaScript-BasicViewer-with-additional-buttons?p=336198#post336198
... View more
10-11-2013
05:37 AM
|
0
|
0
|
697
|
|
POST
|
Hi all, The question is how to add a button to the JavaScript Basic Viewer: http://www.arcgis.com/apps/OnePane/basicviewer/index.html More specifically how to add the Home Button: https://developers.arcgis.com/en/javascript/jssamples/widget_home.html This is how I added the button: From the sample https://developers.arcgis.com/en/javascript/jssamples/widget_home.html copy/paste the description of HomeButton Into the file: ..\css\layout.css #HomeButton {
position: absolute;
top: 95px;
left: 20px;
z-index: 50;
} Then copy/paste the tag "HomeButton" into index.html file
<div id="HomeButton"></div>
inside the Map Section <!-- Map Section -->
<div id="map" data-dojo-type="dijit.layout.ContentPane" data-dojo-props='region:"center"' dir="ltr">
<div id="HomeButton" class="HomeButton"></div>
<div id="logo" class="logo" style="display:none;">
<!--If a logo is specified in config section then the logo will be added
to the map-->
</div>
<!--Floating window that contains the measure dijit-->
<div id="floater">
<div id="measureDiv"></div>
</div>
<!--Floating window contains the time slider-->
<div id="timeFloater" style='display:none;'>
</div>
</div> Then declare the object HomeButton in the file ..\javascript\layout.js dojo.require("esri.dijit.HomeButton");
var homeButton;
�?�
dojo.connect(dijit.byId('map'), 'resize', resizeMap);
adjustPopupSize();
var layers = response.itemInfo.itemData.operationalLayers;
//constrain the extent
if (configOptions.constrainmapextent) {
var basemapExtent = map.getLayer(map.layerIds[0]).fullExtent.expand(1.5);
//create a graphic with a hole over the web map's extent. This hole will allow
//the web map to appear and hides the rest of the map to limit the visible extent to the webmap.
var clipPoly = new esri.geometry.Polygon(map.spatialReference);
clipPoly.addRing([
[basemapExtent.xmin, basemapExtent.ymin],
[basemapExtent.xmin, basemapExtent.ymax],
[basemapExtent.xmax, basemapExtent.ymax],
[basemapExtent.xmax, basemapExtent.ymin],
[basemapExtent.xmin, basemapExtent.ymin]
]);
//counter-clockwise to add a hole
clipPoly.addRing([
[webmapExtent.xmin, webmapExtent.ymin],
[webmapExtent.xmax, webmapExtent.ymin],
[webmapExtent.xmax, webmapExtent.ymax],
[webmapExtent.xmin, webmapExtent.ymax],
[webmapExtent.xmin, webmapExtent.ymin]
]);
var symbol = new esri.symbol.SimpleFillSymbol(esri.symbol.SimpleFillSymbol.STYLE_SOLID, new esri.symbol.SimpleLineSymbol(), new dojo.Color("white"));
var maxExtentGraphic = new esri.Graphic(clipPoly, symbol);
map.graphics.add(maxExtentGraphic);
}
// Add Home button
homeButton = new esri.dijit.HomeButton({
map: map,
id: 'HomeButton'
}, 'HomeButton');
homeButton.startup();
�?�.
Done! the button now is visible.
... View more
10-11-2013
05:29 AM
|
0
|
0
|
2832
|
|
POST
|
Hi, I am modifying the Basic viewer, and the code exported is already in AMD format: http://www.arcgis.com/apps/OnePane/basicviewer/index.html Where can I add a Home Button https://developers.arcgis.com/en/javascript/jssamples/widget_home.html or a Locator button: https://developers.arcgis.com/en/javascript/jssamples/widget_locate.html The code from Home and Locator buttons is very easy to uderstand , the issue is when I want to insert these buttons in the viewer, I do not see where. The social media template has already these buttons and it is written in AMD: http://www.arcgis.com/apps/SocialMedia/index.html Thanks
... View more
10-10-2013
04:39 PM
|
0
|
0
|
2832
|
|
POST
|
Yes I checked the samples and they are very clear!! If you try to add them to the JavaScript basic viewer it becomes very complicate. This template has a Home button but I do not know where it is coded in the source code http://www.arcgis.com/apps/StorytellingTextLegend/index.html And this is the template I am modifying to add the home button, it has onle a zoom In and Zoom Out buttons: http://www.arcgis.com/apps/OnePane/basicviewer/index.html Thanks
... View more
10-10-2013
10:31 AM
|
0
|
0
|
2832
|
|
POST
|
Hi all, I downloaded the JavaScript BasicViewer source code and I would like to add a few more buttons, for example the Home button, th Locator button, a select by rectangle button, a buffer button. Is there any place that explains where and how to add additional buttons. Thanks
... View more
10-10-2013
05:15 AM
|
0
|
13
|
6630
|
|
POST
|
Found that: http://www.bearpanther.com/2012/03/08/extendjsbasicviewer/ http://blogs.esri.com/esri/arcgis/2010/10/05/building-a-javascript-application-from-an-arcgis-com-template/
... View more
10-09-2013
06:22 PM
|
0
|
0
|
697
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 05-01-2026 12:34 PM | |
| 1 | 12-02-2022 08:17 AM | |
| 1 | 12-26-2025 05:02 AM | |
| 1 | 08-05-2025 04:28 AM | |
| 1 | 08-05-2025 04:33 AM |
| Online Status |
Online
|
| Date Last Visited |
5 hours ago
|