Google maps and pdf

前端 未结 3 569
庸人自扰
庸人自扰 2020-12-16 04:34

Programaticly, I need to include a google Maps map to automaticly generated pdf files. For this, I need to convert the map into some image format (jpg, png etc). How can it

3条回答
  •  太阳男子
    2020-12-16 05:35

    You can use the Google Maps Static API to return an image of the map. It's a very easy, REST-like API that doesn't even require a key. Example:

    http://maps.google.com/maps/api/staticmap?center=51.477222,0&zoom=14&size=400x400&sensor=false

提交回复
热议问题