Does the size of anylogic elemnets can be changed while zoomIN++/ZoomOUT– in GIS simulation as it does for the "GIS Regions"?

huangapple go评论51阅读模式
英文:

Does the size of anylogic elemnets can be changed while zoomIN++/ZoomOUT-- in GIS simulation as it does for the "GIS Regions"?

问题

在Anylogic运行GIS模拟模型时,ZoomIn++/ZoomOut--不会改变Anylogic模型中使用的代理(例如:汽车/火车/公交车)的大小,这些代理基于Anylogic的GIS地图吗?

如何实现这一点?它是否提供了任何解决方案或相对于GIS模型的ZoomIn/ZoomOut属性的任何逻辑元素的属性,就像“GIS区域”一样(GIS区域的大小随着GIS的ZoomIn/ZoomOut而改变)!!

可能存在的解决方案,如果存在的话!!/或者背后的原因/限制是什么?

ZoomIn照片中元素的大小相同

ZoomOut照片中元素的大小相同,而且充满了混乱,难以可视化

英文:

In Anylogic while running the GIS simulation model, the ZoomIn++/ZoomOut-- does not change size of Anylogic agents (for ex: car/train/bus) used into the model based on GIS map of Anylogic?

How it could be achieved? Does it offer any solution or property to anylogic elements for the relative size W.R.T. ZoomIn/ZoomOut property of GIS Model, as it follows for the "GIS Regions" (The size of GIs regions changes with GIS ZoomIn/ZoomOut)!!

Possible solutions, if exists!! /or Reasons/Restrictions behind?

ZoomIn Photo the size of elements is same

ZoomOut Photo the size of eements is same and full of mess not Easy to visualize

答案1

得分: 1

请先观看我制作的有关在AnyLogic GIS地图中尺寸如何工作的视频:

https://www.youtube.com/watch?v=dAZo91lq44M

在视频中没有提到的是,直接回答你的问题,这仅适用于3D对象... 你需要做的是更改比例:

agent.Object3D.setScale(yourScale);
如果你想使它们变为一半的大小,yourScale=0.5
如果你想使它们变为两倍的大小,yourScale=2

但AnyLogic无法识别何时进行缩放,所以你必须手动执行,除非你使用map.ZoomIn()方法来执行缩放。

英文:

so first, please watch this video i made on how size works in an AnyLogic gis map:

https://www.youtube.com/watch?v=dAZo91lq44M

What I don't say on that video, is the answer to your question directly, which works only for 3D objects... What you need to do is to change the scale:

agent.Object3D.setScale(yourScale);
if you want to make them half the size, yourScale=0.5
for twice the size, yourScale=2

But AnyLogic is not able to identify when you zoom in/zoom out, so you have to do it manually, unless you use map.ZoomIn() method to do that.

huangapple
  • 本文由 发表于 2023年2月6日 18:23:36
  • 转载请务必保留本文链接:https://go.coder-hub.com/75360041.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定