POST
|
I want to be able to view the polar regions without half of the earth in the darkness. Can the lighting model be changed? I don't see any property in environmnet.lighting that would control this.
... View more
07-29-2016
08:50 AM
|
0
|
1
|
1090
|
POST
|
Here is a jsbin link : JS Bin - Collaborative JavaScript Debugging 1) click Add points - this creates a graphics layer with 1000 points and adds it to the map 2) click Zoom to data - thsi zoosm to a area where teh data is 3) click Highlight - This iterates through all the graphics items and changes their symbol. Note that in the sceneview symbols don't change 4) click 2d/3d - This switches to a mapview . Note that same map with same graphics layer shows new symbols when viewed in mapView
... View more
03-19-2016
08:50 AM
|
0
|
0
|
884
|
POST
|
I am using v4.0 beta and there is no such method (I was looking for it!) . In v4 I believe that when properties change they send change events to registered listeners and I expected (or hoped...) that the change would bubble up to the GraphicsLayer (or LayerView? ) and it would refresh. Interestingly I just discovered that if I zoom it forces a re rendering of the graphics and the new symbol attributes are used (but a map resize does not cause this) Thanks, Clay
... View more
03-11-2016
01:56 PM
|
0
|
1
|
884
|
POST
|
I am trying to dynamically update the attributes of symbols of existing graphics object. I can iterate over my existing graphics objects and update the symbol attributes but my MapView does not display the updated objects. I even tried clearing the graphics layer and adding the updated graphics objects. Is there any way to force a redraw? My test code looks like this: function highlightTest(){
var highlightSymbol = new SimpleMarkerSymbol({
color: [0, 255, 0],
outline: new SimpleLineSymbol({
color: [0, 255, 255],
width: 2
})
});
var existingGraphics= pointLayer.graphics.clone();
pointLayer.clear();
existingGraphics.forEach(function(item, i){
item.symbol=highlightSymbol;
pointLayer.add(item);
});
} I suspect I am missing something....
... View more
03-11-2016
12:11 PM
|
0
|
6
|
3047
|
POST
|
Will there be an Add-In SDK that third party extensions to this?
... View more
01-22-2016
10:49 AM
|
1
|
2
|
2287
|
POST
|
I am trying to add a WMSLayer to a map initialized with an ESRI basemap. The WMS service I am trying to use supports EPSG 3857 but not 102100. I am creating my WMSLayer by passing a resourceInfo so I don't need to do any proxy. But the WMS layer is not being returned because it is always being requested in 102100. I have tried initializing my map with an extent set in 3857 and have assigned a 3857 spatialReference to my WMSLayer. Is there any way I can intercept the generated WMS call and replace 102100 with 3857? Or is there some other way to force the the WMS call to use 3857 rather than 102100? Here is my simple test code: <!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<!--The viewport meta tag is used to improve the presentation and behavior of the samples
on iOS devices-->
<meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no">
<title>Map with WMS</title>
<link rel="stylesheet" href="http://js.arcgis.com/3.7/js/dojo/dijit/themes/claro/claro.css">
<link rel="stylesheet" href="http://js.arcgis.com/3.7/js/esri/css/esri.css">
<style>
html, body { height: 100%; width: 100%; margin: 0; padding: 0; }
</style>
<script>var dojoConfig = {parseOnLoad: true};</script>
<script src="http://js.arcgis.com/3.7/"></script>
<script>
dojo.require("dijit.layout.BorderContainer");
dojo.require("dijit.layout.ContentPane");
dojo.require("esri.SpatialReference");
dojo.require("esri.map");
dojo.require("esri.layers.wms");
var map;
function init() {
var webMercator = new esri.SpatialReference(3857);
var extent = new esri.geometry.Extent(200000,7000000,1200000,10200000, webMercator ) ;
map = new esri.Map("map", {
basemap: "streets",
extent: extent
});
var layer1 = new esri.layers.WMSLayerInfo({name:"Quadrants",title:"Quadrants"});
var layer2 = new esri.layers.WMSLayerInfo({name:"Blocks",title:"Blocks"});
var resourceInfo = {
extent: new esri.geometry.Extent(200000,7000000,1200000,10200000, webMercator ) ,
layerInfos: [layer1,layer2],
version: "1.1.1",
};
var wmsLayer = new esri.layers.WMSLayer("http://npdwms.npd.no/npdwmsmap_WGS84.asp",
{
resourceInfo: resourceInfo,
visibleLayers: ["Quadrants","Blocks"],
spatialReference: webMercator
}
);
map.addLayers([wmsLayer]);
var content = [];
content.push("<b>Layers</b>:<ul>");
dojo.forEach(wmsLayer.layerInfos, function(layerInfo) {
content.push("<li>" + layerInfo.title + "</li>");
});
content.push("</ul>");
dojo.byId('details').innerHTML = content.join("");
}
dojo.ready(init);
</script>
</head>
<body class="claro">
<div id="content"
data-dojo-type="dijit.layout.BorderContainer"
data-dojo-props="design:'headline', gutters:true"
style="width: 100%; height: 100%; margin: 0;">
<div id="details"
data-dojo-type="dijit.layout.ContentPane"
data-dojo-props="region:'left', splitter:true"
style="overflow:auto; width:200px;" >
</div>
<div id="map"
data-dojo-type="dijit.layout.ContentPane"
data-dojo-props="region:'center'"
style="overflow:hidden;">
</div>
</div>
</body>
</html>
... View more
12-21-2013
03:43 AM
|
0
|
0
|
342
|
POST
|
I am trying to make the appearance of my add-in DockableWindow change according to whether it is docked left/right vs. top/bottom. Is there any means of getting an event callback when my window is docked and then determining the docking location? The standard UserControl events don't seem to work with this window. Clay
... View more
08-30-2010
01:02 PM
|
0
|
0
|
651
|
Title | Kudos | Posted |
---|---|---|
1 | 01-22-2016 10:49 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|