public void TakeGPScoord() { OnlineMapsMarkerManager.RemoveAllItems(); lat = Input.location.lastData.latitude; lon = Input.location.lastData.longitude; if (lat != 0f && lon != 0f) { map.SetPositionAndZoom(lon, lat, 19); OnlineMapsMarkerManager.CreateItem(loc, "", "", 0, 0f); } else { map.SetPositionAndZoom(43.82, 55.47, 7); OnlineMapsMarkerManager.CreateItem(loc, "", "", 0, 0f); } GetData(); InstanceShopMarkers(); }
public void SetPosition(Vector2 pos, int zoom) { onlineMap.SetPositionAndZoom(pos.x, pos.y, zoom); }