Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Counter Attack - yellow control point drags away on the map when editing #313

Closed
mubinakhan opened this issue May 8, 2017 · 2 comments
Closed
Assignees
Milestone

Comments

@mubinakhan
Copy link

mubinakhan commented May 8, 2017

For reference use following script

@mubinakhan
Copy link
Author

var counterattack = new emp3.api.MilStdSymbol({
symbolCode: "GFTPKF--------X",
positions: [
{latitude: 20, longitude: 50}, // Tip of the arrow
{latitude: 20, longitude: 49}, // Back of the arrow
{latitude: 20.1, longitude: 49.8} // Shape of the arrow
]
});
this.props.addFeature(counterattack);

var overlay = new emp3.api.Overlay();
this.props.addOverlay(overlay);

map0.addOverlay({
overlay: overlay,
onSuccess: function() {
overlay.addFeature({
feature: counterattack,
onSuccess: function() {
map0.zoomTo({
overlay: overlay
});
map0.editFeature({
feature: counterattack
});
}
});
}
});

@alberto-acevedo
Copy link
Contributor

Fixed already merged into the dev branch. closing this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants