Re: [mapguide-users] Maestro Python api example script setScaleRange for a drawingLayer

2015-01-26 Thread lucvanlinden
Some more feedback: The MaestroAPI.chm does list a MinScaleSpecified property for the DrawingLayerDefintionType. However when running the script in the console reports a non existing attribute : AttributeError: ‘DrawingLayerDefintionType’ object has no attributes MinScaleSpecified Also when

Re: [mapguide-users] Maestro Python api example script setScaleRange for a drawingLayer

2015-01-26 Thread Jackie Ng
You are correct that a Drawing Layer has no vector scale range. This is because min/max scale is a root property of a DrawingLayerDefinition, so you python code is correct. But what you're failing to do is to check is the property layer type of the ldf.SubLayer property (as this could be a vector

[mapguide-users] Maestro Python api example script setScaleRange for a drawingLayer

2015-01-26 Thread lucvanlinden
Hi I have tried to use the ScaleRangeUpdate example python script with Maestro. Unfortunately this does not work for a DrawingLayer as it does not have a vectorscalerange. After a lot of trying I managed to find out that it is possible to call: ldf.SubLayer.MinScale = min So we added a new