On Jan 15, 2010, at 5:37 AM, Anisha Kaul wrote: > Now I have got the following queries : > > 1. If I click or hover over a feature of a rendered map can I get > the name of the feature displayed any how ?
Yes, see the method off the Map object called query_point() and query_map_point(). The Python API docs explain these: http://media.mapnik.org/api_docs/python/mapnik._mapnik.Map-class.html > > 2. Where I can get a list of API's for displaying "Legends" with > respect to a rendered map ? There are none. > > 3. In a map a line can be used to display a railway track or even a > road. So how can I be sure whether currently > it has been displayed for a road or a railway track ? > > The above question can be reframed as follows: > > How can I check using C++ API what all features are there (roads, > rivers,water bodies) in different types like > polygons, lines etc , so that i can provide user otions to > selectively diplay features on rendered map from > legends. > Query the map features, perhaps using the above methods, or construct a mapnik::query. > Thanking you in anticipation, _______________________________________________ Mapnik-users mailing list [email protected] https://lists.berlios.de/mailman/listinfo/mapnik-users

