Skip to content

Commit

Permalink
✨ wo #527: prepare release of first beta version
Browse files Browse the repository at this point in the history
  • Loading branch information
helllth authored and jeanatcismet committed Nov 8, 2019
1 parent cb066b1 commit ef52e81
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,6 @@ public class OrbitControlFeature extends DefaultStyledFeature implements XStyled

private static final int ARCSIZE = 200;

public static final String ORBIT_LAUNCHER_URI = "http://localhost:3000";

//~ Instance fields --------------------------------------------------------

ArrayList<PNode> children = new ArrayList<>();
Expand All @@ -116,6 +114,7 @@ public class OrbitControlFeature extends DefaultStyledFeature implements XStyled
private CamState camState = new CamState();

private String socketChannelId;
private String launcherUrl;
private StacResult stacInfo;
private Socket socket;

Expand All @@ -129,8 +128,12 @@ public class OrbitControlFeature extends DefaultStyledFeature implements XStyled
* @param connectionContext DOCUMENT ME!
* @param stac stacResult
* @param socket DOCUMENT ME!
* @param launcherUrl DOCUMENT ME!
*/
public OrbitControlFeature(final ConnectionContext connectionContext, final StacResult stac, final Socket socket) {
public OrbitControlFeature(final ConnectionContext connectionContext,
final StacResult stac,
final Socket socket,
final String launcherUrl) {
this.connectionContext = connectionContext;
setEditable(true);
setCanBeSelected(true);
Expand All @@ -140,6 +143,7 @@ public OrbitControlFeature(final ConnectionContext connectionContext, final Stac

this.stacInfo = stac;
this.socket = socket;
this.launcherUrl = launcherUrl;
this.camState.setFov(100);
this.camState.setTilt(0);
this.camState.setPan(0);
Expand Down Expand Up @@ -376,7 +380,7 @@ public void updateCamStatePosition() {
*/
public String getLaunchUrl() {
updateCamStatePosition();
return ORBIT_LAUNCHER_URI + "/?cidsOrbitSTAC="
return launcherUrl + "/?cidsOrbitSTAC="
+ stacInfo.getStac()
+ "&initialx="
+ camState.getX()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,8 @@ public void run() {
final OrbitControlFeature vcmf = new OrbitControlFeature(
connectionContext,
stacResult,
socket);
socket,
orbitSettings.getProperty("launcherUrl"));

if (currentOrbitControlFeature != null) {
CismapBroker.getInstance()
Expand Down

0 comments on commit ef52e81

Please sign in to comment.