Note that there are some explanatory texts on larger screens.

plurals
  1. POChange DPI with Javascript Google Maps Api
    text
    copied!<p>I need to create a 80x80cm (or 33inchx33inch) map with Google Maps. This map will be printed and exhibited, so the higher DPI the better. Actually, in printing, a 300DPI is the minimum.</p> <p>Now, I'm using the Javascript API in order to create the map I want : - change the mapOptions with an array of styles with various colors - add a Transit Overlay in order to have the map of the urban trains added over the map (see this aautar.digital-radiation.com/blog/?p=3761) - add polygons as a link to KML URL to one of my maps</p> <p>If you want to see the result : <a href="http://www.tellnet.fr/blog/test.html" rel="nofollow">http://www.tellnet.fr/blog/test.html</a> (it's very long to download since it's a 5000x5000 picture).</p> <p>The problem is that, at the Scale level I want (with not too many details), the big picture I get is a 5000x5000, which gives a 150DPI only printable file.</p> <p>To obtain a 10000x10000 picture as I would to print a 80x80cm map at 300 DPI, I need to : - either my map zoom once, but then I've got soooo many details, that will be printed super tiny - or change the DPI of the map, asking Google Maps to double it.</p> <p><em>It would basically give me the same map at the same scale, but with thinner lines and texts (making a 10000x10000 pictures).</em></p> <p>I know this is possible with the static maps Api, change the Scale value to 2 (see <a href="https://developers.google.com/maps/documentation/staticmaps/?hl=fr#scale_values" rel="nofollow">https://developers.google.com/maps/documentation/staticmaps/?hl=fr#scale_values</a>).</p> <p>The problem is that, this is the <strong>static</strong> maps API, so please can someone tell me if : - it's either possible to do all the above things with the static API - or change the "scale" value (ie the DPI value) with the Javascript API.</p> <p>I also tried to change the meta viewport value, but this only works with mobile devices... (I searched for all solutions, now I'm blocked!)</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload