[Mapserver-users] draw a shape--use the MAXSCALE and label stuff defined in mapfile

Ed Martin edman007x at mac.com
Sat Jan 17 20:30:52 EST 2004


i'm drawing the individual shapes instead of just the layer to control 
the shapes that get drawn but it isn't adding the label and it isn't 
obeying the maxscale defined in the map file, how do i make it add the 
label and have the maxscale, i'm using php/mapscript and here is a part 
of what i have

$cities_layer = $map->getLayerByName('Cities');
//open the layer
$cities_layer->open();
$city_shape = $cities_layer->getShape(-1, $city_id);
$cities_layer->close();
$city_shape->draw($map,$cities_layer,$image);
$city_shape->free();




More information about the mapserver-users mailing list