I am writing a small Mapnik viewer application using c++, much like the
viewer demo application. I load a map from an XML file and I display it on
screen. 

In this application, I give the user the option to view the entire map in
the window. I use the zoom_all() function to accomplish this, and it works
fine. However, I also add a point_datasource() layer that dynamically shows
a GPS position. When I do this, the zoom_all() function no longer works as
expected. The map area is much larger than I would expect.

I am thinking that my problem is that I do not specify the extent of the
dynamic layer when I create it, but I am not sure how to do this.

-- 
View this message in context: 
http://old.nabble.com/Mapnik-zoom_all-c%2B%2B-API-with-dynamic-layers-tp29990901p29990901.html
Sent from the Mapnik - Users mailing list archive at Nabble.com.

_______________________________________________
Mapnik-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/mapnik-users

Reply via email to