//Evaluate the URL of this HTML page to determine if any parameters were passed with it var htmlPagePath = window.location.toString(); var qLocation = htmlPagePath.indexOf('?'); if (qLocation < 1) { passedLatLong = false; } else passLatLong = true; } . . . //If a coordinate location was passed as a parameter, zoom the map to it if (passedLatLong) { //Extract the lat/long coordinates passed as a parameter with the URL var coordStr = window.location.toString().substr(qLocation + 1,window.location.toString().length); var coords = new Array(); coords = coordStr.split(','); //Create a lat/long point var bridgeLoc = new esri.geometry.Point(coords[0],coords[1], new esri.SpatialReference({wkid:4326})); //set the map extent based on the lat/long coordinate passed. The coordinate must be converted //to Web Mercator since the web services used have been defined with that projection.. map.setExtent(pointToExtent(map,esri.geometry.geographicToWebMercator(bridgeLoc),3)); }