I am new to MapServer and I wanted to host offline map server on Windows, so after following this link https://github.com/mapserver/mapserver/wiki/RenderingOsmDataWindows#osm-import I have setup the map for only India.

and with the below URL I can get a map of India, but I can't zoom in. How can I get to a particular lat long at center with some zoom value using URL parameters?


1 Answer 1


Check out the mapserver doc page: https://mapserver.org/ogc/wms_server.html

Specifically the bbox parameter:


seen here in a url (copied from docs):


The BBOX is the geographic rectangle you want(note the center is the middle of the bbox) to be included in your map. How you actually get the bbox manually is up to you...usually a tool like openlayers or leaflet keeps track for you.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.