|
POST
|
I've searched for those boundaries and can't find any official reference to them. They might have been revised again. Have a look at the boundaries provided by the UN OCHA here: South Sudan - Administrative Boundaries - Humanitarian Data Exchange
... View more
12-04-2016
10:52 PM
|
1
|
0
|
5398
|
|
POST
|
Remove the onClick event from the prop attribute of the button and specify it as a seperate attribute: <div data-dojo-type="dijit/form/Button" id="tableButton" onClick="toggle_visibility('bott')">Show/Hide bottom table</div> Also place your "bott " element within the "content" div. Then change your toggle_visibility function to resize the map div (assuming that is what you want to happen): function toggle_visibility(id) {
var e = document.getElementById(id);
var s = document.getElementById(id + '_splitter');
var m = document.getElementById('map');
if (e.style.display == 'none') {
if (s) {
s.style.display = 'block';
e.style.display = 'block';
m.style.height = document.body.scrollHeight -240 + 'px'
}
} else {
if (s) {
s.style.display = 'none';
e.style.display = 'none';
m.style.height = document.body.scrollHeight - 70 + 'px'
}
}
}
... View more
12-01-2016
03:32 AM
|
0
|
3
|
3358
|
|
POST
|
Try these downloads: South Sudan shapefiles - Map East Africa Download | Global Administrative Areas
... View more
12-01-2016
02:55 AM
|
2
|
2
|
5398
|
|
POST
|
That's because the "plate" template has not been redefined in the list of templates for the "printer". So after each extent change, you also need to redefine the printer templates. You can define "printer" also as a global variable first. Try this: map.on('extent-change', function(){
plate.layoutOptions.customTextElements.centerLatLong = latLong;
plate.layoutOptions.customTextElements.centerXY = center;
printer.templates = [plate];
});
... View more
11-30-2016
09:52 PM
|
0
|
4
|
3626
|
|
POST
|
If you want permanent feature, you can use the COGO tools: Splitting lines proportionally—Help | ArcGIS for Desktop Make a copy of your line feature class, start editing it, run the proportional split from the COGO toolbar and then convert the new splite lines vertices to point features. Dan's example is probably better for your purpose.
... View more
11-30-2016
04:47 AM
|
0
|
0
|
1882
|
|
POST
|
So you want to draw a rectangle to select data and zoom to the selection or just zoom by rectangle? Have you looked at the RubberBandZoom property of the map? Map | API Reference | ArcGIS API for JavaScript 3.18
... View more
11-30-2016
01:45 AM
|
1
|
1
|
1935
|
|
POST
|
Are you working with a Feature Service or a Dynamic Map service layer? You will first need to create an event listener on the layer to determine if the user has clicked on the layer. Depending on the layer type, you must define the function for the layer click event - for Feature Layer you can use the geometry of the graphic feature directly and for Dynamic Services you probably need to do an Query or Identify Task (IdentifyTask | API Reference | ArcGIS API for JavaScript 3.18 ) first to retrieve the feature geometry. Then only can you use the map's setExtent function (Map | API Reference | ArcGIS API for JavaScript 3.18 ) to zoom to the extent of the portion map.setExtent(esri.graphicsExtent([clickGraphic])) .
... View more
11-29-2016
10:20 PM
|
2
|
0
|
1935
|
|
POST
|
You're right - you just need to define the "plate" variable outside of the current function scope, so jou could define it at the start of the main require function (var plate;) and remove the variable declaration within the handlePrintInfo function.
... View more
11-29-2016
10:03 PM
|
0
|
6
|
3626
|
|
POST
|
Yes, applying the addTo function directly to the indexed layer item should also work. It's just nice to have the item available as a short variable if you need to refer to it further down in the function again.
... View more
11-29-2016
09:47 PM
|
0
|
0
|
4380
|
|
POST
|
Great. Please mark the question as answered if it resolved your issue.
... View more
11-29-2016
05:14 AM
|
0
|
0
|
7825
|
|
POST
|
You are probably in Data View and need to switch to Layout View Displaying maps in data view and layout view—Help | ArcGIS for Desktop
... View more
11-29-2016
03:37 AM
|
2
|
2
|
7825
|
|
POST
|
Instead of creating a variable with the name of each data layer, rather create a list of layers with the layer name as an index e.g. var maplayers = [];
maplayers["lung"] = new L.GeoJSON(data...
maplayers["throat"] = new L.GeoJSON(data... Then when clicking on the checkbox you can use the string value to activate the indexed layer. function updateLayerVis(a){
var lyr = maplayers[a];
lyr.addTo(map);
}
... View more
11-28-2016
09:59 PM
|
1
|
2
|
4380
|
|
POST
|
According to the API documentation (Polygon | API Reference | ArcGIS API for JavaScript 3.18 | Polygon | API Reference | ArcGIS API for JavaScript 4.1 ) there does not seem to be a way of constructing a polygon directly from the SQL WKT. Parse and plot - should be easy enough.
... View more
11-28-2016
09:47 PM
|
0
|
0
|
1315
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 03-22-2024 12:37 AM | |
| 1 | 10-02-2025 10:28 AM | |
| 1 | 09-17-2024 12:29 AM | |
| 1 | 03-15-2024 11:33 AM | |
| 1 | 03-13-2024 11:20 PM |
| Online Status |
Offline
|
| Date Last Visited |
06-02-2026
12:31 AM
|