|
POST
|
I wrote my own map control. Did you start from scratch or are you wrapping esri.Map? If I use the scroll/zoom bar it zoom into the center! The easiest way to get help is to post code that reproduces the issue. Can you post a simple test page that shows the problem?
... View more
10-17-2012
10:44 AM
|
0
|
0
|
1820
|
|
POST
|
http://serverapi.arcgisonline.com/jsapi/arcgis/?v=3.0 loads without issue. Please elaborate on what you changed or what you're trying to do.
... View more
10-17-2012
10:41 AM
|
0
|
0
|
1188
|
|
POST
|
setFixedAnchor is indeed defined on InfoWindow. The popup does not have this method. What are you trying to change about the default popup positioning? As is, the popup always positions itself within the map.
... View more
10-16-2012
03:54 PM
|
0
|
0
|
1798
|
|
POST
|
I would open up a browser's dev tools and look at the request(s) for the boundaries. I've attached a screen shot of what I see from Chrome on a mac.
... View more
10-15-2012
01:04 PM
|
0
|
0
|
1340
|
|
POST
|
You can do this client side with esri.geometry.getLineIntersection. Here's an example:
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=7,IE=9" />
<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.2/js/dojo/dijit/themes/tundra/tundra.css">
<link rel="stylesheet" href="http://serverapi.arcgisonline.com/jsapi/arcgis/3.2/js/esri/css/esri.css">
<style>
html, body { height: 100%; width: 100%; margin: 0; padding: 0; }
#map{ margin: 0; padding: 0; }
</style>
<script>var dojoConfig = { parseOnLoad: true };</script>
<script src="http://serverapi.arcgisonline.com/jsapi/arcgis/3.2/"></script>
<script>
dojo.require("dijit.layout.BorderContainer");
dojo.require("dijit.layout.ContentPane");
dojo.require("esri.map");
var map;
function init() {
var bounds = new esri.geometry.Extent({"xmin":-16108713,"ymin":2819886,"xmax":-9494769,"ymax":5549605,"spatialReference":{"wkid":102100}});
map = new esri.Map("map",{ extent: bounds });
var basemap = new esri.layers.ArcGISTiledMapServiceLayer("https://server.arcgisonline.com/ArcGIS/rest/services/Canvas/World_Light_Gray_Base/MapServer");
map.addLayer(basemap);
dojo.connect(map, "onLoad", function() {
dojo.connect(dijit.byId("map"), "resize", map, map.resize);
showLines();
});
}
function showLines() {
var geometries = [
[[-120,30],[-110,40]],
[[-120,40],[-110,30]]
];
dojo.forEach(geometries, function(path) {
var line = new esri.geometry.Polyline(new esri.SpatialReference({ "wkid": 4326 }));
line.addPath(path);
var merc = esri.geometry.geographicToWebMercator(line);
addGraphic(merc);
});
clientSideIntersection();
}
function clientSideIntersection() {
var g1 = map.graphics.graphics[0].geometry;
var g2 = map.graphics.graphics[1].geometry;
var s1 = new esri.geometry.Point(g1.paths[0][0], map.spatialReference);
var e1 = new esri.geometry.Point(g1.paths[0][1], map.spatialReference);
var s2 = new esri.geometry.Point(g2.paths[0][0], map.spatialReference);
var e2 = new esri.geometry.Point(g2.paths[0][1], map.spatialReference);
var intersection = esri.geometry.getLineIntersection(s1, e1, s2, e2);
console.log("intersection: ", intersection);
map.graphics.add(new esri.Graphic(intersection, new esri.symbol.SimpleMarkerSymbol()));
}
function addGraphic(geom) {
var sym = new esri.symbol.SimpleLineSymbol();
map.graphics.add(new esri.Graphic(geom, sym));
}
dojo.ready(init);
</script>
</head>
<body class="tundra">
<div data-dojo-type="dijit.layout.BorderContainer"
data-dojo-props="design:'headline',gutters:false"
style="width: 100%; height: 100%; margin: 0;">
<div id="map"
data-dojo-type="dijit.layout.ContentPane"
data-dojo-props="region:'center'">
</div>
</div>
</body>
</html>
... View more
10-15-2012
09:45 AM
|
0
|
0
|
670
|
|
POST
|
You'll probably have better luck over in the server forum: http://forums.arcgis.com/forums/214-ArcGIS-10.1-for-Server-General
... View more
10-15-2012
08:27 AM
|
0
|
0
|
1919
|
|
POST
|
That sample is set up to always show the details tab when clicking a feature. When you click the pie chart tab, this code runs:
dojo.connect(tc, 'selectChild', function (tabItem) {
if (tabItem.title === "Pie Chart") {
chart.resize(180, 180);
}
});
chart.resize internally calls chart.render.
... View more
10-15-2012
07:51 AM
|
0
|
0
|
3103
|
|
POST
|
The chart is being created by the JS API because the PopupTemplate.mediaInfos specifies a piechart. Internally, the JS API is creating the chart and calling chart.render.
... View more
10-15-2012
07:35 AM
|
0
|
0
|
3103
|
|
POST
|
there were some lines with non IE8 compatible javascript that caused the map.onLoad clause to trip up, and that lead to the graphics not being shown. For the sake of completeness, can you post the JavaScript that was causing the problem?
... View more
10-12-2012
03:58 PM
|
0
|
0
|
1847
|
|
POST
|
Using "file:///Library/WebServer/Documents/demos/test.html" isn't actually using your web server. Your URL needs to start with "http://localhost/". If I had to guess, try http://localhost/demos/test.html. Obviously you can use your machine's name or your IP address in place of localhost.
... View more
10-11-2012
03:25 PM
|
0
|
0
|
1230
|
|
POST
|
Can you elaborate on "Mac webserver directory"? Are you using the apache instance that comes with OSX (that's what I use)? Some other web server? Anvil, perhaps (I personally haven't tried this one yet)? What's the URL your using to access the sample via your browser?
... View more
10-11-2012
02:44 PM
|
0
|
0
|
1230
|
|
POST
|
Between IE's ambiguous errors, and not being able to see this directly, it's a tough one to debug. I would try using the chart code from the sample you linked to initially in your app. Get that working, and work toward modifying it for your needs from there. You could also check that all three of your content panes are working correctly by putting some simple text in them rather than a combination of markup and a chart.
... View more
10-11-2012
09:35 AM
|
0
|
0
|
3103
|
|
POST
|
Gladly... I see you marked your original post as the answer, did you mean to do that?
... View more
10-11-2012
08:54 AM
|
0
|
0
|
1101
|
|
POST
|
I think there are a couple of places to look... When you create your div for your chart, how about dojo.create("div") instead of "<div></div>" inside your dojo.place call? Same for your legend div if that's not showing as well. Also, these two lines:
cp1.containerNode.appendChild(cp2.domNode);
cp1.containerNode.appendChild(cp3.domNode);
Smell funny to me. Since you're using dijits, how about:
cp2.placeAt(cp1.domNode);
cp3.placeAt(cp1.domNode);
If you're seeing all of your content panes in IE, then you can probably ignore this suggestion.
... View more
10-11-2012
08:52 AM
|
0
|
0
|
3103
|
|
POST
|
The Writing a Class and Writing a Custom Widget from our conceptual help should provide some insight.
... View more
10-11-2012
08:37 AM
|
0
|
0
|
1086
|
| 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
|