|
POST
|
Try changing "myModules.custommenu" to "myModules/custommenu"
... View more
02-24-2016
11:53 AM
|
1
|
1
|
996
|
|
POST
|
Like I mentioned in my previous reply. The order of the require and parameters must match. In you case it was not correct. Below is the correct require for you page. require([
"esri/map",
"esri/dijit/Scalebar",
"esri/layers/ArcGISDynamicMapServiceLayer",
"esri/toolbars/navigation",
"dojo/on",
"dojo/parser",
"esri/dijit/OverviewMap",
"dijit/registry",
"esri/tasks/QueryTask",
"esri/tasks/query",
"esri/symbols/SimpleMarkerSymbol",
"esri/InfoTemplate",
"dojo/_base/Color",
"dojo/keys",
"esri/config",
"esri/sniff",
"esri/SnappingManager",
"esri/dijit/Measurement",
"esri/layers/FeatureLayer",
"esri/renderers/SimpleRenderer",
"esri/tasks/GeometryService",
"esri/symbols/SimpleLineSymbol",
"esri/symbols/SimpleFillSymbol",
"dijit/TitlePane",
"dijit/form/CheckBox",
"dijit/Toolbar",
"dijit/form/Button",
"dijit/layout/BorderContainer",
"dijit/layout/ContentPane",
"dojo/domReady!"
], function (Map,
Scalebar,
ArcGISDynamicMapServiceLayer,
Navigation,
on,
parser,
OverviewMap,
registry,
QueryTask,
Query,
SimpleMarkerSymbol,
InfoTemplate,
Color,
keys,
esriConfig,
has,
SnappingManager,
Measurement,
FeatureLayer,
SimpleRenderer,
GeometryService,
SimpleLineSymbol,
SimpleFillSymbol) {
... View more
02-18-2016
06:11 AM
|
1
|
1
|
689
|
|
POST
|
Hello Saurabh, I dont think it matter what order you add a require as long as the require and parameters are in same order. If a module has a dependency on another module, it will get it with its own require. Thejus
... View more
02-17-2016
05:35 AM
|
0
|
3
|
3218
|
|
POST
|
// Create the map
mapMain = new Map("cpCenter", {
basemap: "satellite",
extent: "extentInitial"
}); you are passing the variable as string. you need it as below // Create the map
mapMain = new Map("cpCenter", {
basemap: "satellite",
extent: extentInitial
});
... View more
02-15-2016
08:22 AM
|
2
|
0
|
1713
|
|
POST
|
I have a application where I need to temporarily remove a graphic from the FeatureLayer, and be able to get it back again. I am using Layer.remove(graphic) or clear method, and refresh method does not get the removed graphic. Is there a way to force the FeatureLayer to get the features from service.
... View more
01-29-2016
11:39 AM
|
0
|
0
|
1694
|
|
POST
|
That's because I have changed the scope of the function. Change it to tglButton.set('label', 'Stop Editing'); and tglButton.set('label', 'Begin Editing'); or get the instance of ToggeButton and set the label.
... View more
01-21-2016
11:21 AM
|
1
|
1
|
1242
|
|
POST
|
Ok, now I understand what you mean. Change the below function in myEditor.js file. createEditButton: function (map) {
var tglButton = new ToggleButton({
showLabel: true,
label: 'Begin Editing',
}, "tglEditButton");
on(tglButton, 'change',lang.hitch(this, function (val) {
if (val) {
this.set('label', 'Stop Editing');
app.editEnabled = true;
map.infoWindow.hide();
var selected = featureLayer.getSelectedFeatures();
if(selected && selected.length > 0){
var graphic = selected[0];
this.activateToolbar(graphic, map);
}
} else {
this.set('label', 'Begin Editing');
app.editEnabled = false;
}
}));
}, The idea is to get the selected feature and setup the edit Toolbar when the graphic is already selected. I have not tested the code. Also you need to require dojo/_base/lang. Hope this helps.
... View more
01-21-2016
11:02 AM
|
0
|
0
|
3629
|
|
POST
|
You could Either use BaseMapGallery to create your own set of basemaps. BasemapGallery | API Reference | ArcGIS API for JavaScript or use esri/basemaps to push custom basemaps to a global collection. esri/basemaps | API Reference | ArcGIS API for JavaScript
... View more
01-21-2016
10:23 AM
|
1
|
1
|
2675
|
|
POST
|
What I see is, you click Enable Editbutton, which disables the InfoWindow/Popup click. Then click the Graphic, which selects the point, updates the attributes panel and enables edittoolbar. Then mouse down, drag the graphic and mouse up. I think its ideal flow. For the first click event to raise, you need to mouse up ( this event enables the edittoolbar). Then you need to press the mouse again to drag. I dont see any other way to reduce the user click. unless, you use mouse-down to select the feature, enable editor and drag it immediately. I am not sure it will be user-friendly.
... View more
01-21-2016
09:54 AM
|
0
|
0
|
2386
|
|
POST
|
I dont find any issue, with the application. I think it was resolved when you removed the line from setContent function. My be try refreshing the local browser cache it should work.
... View more
01-21-2016
09:35 AM
|
0
|
0
|
2387
|
|
POST
|
Is the Link you have provided a sample code or the application where the issue exist?
... View more
01-21-2016
09:30 AM
|
0
|
2
|
2387
|
|
POST
|
I just wanted to see if you were enabling the MapNavigation in it. As you mentioned, the issue occurs only when you use the template. It was just a thought.
... View more
01-21-2016
09:06 AM
|
0
|
0
|
2387
|
|
POST
|
Could you also share the code for "setPopupContent".
... View more
01-21-2016
08:49 AM
|
0
|
2
|
2387
|
|
POST
|
If you are not worrying about the licensing part. You can use any Tiled/Cached map service as a basemap. BasemapLayer | API Reference | ArcGIS API for JavaScript
... View more
01-21-2016
08:18 AM
|
1
|
6
|
2675
|
|
POST
|
Hello Tracy, In the myBufferTools.js, where you create the ToggleButton, In the onChange event you are just setting the visibility of the app.bufferLayer_c only and not for app.bufferLayer_p hence, the 'update_end' event is not being fired for that layer. if you change that then the other grid will also populate. Hope this was helpful. Thejus
... View more
12-17-2015
09:57 AM
|
0
|
1
|
1333
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 03-24-2017 07:15 AM | |
| 1 | 09-13-2016 06:27 AM | |
| 1 | 05-21-2015 08:06 AM | |
| 1 | 12-16-2015 05:43 AM | |
| 1 | 07-20-2015 09:33 AM |
| Online Status |
Offline
|
| Date Last Visited |
05-13-2026
09:55 AM
|