so my question is how to use "mobile_geolocaterenderer" source code with my map
Hi Tim,All I can suggest is that you work through the example you referenced at http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples_start.htm#jssamples/exp_geolocate....
At a high level, here is what it's doing:dojo.addOnLoad(init);
This runs the init function when the page first loads. The init function sets up the map, and adds a background tiled layer.dojo.connect(map, "onLoad", initFunc);
This runs the initFunc function once the basemap has loaded. See the comments at the top of the sample script's page to see what this function is doing:In the snippet below, we check to see if browser supports geolocation, if it does we use the getCurrentPosition and watchPosition functions. The getCurrentPosition function retrieves the users current location and watchPosition tracks the users position as it changes. Both functions have the same structure, a success callback, error callback and a PositionOptions object
The function uses:navigator.geolocation.getCurrentPosition(zoomToLocation, locationError);
which means that the zoomToLocation function is called - this adds a graphic to the map at the user's current location.Hope this helps,Steve