<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi Jon,<br>
<br>
On 17.11.2011 11:46, Jon R Flowers wrote:
<blockquote
cite="mid:EDFF4BA2A76A894B877026BF7C128F59011986E8C90C@OSLMS26.onshore.pgs.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<meta name="Generator" content="Microsoft Word 14 (filtered
medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal">Hope this is the correct list. First off,
thanks for the wonderful widget you guy make. This has save my
project a tremendous amount of time and work. <o:p></o:p></p>
</div>
</blockquote>
<br>
thanks for the nice words :-) It would be great if you could add
your project to our wiki page listing [1].<br>
<br>
<blockquote
cite="mid:EDFF4BA2A76A894B877026BF7C128F59011986E8C90C@OSLMS26.onshore.pgs.com"
type="cite">
<div class="WordSection1">
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I am working an on an application that
requires basic mapping features, which marble widget more than
supplies, but I just upgraded to version 0.12 of the library
and found you fixed a ‘bug’ that I was taking full advantage
of and need in my app. I need to zoom in to a closer detail
than what is currently set as the maximumZoom() level. This is
required for items that I am painting over the map, not
looking for detail level on the map. This is because all the
items I am drawing are over the oceans of the world and I need
rough coast lines at a normal zoom level. But for fine
checking of my ‘lines’ on the map I need to be able to zoom to
see them. Real world distances between these parallel lines
will be as close as 25 meters, though usually more like 100
meters. Those lines will not be shown all the time only on
problem fixing, the main lines being show will be various
distances apart, 100 – 2400 meters, depending on configuration
of that particular project. <o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I have found that modifying the dgml file
can accomplish this, I think it’s the wrong way to go about
this. Is there a way to override the maximumZoom() in code? So
that I don’t have to maintain my own set of data for app. This
app will be very limited in user base as it is very specific
in its use.</p>
</div>
</blockquote>
<br>
Changing the .dgml is indeed the way we intended it to happen. Still
it's possible to do it in the code, basically calling<br>
mapWidget->model()->mapTheme()->head()->zoom()->setMaximum(
8000 );<br>
after the corrent map theme is loaded, where 8000 is the zoom value
you like to set. Pretty high here already.<br>
<br>
Note that when using the library as of today this won't work
directly as some of the classes needed for this are not exported
(copied to the include/ dir). You can either ship them with your
project or go for the hack shown in the attachment. Note that the
hack (manually adding the class headers) might lead to strange
behavior in future Marble versions shall we decide to change the
classes.<br>
<br>
Regards,<br>
Dennis<br>
<br>
[1]
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
<a href="http://techbase.kde.org/Projects/Marble/MarbleUsedBy">http://techbase.kde.org/Projects/Marble/MarbleUsedBy</a><br>
<br>
<blockquote
cite="mid:EDFF4BA2A76A894B877026BF7C128F59011986E8C90C@OSLMS26.onshore.pgs.com"
type="cite">
<div class="WordSection1">
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks for any and all help.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Jon Flowers<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<br>
</blockquote>
<br>
<br>
</body>
</html>