Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
dev:developer:examples:addoverlayobjects [2019/06/13 12:42] pieter.bonne@orbitgt.com |
dev:developer:examples:addoverlayobjects [2020/05/12 17:59] jeroen removed |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Example addOverlayObjects ====== | ====== Example addOverlayObjects ====== | ||
- | === Code === | ||
- | |||
- | === Viewer === | ||
< | < | ||
Line 34: | Line 31: | ||
*/ | */ | ||
function handleWorkspaceOpened() { | function handleWorkspaceOpened() { | ||
- | |||
- | /* | ||
- | var part = new CoordinatePart(); | ||
- | part.points.add(Coordinate.fromXY(null, | ||
- | part.points.add(Coordinate.fromXY(null, | ||
- | part.points.add(Coordinate.fromXY(null, | ||
- | part.points.add(Coordinate.fromXY(null, | ||
- | var path = new CoordinatePath(); | ||
- | path.crs = " | ||
- | path.parts.add(part); | ||
- | */ | ||
var part = new CoordinatePart(); | var part = new CoordinatePart(); | ||
Line 92: | Line 78: | ||
var loginOptions = new AMap(); | var loginOptions = new AMap(); | ||
loginOptions.set(Constants.LOGIN_MODE, | loginOptions.set(Constants.LOGIN_MODE, | ||
- | loginOptions.set(Constants.LOGIN_PUBLICATION_PUBLIC_ID, | + | loginOptions.set(Constants.LOGIN_PUBLICATION_PUBLIC_ID, |
var options = new AMap(); | var options = new AMap(); | ||
options.set(Constants.STARTUP_AUTO_LOGIN, | options.set(Constants.STARTUP_AUTO_LOGIN, | ||
Line 106: | Line 92: | ||
</ | </ | ||
+ | | ||
</ | </ |