|
POST
|
see http://doc.arcgis.com/en/marketplace/provider/faq.htm
... View more
10-29-2013
02:53 AM
|
1
|
0
|
1099
|
|
POST
|
try and see http://forums.arcgis.com/threads/83066-Failed-to-configure-the-server-machine...not-a-local-server-machine
... View more
10-25-2013
10:23 AM
|
0
|
0
|
904
|
|
POST
|
try and see http://support.esri.com/cn/knowledgebase/techarticles/detail/40676
... View more
10-24-2013
10:49 PM
|
0
|
0
|
1521
|
|
POST
|
see this http://stackoverflow.com/questions/9726576/system-web-httpcontext-current-request-userhostaddress
... View more
10-21-2013
07:27 AM
|
0
|
0
|
1347
|
|
POST
|
Hi Richard, are you sure that see IP correct? Peraphs in request token arcgisonline see an IP and in check token see another ip.
... View more
10-21-2013
02:28 AM
|
0
|
0
|
1347
|
|
POST
|
Ok, thank you. In your print screen I have seen error 403 HTTP and I think that it can be related at firewall.
... View more
10-11-2013
10:16 AM
|
0
|
0
|
3922
|
|
POST
|
Hi Giorgio, I have tried with code scratch javascript and it prints. Insert in prompt your BingKey. see in fiddler if your called to print in sl is equal at this page js. If it is equal you need check in silverlight/api arcgis sl ...
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=7, IE=9, IE=10">
<meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no">
<title></title>
<link rel="stylesheet" href="http://js.arcgis.com/3.7/js/dojo/dijit/themes/nihilo/nihilo.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;
}
body{
background-color: #fff; overflow:hidden;
font-family: sans-serif;
}
label {
display: inline-block;
padding: 5px 5px 0 5px;
font-weight: 400;
font-size: 12pt;
}
.button {
width: 100%;
margin: 3px auto;
text-align: center;
}
#header {
padding-top: 4px;
padding-right: 15px;
color: #444;
font-size:16pt; text-align:right;font-weight:bold;
height:55px;
background: #fff;
border-bottom: 1px solid #444;
}
#subheader {
font-size:small;
color: #444;
text-align:right;
padding-right:20px;
}
#header, #subheader {
text-shadow: 1px 1px 1px #cee1f0;
filter: dropshadow(color=#cee1f0, offx=1, offy=1);
}
#rightPane{
margin: 0;
padding: 10px;
background-color: #fff;
color: #421b14;
width: 180px;
}
.ds { background: #000; overflow: hidden; position: absolute; z-index: 2; }
#ds-h div { width: 100%; }
#ds-l div, #ds-r div { height: 100%; }
#ds-r div { right: 0; }
#ds .o1 { filter: alpha(opacity=10); opacity: .1; }
#ds .o2 { filter: alpha(opacity=8); opacity: .08; }
#ds .o3 { filter: alpha(opacity=6); opacity: .06; }
#ds .o4 { filter: alpha(opacity=4); opacity: .04; }
#ds .o5 { filter: alpha(opacity=2); opacity: .02; }
#ds .h1 { height: 1px; }
#ds .h2 { height: 2px; }
#ds .h3 { height: 3px; }
#ds .h4 { height: 4px; }
#ds .h5 { height: 5px; }
#ds .v1 { width: 1px; }
#ds .v2 { width: 2px; }
#ds .v3 { width: 3px; }
#ds .v4 { width: 4px; }
#ds .v5 { width: 5px; }
/* make all dijit buttons the same width */
.dijitButton .dijitButtonNode, #drawingWrapper, #printButton {
width: 160px;
}
</style>
<script src="http://js.arcgis.com/3.7/"></script>
<script>
var app = {};
app.map = null, app.toolbar = null, app.tool = null; app.symbols = null, app.printer = null;
require([
"esri/map", "esri/toolbars/draw", "esri/dijit/Print",
"esri/layers/ArcGISTiledMapServiceLayer", "esri/layers/ArcGISDynamicMapServiceLayer",
"esri/symbols/SimpleMarkerSymbol", "esri/symbols/SimpleLineSymbol",
"esri/symbols/SimpleFillSymbol", "esri/graphic",
"esri/config",
"dojo/_base/array", "dojo/_base/Color", "dojo/parser",
"dojo/query", "dojo/dom", "dojo/dom-construct",
"dijit/form/CheckBox", "dijit/form/Button", "esri/virtualearth/VETiledLayer",
"dijit/layout/BorderContainer", "dijit/layout/ContentPane", "dojo/domReady!"
], function(
Map, Draw, Print,
ArcGISTiledMapServiceLayer, ArcGISDynamicMapServiceLayer,
SimpleMarkerSymbol, SimpleLineSymbol,
SimpleFillSymbol, Graphic,
esriConfig,
arrayUtils, Color, parser,
query, dom, domConstruct,
CheckBox, Button,VETiledLayer
) {
parser.parse();
esriConfig.defaults.io.proxyUrl = "/proxy";
app.map = new Map("map", {
center: [-90.733, 30.541],
zoom: 8
});
app.map.on("load", function() {
app.toolbar = new Draw(app.map);
app.toolbar.on("draw-end", addToMap);
});
// print dijit
app.printer = new Print({
map: app.map,
url: "http://sampleserver6.arcgisonline.com/arcgis/rest/services/Utilities/PrintingTools/GPServer/Export%20Web%20Map%20Task"
}, dom.byId("printButton"));
app.printer.startup();
veTileLayer = new VETiledLayer({
bingMapsKey: prompt("Please enter your bing maps key"),
mapStyle: esri.virtualearth.VETiledLayer.MAP_STYLE_AERIAL
});
app.map.addLayer(veTileLayer);
// add census boundary dyn map svc
var dynUrl = "http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Demographics/ESRI_Census_USA/MapServer";
var dynLayer = new ArcGISDynamicMapServiceLayer(dynUrl, { "id": "Boundaries" });
app.map.addLayer(dynLayer);
// create a check box for each map layer
arrayUtils.forEach(["Boundaries", "Ocean"], function(id) {
new CheckBox({
id: "cb_" + id,
name: "cb_" + id,
checked: true,
onChange: function(bool) {
bool ?
app.map.getLayer(this.id.split("_")[1]).show() :
app.map.getLayer(this.id.split("_")[1]).hide();
}
}, domConstruct.create("input", {
id: "lyr_" + id
})).placeAt(dom.byId("layerToggle"));
// create a label for the check box
var label = domConstruct.create('label', {
"for": "cb_" + id,
"innerHTML": id
});
domConstruct.place(label, dom.byId("layerToggle"));
domConstruct.place(domConstruct.create("br"), dom.byId("layerToggle"));
});
// set up symbols for the various geometry types
app.symbols = {};
app.symbols.point = new SimpleMarkerSymbol("square", 10, new SimpleLineSymbol(), new Color([0, 255, 0, 0.75]));
app.symbols.polyline = new SimpleLineSymbol("solid", new Color([255, 128, 0]), 2);
app.symbols.polygon = new SimpleFillSymbol().setColor(new Color([255,255,0,0.25]));
app.symbols.circle = new SimpleFillSymbol().setColor(new Color([0, 0, 180, 0.25]))
// find the divs for buttons
query(".drawing").forEach(function(btn) {
var button = new Button({
label: btn.innerHTML,
onClick: function() {
activateTool(this.id);
}
}, btn);
});
function activateTool(type) {
app.tool = type.replace("freehand", "");
app.toolbar.activate(type);
app.map.hideZoomSlider();
}
function addToMap(evt) {
app.toolbar.deactivate();
app.map.showZoomSlider();
var graphic = new Graphic(evt.geometry, app.symbols[app.tool]);
app.map.graphics.add(graphic);
}
});
</script>
</head>
<body class="nihilo">
<div id="mainWindow"
data-dojo-type="dijit/layout/BorderContainer"
data-dojo-props="design:'headline',gutters:false"
style="width: 100%; height: 100%; margin: 0;">
<div id="header"
data-dojo-type="dijit/layout/ContentPane"
data-dojo-props="region:'top'">
Print Dijit: Out of the Box Printing for the ArcGIS API for JavaScript
<div id="subheader">Requires ArcGIS Server 10.1</div>
</div>
<div id="map" class="shadow"
data-dojo-type="dijit/layout/ContentPane"
data-dojo-props="region:'center'">
<!-- drop shadow divs -->
<div id="ds">
<div id="ds-h">
<div class="ds h1 o1"></div>
<div class="ds h2 o2"></div>
<div class="ds h3 o3"></div>
<div class="ds h4 o4"></div>
<div class="ds h5 o5"></div>
</div>
<div id="ds-r">
<div class="ds v1 o1"></div>
<div class="ds v2 o2"></div>
<div class="ds v3 o3"></div>
<div class="ds v4 o4"></div>
<div class="ds v5 o5"></div>
</div>
</div> <!-- end drop shadow divs -->
</div>
<div id="rightPane"
data-dojo-type="dijit/layout/ContentPane"
data-dojo-props="region:'right'">
<div id="printButton"></div>
<hr />
<div id="drawingWrapper">
Add some graphics:
<div id="point" class="drawing">Point</div>
<div id="freehandpolyline" class="drawing">Freehand Polyline</div>
<div id="freehandpolygon" class="drawing">Freehand Polygon</div>
<div id="circle" class="drawing">Circle</div>
</div>
<hr />
<div id="layerToggle">
Toggle Layers: <br />
<!-- checkbox and labels inserted programmatically -->
</div>
</div>
</div>
</body>
</html>
... View more
10-10-2013
02:54 AM
|
0
|
0
|
955
|
|
POST
|
Have you details with level verbose in log arcgis server? see also log event viewer windows
... View more
10-09-2013
06:23 AM
|
0
|
0
|
2109
|
|
POST
|
Stephany, have you tried restart the machine?Do try also create a new connection to arcgis server from arcmap on a new user publisher. have you further info in log ags?
... View more
10-09-2013
06:21 AM
|
0
|
0
|
5584
|
|
POST
|
Have you tried with a new simple soe and see if you have the same error? when have you installed the arcgis server have you flag .net extension support?
... View more
10-09-2013
05:48 AM
|
0
|
0
|
1553
|
|
POST
|
here https://developers.arcgis.com/en/javascript/jssamples/#search/service area you can see some samples on service area see this code: set params.outputLines = esri.tasks.NAOutputLine.TRUE_SHAPE; and visualize lines <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=7, IE=9, IE=10"> <!--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>Basic Service Area with Slider</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> body,html,#main{margin:0;padding:0;height:100%;width:100%;} </style> <script>var dojoConfig = { parseOnLoad: true };</script> <script src="http://js.arcgis.com/3.7/"></script> <script> dojo.require("esri.map"); dojo.require("esri.tasks.servicearea"); dojo.require("dijit.dijit"); dojo.require("dijit.layout.BorderContainer"); dojo.require("dijit.layout.ContentPane"); dojo.require("dijit.form.HorizontalSlider"); dojo.require("dijit.form.HorizontalRuleLabels"); dojo.require("dijit.form.HorizontalRule"); var map, serviceAreaTask, params, clickpoint; function init() { //This sample requires a proxy page to handle communications with the ArcGIS Server services. You will need to //replace the url below with the location of a proxy on your machine. See the 'Using the proxy page' help topic //for details on setting up a proxy page. esri.config.defaults.io.proxyUrl = "/proxy"; map = new esri.Map("map", { basemap: "streets", center: [-122.447, 37.781], zoom: 15 }); dojo.connect(map, "onClick", mapClickHandler); params = new esri.tasks.ServiceAreaParameters(); params.defaultBreaks= [1]; params.outSpatialReference = map.spatialReference; params.returnFacilities = false; params.outputLines = esri.tasks.NAOutputLine.TRUE_SHAPE; serviceAreaTask = new esri.tasks.ServiceAreaTask("http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Network/USA/NAServer/Service Area"); dojo.connect(dijit.byId("hslider"), "onChange", updateHorizontalLabel); updateHorizontalLabel(); } // Create function that updates label when changed function updateHorizontalLabel() { // Get access to nodes/widgets we need to get/set values var hSlider = dijit.byId("hslider"); var label = dojo.byId("decValue"); // Update label label.innerHTML = hSlider.get("value"); params.defaultBreaks = [hSlider.value/60]; if (typeof clickpoint != 'undefined') { mapClickHandler(clickpoint); }; } function mapClickHandler(evt) { clickpoint = evt; map.graphics.clear(); //clear existing graphics //define the symbology used to display the results and input point var pointSymbol = new esri.symbol.SimpleMarkerSymbol( esri.symbol.SimpleMarkerSymbol.STYLE_DIAMOND, 20, new esri.symbol.SimpleLineSymbol( esri.symbol.SimpleLineSymbol.STYLE_SOLID, new dojo.Color([88,116,152]), 2 ), new dojo.Color([88,116,152,0.45]) ); var inPoint = new esri.geometry.Point(evt.mapPoint.x,evt.mapPoint.y,map.spatialReference); var location = new esri.Graphic(inPoint,pointSymbol); map.graphics.add(location); var features = []; features.push(location); var facilities = new esri.tasks.FeatureSet(); facilities.features = features; params.facilities = facilities; //solve serviceAreaTask.solve(params,function(solveResult){ var result = solveResult; var serviceAreaSymbol = new esri.symbol.SimpleFillSymbol( esri.symbol.SimpleFillSymbol.STYLE_SOLID, new esri.symbol.SimpleLineSymbol( esri.symbol.SimpleLineSymbol.STYLE_SOLID, new dojo.Color([232,104,80]), 2 ), new dojo.Color([232,104,80,0.25]) ); var polygonSymbol = new esri.symbol.SimpleFillSymbol(esri.symbol.SimpleFillSymbol.STYLE_SOLID, new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID, new dojo.Color([232,104,80]), 2),new dojo.Color([232,104,80,0.25])); dojo.forEach(solveResult.serviceAreaPolygons, function(serviceArea){ serviceArea.setSymbol(polygonSymbol); map.graphics.add(serviceArea); }); dojo.forEach(solveResult.serviceAreaPolylines, function(g) { var outline = new esri.symbol.SimpleLineSymbol().setWidth(2); g.setSymbol(outline); map.graphics.add(g); } ); },function(err){ console.log(err.message); }); } dojo.ready(init); </script> </head> <body class="claro"> <div data-dojo-type="dijit.layout.BorderContainer" data-dojo-props="design:'headline', gutters:false" style="width:100%;height:100%;margin:0px;"> <div data-dojo-type="dijit.layout.ContentPane" data-dojo-props="region:'top'"> <b>Click to find the service area polygon</b> <div style="width: 400px; margin: 10px"> <!-- create rules and labels above horizontal slider --> <ol data-dojo-type="dijit.form.HorizontalRuleLabels" data-dojo-props=" container: 'topDecoration', style: 'height: 1.2em; font-weight: bold; margin: 0 12px;'"> <li>0</li> <li>0:20</li> <li>0:40</li> <li>1:00</li> <li>1:20</li> <li>1:40</li> <li>2:00</li> </ol> <div data-dojo-type="dijit.form.HorizontalRule" data-dojo-props=" container: 'topDecoration', count: 7, style: 'height: 5px; margin: 0 12px;'"> </div> <input id="hslider" value="60" type="range" data-dojo-type="dijit.form.HorizontalSlider" data-dojo-props=" minimum: 0, maximum: 120, showButtons: false, discreteValues: 25"> <div style="padding-top: 10px; text-align: center;">Travel time: <strong id="decValue"></strong> seconds</div> </div> </div> <div id="map" dojotype="dijit.layout.ContentPane" data-dojo-props="region:'center'"></div> </div> </body> </html>
... View more
10-09-2013
01:38 AM
|
0
|
0
|
1626
|
|
POST
|
I have fixed a lot of errors. Now you can continue on this code ...
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=7, IE=9, IE=10"/>
<meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no"/>
<link rel="stylesheet" href="http://js.arcgis.com/3.6/js/dojo/dijit/themes/claro/claro.css"/>
<link rel="stylesheet" href="http://js.arcgis.com/3.6/js/esri/css/esri.css"/>
<script src="http://js.arcgis.com/3.6/" type="text/javascript"></script>
<title>Routing</title>
<style type="text/css">
html, body, #map
{
height: 100%;
margin: 0;
padding: 0;
}
</style>
<script type="text/javascript">
var map, serviceAreaTask, params, routeparams, routeTask;
require([
"dojo/_base/Color",
"esri/map",
"esri/graphic",
"esri/symbols/SimpleMarkerSymbol",
"esri/symbols/SimpleLineSymbol",
"esri/tasks/FeatureSet",
"esri/tasks/RouteTask",
"esri/tasks/RouteParameters",
"esri/tasks/RouteResult",
"dojo/domReady!"
],
function (Color, Map, Graphic, SimpleMarkerSymbol, SimpleLineSymbol, FeatureSet, RouteTask, RouteParameters, RouteResult) {
//esriConfig.defaults.io.proxyUrl = "/proxy";
map = Map("map", {
basemap: "streets",
center: [-86.18, 40.22],
zoom: 16
});
routeparams = new RouteParameters();
routeparams.attributeParameterValues = [{ attributeName: "Time", parameterName: "Speed class 13", value: "10"}];
routeparams.outSpatialReference = map.SpatialReference;
routeparams.returnRoutes = true;
routeparams.returnStops = true;
routeparams.stops = new FeatureSet();
routeTask = new RouteTask("http://tasks.arcgisonline.com/ArcGIS/rest/services/NetworkAnalysis/ESRI_Route_NA/NAServer/Route");
map.on("click", showRoute);
function showRoute(evt) {
console.log("click");
//map.graphics.clear();
var stopSymbol = new SimpleMarkerSymbol(SimpleMarkerSymbol.STYLE_CROSS,
20,
new SimpleLineSymbol(
SimpleLineSymbol.STYLE_SOLID,
new Color([89, 95, 35]), 2
),
new Color([130, 159, 83, 0.40])
);
var g = new Graphic(evt.mapPoint, stopSymbol);
map.graphics.add(g);
routeparams.stops.features.push(g);
if (map.graphics.graphics.length != 2) {
return;
}
routeTask.solve(routeparams, function (solveRoute) {
var lineRoute = new SimpleLineSymbol(SimpleLineSymbol.STYLE_DASH, new Color([254, 0, 0]), 3);
dojo.forEach(solveRoute.routeResults, function (routeResult) {
var g = routeResult.route;
g.setSymbol(lineRoute);
map.graphics.add(g);
});
});
}
});
</script>
</head>
<body class="claro">
<div id="map">
</div>
</body>
</html>
... View more
10-08-2013
10:38 AM
|
0
|
0
|
1626
|
|
POST
|
Hi Matthias, I have already updated (2.3.1) but I also haven't errors with 2.3.0. Have you the error when you open the file 3ws?
... View more
10-07-2013
01:23 AM
|
0
|
0
|
3922
|
|
POST
|
Here I put a demo with lake water shader created dinamically from soe arcgis server. In this demo I create a skyline: click on a point and click 'generate skyline' and waiting about 60sec then the link of scene is shown in a toaster (bottom-dx). http://sit2.sistemigis.it/js/skylinevco/
... View more
10-04-2013
02:46 AM
|
0
|
0
|
3922
|
|
POST
|
Good news: IE11 supports WebGL and popular library webgl trees.js http://msdn.microsoft.com/it-it/library/ie/bg182648(v=vs.85).aspx
... View more
10-04-2013
02:38 AM
|
0
|
0
|
2658
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 06-20-2024 11:20 AM | |
| 1 | 05-25-2017 10:11 AM | |
| 1 | 06-20-2023 12:09 AM | |
| 1 | 10-14-2022 05:14 AM | |
| 1 | 06-14-2023 02:00 AM |
| Online Status |
Online
|
| Date Last Visited |
34m ago
|