- node = parent.addNode("map", MapNode.class);
- node.setScale(scale);
- node.setEnabled(true);
- node.setZIndex(Integer.MIN_VALUE + 999); // Just under the grid
+ // Just under the grid
+ mapNode = parent.addNode("map", MapNode.class);
+ mapNode.setTransform(transform);
+ mapNode.setEnabled(true);
+ mapNode.setZIndex(Integer.MIN_VALUE + 999);
+
+ // On top of pretty much everything
+ attributionNode = parent.addNode("mapAttribution", MapAttributionNode.class);
+ attributionNode.setTransform(transform);
+ attributionNode.setZIndex(Integer.MAX_VALUE - 999);
+ attributionNode.setEnabled(true);
+
+ scaleNode = parent.addNode("mapScale", MapScaleNode.class);
+ scaleNode.setTransform(transform);
+ scaleNode.setZIndex(Integer.MAX_VALUE - 998);
+ scaleNode.setEnabled(true);
+
+ locationInfoNode = parent.addNode("mapLocationInfo", MapLocationInfoNode.class);
+ locationInfoNode.setTransform(transform);
+ locationInfoNode.setZIndex(Integer.MAX_VALUE - 997);
+ locationInfoNode.setEnabled(true);
+ locationInfoNode.setMouseUtil(getContext().getAtMostOneItemOfClass(MouseUtil.class));