1.onload和ready
ready是在DOM文档树加载完之后执行,onload还要等所有文件加载完,所以ready比onload先执行。
window.onload = function() {
alert("onload");
}
$(document).ready(function() {
alert("ready");
})
2.esri
esri.symbol.PictureMarkerSymbol: Marker symbols are used to draw points and multipoints on the graphics layer.PictureMarkerSymbol uses an image as a marker.
esri.geometry.Point: A location defined by X- and Y- coordinate.It can be map units or screen units.
esri.InfoTemplate: An InfoTemplate contains a title and content template used to transform Graphic.attributes into an HTML representation.
esri.Graphic: A Graphic can contain geometry, a symbol, attributes, or an infoTemplate.
3.map
map.graphics.add
map.graphics.remove