<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <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>Info Window with Chart</title> <link rel="stylesheet" type="text/css" href="http://serverapi.arcgisonline.com/jsapi/arcgis/2.3/js/dojo/dijit/themes/claro/claro.css">
function init() { var initialExtent = new esri.geometry.Extent({"xmin":-12464806.28,"ymin":3997513.10,"xmax":-12460506.70,"ymax":4000379.49,"spatialReference":{"wkid":102100}}); map = new esri.Map("map", { extent: initialExtent});
var parcelsLayer= new esri.layers.FeatureLayer("http://1XX.XX.169.197/ArcGIS/rest/services/Lone/Parcels/MapServer/0",{ infoTemplate:template, outFields:["*"] }); var symbol = new esri.symbol.SimpleFillSymbol(esri.symbol.SimpleFillSymbol.STYLE_SOLID, new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_DASHDOT, new dojo.Color([255,0,0,0.0]), 2),new dojo.Color([255,255,0,0.0])); parcelsLayer.setRenderer(new esri.renderer.SimpleRenderer(symbol));
map.addLayer(parcelsLayer); map.infoWindow.resize(300,275); //resize the map when the browser resizes - view the 'Resizing and repositioning the map' section in //the following help topic for more details http://help.esri.com/EN/webapi/javascript/arcgis/help/jshelp_start.htm#jshelp/inside_guidelines.htm var resizeTimer; dojo.connect(map, 'onLoad', function(theMap) { dojo.connect(dijit.byId('map'), 'resize', function() { //resize the map if the div is resized clearTimeout(resizeTimer); resizeTimer = setTimeout( function() { map.resize(); map.reposition(); }, 500); }); }); }
function getWindowContent(graphic) { //make a tab container var tc = new dijit.layout.TabContainer({ style:"width:100%;height:100%;", }, dojo.create("div"));