Graphics Reference
In-Depth Information
rule = default_rule.clone()
rule.setFilterExpression("(SCALERANK >= 7) and
(SCALERANK <= 10)")
rule.setScaleMinDenom(0)
rule.setScaleMaxDenom(2000000)
root_rule.appendChild(rule)
root_rule.removeChildAt(0)
self.landmark_layer.setRendererV2(renderer)
This will have the effect of hiding landmarks that are too small (that is, which have too
large a SCALERANK value) when the map is zoomed out. Now, our map looks much more
reasonable:
There's just one more feature we'd like to add here; at the moment, all the labels are of the
same size. However, we'd like the larger landmarks to be shown with a larger label. To do
Search WWH ::




Custom Search