@@ -60,7 +60,7 @@ struct layer_pickle_suite : boost::python::pickle_suite
6060 {
6161 s.append (style_names[i]);
6262 }
63- return boost::python::make_tuple (l.clear_label_cache (),l.min_zoom (),l.max_zoom (),l.queryable (),l.datasource ()->params (),l.cache_features (),s);
63+ return boost::python::make_tuple (l.clear_label_cache (),l.minimum_scale_denominator (),l.maximum_scale_denominator (),l.queryable (),l.datasource ()->params (),l.cache_features (),s);
6464 }
6565
6666 static void
@@ -78,9 +78,9 @@ struct layer_pickle_suite : boost::python::pickle_suite
7878
7979 l.set_clear_label_cache (extract<bool >(state[0 ]));
8080
81- l.set_min_zoom (extract<double >(state[1 ]));
81+ l.set_minimum_scale_denominator (extract<double >(state[1 ]));
8282
83- l.set_max_zoom (extract<double >(state[2 ]));
83+ l.set_maximum_scale_denominator (extract<double >(state[2 ]));
8484
8585 l.set_queryable (extract<bool >(state[3 ]));
8686
@@ -176,14 +176,14 @@ void export_layer()
176176 )
177177
178178 .def (" visible" , &layer::visible,
179- " Return True if this layer's data is active and visible at a given scale .\n "
179+ " Return True if this layer's data is active and visible at a given scale_denom .\n "
180180 " \n "
181181 " Otherwise returns False.\n "
182182 " Accepts a scale value as an integer or float input.\n "
183183 " Will return False if:\n "
184- " \t scale >= minzoom - 1e-6\n "
184+ " \t scale_denom >= minimum_scale_denominator - 1e-6\n "
185185 " \t or:\n "
186- " \t scale < maxzoom + 1e-6\n "
186+ " \t scale_denom < maximum_scale_denominator + 1e-6\n "
187187 " \n "
188188 " Usage:\n "
189189 " >>> from mapnik import Layer\n "
@@ -282,33 +282,33 @@ void export_layer()
282282 " >>> m.maximum_extent = Box2d(-180,-90,180,90)\n "
283283 )
284284
285- .add_property (" maxzoom " ,
286- &layer::max_zoom ,
287- &layer::set_max_zoom ,
288- " Get/Set the maximum zoom lever of the layer.\n "
285+ .add_property (" maximum_scale_denominator " ,
286+ &layer::maximum_scale_denominator ,
287+ &layer::set_maximum_scale_denominator ,
288+ " Get/Set the maximum scale denominator of the layer.\n "
289289 " \n "
290290 " Usage:\n "
291291 " >>> from mapnik import Layer\n "
292292 " >>> lyr = Layer('My Layer','+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs')\n "
293- " >>> lyr.maxzoom \n "
293+ " >>> lyr.maximum_scale_denominator \n "
294294 " 1.7976931348623157e+308 # default is the numerical maximum\n "
295- " >>> lyr.maxzoom = 1.0/1000000\n "
296- " >>> lyr.maxzoom \n "
295+ " >>> lyr.maximum_scale_denominator = 1.0/1000000\n "
296+ " >>> lyr.maximum_scale_denominator \n "
297297 " 9.9999999999999995e-07\n "
298298 )
299299
300- .add_property (" minzoom " ,
301- &layer::min_zoom ,
302- &layer::set_min_zoom ,
303- " Get/Set the minimum zoom lever of the layer.\n "
300+ .add_property (" minimum_scale_denominator " ,
301+ &layer::minimum_scale_denominator ,
302+ &layer::set_minimum_scale_denominator ,
303+ " Get/Set the minimum scale demoninator of the layer.\n "
304304 " \n "
305305 " Usage:\n "
306306 " >>> from mapnik import Layer\n "
307307 " >>> lyr = Layer('My Layer','+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs')\n "
308- " >>> lyr.minzoom # default is 0\n "
308+ " >>> lyr.minimum_scale_denominator # default is 0\n "
309309 " 0.0\n "
310- " >>> lyr.minzoom = 1.0/1000000\n "
311- " >>> lyr.minzoom \n "
310+ " >>> lyr.minimum_scale_denominator = 1.0/1000000\n "
311+ " >>> lyr.minimum_scale_denominator \n "
312312 " 9.9999999999999995e-07\n "
313313 )
314314
0 commit comments