Hello, Im a beginner, I tried this code to view point graphic but I cant see it, kindly help me out.
Thank you.
<html>
<Head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
</Head>
<script>
require ([
"esri/map",
"esri/graphic",
"esri/geometry/Point",
"esri/symbols/SimpleMarkerSymbol",
"dojo/domReady!"
], function (Map, Graphic, Point, SimpleMarkerSymbol) {
var map = new Map("map", {
basemap: "topo",
center: [-118.805, 34.027],
zoom: 13
});
var point = new Point(-118.805, 34.027);
var markerSymbol = new SimpleMarkerSymbol(SimpleMarkerSymbol.STYLE_CIRCLE, 10,
new SimpleLineSymbol(SimpleLineSymbol.STYLE_SOLID,
new Color([255, 0, 0]), 1),
new Color([0, 255, 0, 0.25])
);
var graphic = new Graphic(point, markerSymbol);
map.graphics.add(graphic);
});
</script>
<body>
<div id="map" style="width: 100%; height: 100%"></div>
</body>
</html>