void OnGUI() { // Do autoresizing of GUI layer GUIResizer.AutoResize(); GUI.Label(new Rect(10, 15, 430, 30), "Click on the globe to add a circle marker.", labelStyle); GUI.Button(new Rect(10, 45, 100, 30), "Circle radius", labelStyle); kmRadius = GUI.HorizontalSlider(new Rect(120, 50, 80, 20), kmRadius, 50, 1000, sliderStyle, sliderThumbStyle); GUI.Button(new Rect(10, 75, 100, 30), "Ring Width Start", labelStyle); ringWidthStart = GUI.HorizontalSlider(new Rect(120, 80, 80, 20), ringWidthStart, 0, 1f, sliderStyle, sliderThumbStyle); GUI.Button(new Rect(10, 105, 100, 30), "Ring Width End", labelStyle); ringWidthEnd = GUI.HorizontalSlider(new Rect(120, 110, 80, 20), ringWidthEnd, 0, 1f, sliderStyle, sliderThumbStyle); if (GUI.Button(new Rect(10, 135, 100, 30), "Clear Markers")) { map.ClearMarkers(); } }