tag:blogger.com,1999:blog-11300808.post4906960451216096258..comments2026-04-16T00:24:47.622-07:00Comments on The official Google Code blog: Using the Google Static Maps API and HTTP Geocoder to power Lonely Planet's mobile travel guideMike Marchakhttp://www.blogger.com/profile/08067736591419106914noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-11300808.post-69109169246585032302011-01-25T05:07:22.354-08:002011-01-25T05:07:22.354-08:00Hi I would like to use this but I have a little pr...Hi I would like to use this but I have a little problem, I program in C++ (Qt)and so far I have this code to enable the Map, but I dont have any code to to use panning and zooming. Please help.<br /><br />Code:<br />void MapWidget::updateMapimage()<br />{<br /><br /> <br /> QString urlstring(&quot;http://maps.google.com/maps/api/staticmap?center=Brooklyn+Bridge,New+York,NY&amp;zoom=14&amp;size=512x512&amp;maptype=satellite&amp;markers=color:blue|label:S|40.702147,-74.015794&amp;markers=color:green|label:G|40.711614,-74.012318&amp;markers=color:red|color:red|label:C|40.718217,-73.998284&amp;sensor=false&quot;);<br /> urlstring = urlstring.arg(center.y(),0,&#39;f&#39;,8).arg(center.x(),0,&#39;f&#39;,8).arg(int(zoom));<br /> qDebug(&quot;fetching map %s&quot;, urlstring.toAscii().data());<br /> nreply = nam.get(QNetworkRequest(QUrl(urlstring)));<br /> connect(nreply, SIGNAL(finished()), this, SLOT(httpFinished()));<br />}<br />void MapWidget::httpFinished()<br />{<br /> mapimage.loadFromData(nreply-&gt;readAll());<br /> QWidget::update();<br />}FredrikJohanneshttps://www.blogger.com/profile/08772718074339142206noreply@blogger.comtag:blogger.com,1999:blog-11300808.post-23240443320823973912009-08-18T14:13:17.830-07:002009-08-18T14:13:17.830-07:00Hey guys, Hope you can help. So I am working on t...Hey guys, <br />Hope you can help.<br />So I am working on this problem. We also have a Static Map API platform whereby we send a URL n we display images and we also use the zoom in/out and pan east/west/north/south buttons. Another button that we have is displaying closest important locations. Now the problem is quite similar to yours. SO I am trying to implement the standard Mercator functions which convert lat/long to x/y and reverse. The problem I have is I don&#39;t know what the zoom level is and I want to evaluate the zoom level later on. I don&#39;t want to pass the zoom level and get the Mercator pixels values. Is there any way I can do that ? or one cant find pixel values without the zoom level...pradhttps://www.blogger.com/profile/06106066597180966879noreply@blogger.com