|
POST
|
Use
dijit.byId("cboTipList").set("store", store);
To specify your store for your dijit. This was a Dojo-related change that happened when we moved from 1.6 to 1.7 (this happened at JS API version 3.0).
... View more
09-24-2012
07:26 AM
|
0
|
0
|
1057
|
|
POST
|
There are a couple of examples floating around showing how to draw circles. Two that I was talking about just yesterday are the print dijit sample and this fiddle: http://jsfiddle.net/mRDxw/ For the jsfiddle example, click once to set the circle center, click again to set the radius. You can drag both the center and point on the circle to change the size of the circle or move it.
... View more
09-21-2012
12:28 PM
|
0
|
0
|
2018
|
|
POST
|
It would be better if you started a new thread instead of piggy-backing on this one since it's already been answered. Can you start a new thread, and in that thread, post the code for the page that is generating that error.
... View more
09-21-2012
08:13 AM
|
0
|
0
|
3658
|
|
POST
|
What do you see in the firebug console? If you could post a complete, simple page that would be helpful.
... View more
09-21-2012
06:41 AM
|
0
|
0
|
1983
|
|
POST
|
This is helpful in explaining WKT: http://webhelp.esri.com/arcgisserver/9.3/java/index.htm#geodatabases/the_ogc-607957855.htm What about my second bullet point? What happens when you add a dynamic map service layer to your map before attempting to add a feature layer?
... View more
09-21-2012
05:46 AM
|
0
|
0
|
1983
|
|
POST
|
What does your call to closestFacilityTask.solve() look like? The code you posted looks like it should work. There's also the Find Closest Facilities sample that you can use as an example. Also confirm that map.getLayer("featureLayerYard") returns your feature layer.
... View more
09-20-2012
07:44 PM
|
0
|
0
|
1589
|
|
POST
|
I would recommend adding this CSS to stop your loading icon from pushing the map around:
#loadingImg {
position: absolute;
z-index: 10;
}
... View more
09-20-2012
02:35 PM
|
0
|
0
|
1426
|
|
POST
|
Are you talking about doing an Identify against and Image Server ImageService?
... View more
09-20-2012
02:29 PM
|
0
|
0
|
867
|
|
POST
|
Before getting too deep, one thing to establish is that features in a feature layer are graphics. That is, featureLayer.graphics is an array of esri.Graphic objects, the same way that graphicsLayer.graphics is an array of esri.Graphic objects. Also, you should specify an ID for a layer when you create it. Instead of:
var YardGraphicsLayer = new esri.layers.GraphicsLayer();
YardGraphicsLayer.id = 'YardGraphic';
Try:
var YardGraphicsLayer = new esri.layers.GraphicsLayer({ "id": "YardGraphic" });
Finally, when a graphic is clicked, a reference to that graphic is available as a property on the event object. For instance, to access a graphic that is clicked, do this:
dojo.connect(graphicsLayer, "onClick", function(evt) {
console.log("clicked graphic: ", evt.graphic);
});
... View more
09-20-2012
02:25 PM
|
0
|
0
|
1589
|
|
POST
|
Two things: �??is that a valid wkt for a spatial reference? what spatial reference are you trying to use? �??you have to add a dynamic or tiled map service to a map before you can add a feature layer
... View more
09-20-2012
12:22 PM
|
0
|
0
|
1983
|
|
POST
|
Glad you got it figured out. I'm surprised you didn't see any errors. Usually, when requests are failing due to the URL being too large, you see this message in the browser's console: esri.config.defaults.io.proxyUrl is not set. Along with several errors. Take a look at this sample on jsfiddle that tries to buffer a large polygon: http://jsfiddle.net/xnWQC/
... View more
09-20-2012
12:17 PM
|
0
|
0
|
1592
|
|
POST
|
Can you post a simple test page that shows the problem?
... View more
09-20-2012
08:22 AM
|
0
|
0
|
1592
|
|
POST
|
What is the error when you specify more than seven stops? Honestly, you'll probably be able to get a faster answer by contacting tech support. Can you open a ticket with them?
... View more
09-20-2012
06:39 AM
|
0
|
0
|
1592
|
|
POST
|
This works for me in Chrome:
<!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" />
<!--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></title>
<link rel="stylesheet" href="http://serverapi.arcgisonline.com/jsapi/arcgis/3.1/js/dojo/dijit/themes/claro/claro.css">
<link rel="stylesheet" href="http://serverapi.arcgisonline.com/jsapi/arcgis/3.1/js/esri/dijit/css/Popup.css">
<style>
#map{
padding:0;
}
</style>
<script>var dojoConfig = {parseOnLoad: true};</script>
<script src="http://serverapi.arcgisonline.com/jsapi/arcgis/3.1/"></script>
<script>
dojo.require("dijit.layout.BorderContainer");
dojo.require("dijit.layout.ContentPane");
dojo.require("esri.map");
dojo.require("esri.dijit.Popup");
var map;
function init() {
var initExtent = new esri.geometry.Extent({
"xmin": -9270392,
"ymin": 5247043,
"xmax": -9269914,
"ymax": 5247401,
"spatialReference": {
"wkid": 102100
}
});
//setup the popup window
var popup = new esri.dijit.Popup({
fillSymbol: new esri.symbol.SimpleFillSymbol(esri.symbol.SimpleFillSymbol.STYLE_SOLID, new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID, new dojo.Color([255, 0, 0]), 2), new dojo.Color([255, 255, 0, 0.25]))
}, dojo.create("div"));
map = new esri.Map("map", {
infoWindow: popup,
extent: initExtent,
logo: false,
slider: false,
wrapAround180: true
});
dojo.connect(map, "onLoad", mapReady);
var basemap = new esri.layers.ArcGISTiledMapServiceLayer("http://server.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer");
map.addLayer(basemap);
var landBaseLayer = new esri.layers.ArcGISDynamicMapServiceLayer("http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/BloomfieldHillsMichigan/Parcels/MapServer");
map.addLayer(landBaseLayer);
}
function mapReady(map) {
//resize the map when the browser resizes
dojo.connect(window, 'resize', map, map.resize);
}
dojo.ready(init);
</script>
</head>
<body class="claro">
<div style="border-style: none solid solid solid; border-width: thin; border-color: #0099cc; width:345px; height: 281px">
<div style="width:345px; height:30px; overflow:hidden; z-index: -1; color: #FFFFFF; font-style: normal; font-family: Cambria; font-weight: bold; font-size: medium; " title="GIS Map Control">
GIS Map Control
</div>
<div id="map" style="padding:0; width: 345px; height: 251px;position: relative; z-index:0;"></div>
</div>
</body>
</html>
... View more
09-18-2012
08:16 AM
|
0
|
0
|
761
|
|
POST
|
Those are the platforms that we test on as they comprise the large majority of the smart phone market. What platform are you using?
... View more
09-18-2012
08:00 AM
|
0
|
0
|
884
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 01-23-2012 07:54 AM | |
| 1 | 05-28-2010 08:31 AM | |
| 1 | 11-12-2012 08:12 AM | |
| 3 | 02-23-2012 10:57 AM | |
| 1 | 06-27-2011 08:51 AM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:23 AM
|