AnsweredAssumed Answered

how to bind markers on map in asp.net, based on  XY values coming from sql database

Question asked by mallareddy2271 on Jun 19, 2017
Latest reply on Jun 20, 2017 by mallareddy2271

taking XY values from textbox and loading nearby industries. How to diplay data from stored procedure. with colored circles

require([
"esri/map",
"dojo/domReady!"
], function (
Map
) {
map = new Map("map", {
basemap: "osm",
center: [-122.9007, 47.0379],
zoom: 9,
scaleControl: true
});
map.on("load", function () {
map.infoWindow.resize(250, 100);
});

map.on("click", addPoint);

function addPoint(evt) {
var lat = evt.mapPoint.getLatitude();
var long = evt.mapPoint.getLongitude();
document.getElementById("ContentPlaceHolder1_txtLat").value = lat;
document.getElementById("ContentPlaceHolder1_txtLng").value = long;
}
});

Outcomes