<font color="green" size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: green;" lang="EN-GB">layers is a APIProperty.<div class="im"><br><br><span style="color: rgb(0, 0, 0);">ol_miniMap = new OpenLayers.Control.</span><span style="color: rgb(0, 0, 0);">OverviewMap(
{</span></div></span></font><div class="im">

<p style="color: rgb(0, 0, 0);"><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-GB">            mapOptions: {</span></font></p>

<p style="color: rgb(0, 0, 0);"><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-GB">                  maxExtent: new OpenLayers.Bounds(extent-&gt;minx,
extent-&gt;miny, extent-&gt;maxx, extent-&gt;maxy),</span></font></p>

<p style="color: rgb(0, 0, 0);"><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-GB">                  maxResolution: ResolutionMap,</span></font></p>

<p style="color: rgb(0, 0, 0);"><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-GB">                  projection: ProjectionMap,</span></font></p>

<p style="color: rgb(0, 0, 0);"><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-GB">                  units: UnitsMap,</span></font></p>



</div><p style="color: rgb(0, 0, 0);"><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-GB">                  numZoomLevels: &#39;1&#39;</span></font></p>

<p style="color: rgb(0, 0, 0);"><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-GB">            }, <br></span></font></p><p style="color: rgb(0, 0, 0);"><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-GB">            size: new OpenLayers.Size(&#39;150&#39;,&#39;150&#39;), </span></font><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-GB"><br>


</span></font></p><p style="color: rgb(0, 0, 0);"><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-GB">            <span style="color: rgb(255, 0, 0);">layers: [minimapImgLayer]</span></span></font><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-GB"> } )</span></font></p>

<br><br><div class="gmail_quote">On Thu, May 7, 2009 at 3:43 PM, Jean-Daniel JDG. GONON <span dir="ltr">&lt;<a href="mailto:jdg@geosphere.fr">jdg@geosphere.fr</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">












<div link="blue" vlink="blue" lang="FR">

<div>

<p><font color="navy" size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;" lang="EN-GB">Yes I want to use this
idea, so I modify my code like this :</span></font></p>

<p><font color="navy" size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;" lang="EN-GB"> </span></font></p>

<p style=""><font color="green" size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: green;" lang="EN-GB">var minimapImgLayer = new OpenLayers.Layer.Image(&#39;ImageLayer&#39;, &#39;reference.jpg&#39;,</span></font></p>



<p style=""><font color="green" size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: green;" lang="EN-GB">      new OpenLayers.Bounds(extent-&gt;minx, extent-&gt;miny, extent-&gt;maxx,
extent-&gt;maxy),</span></font></p><div class="im">

<p style=""><font color="green" size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: green;" lang="EN-GB">      new OpenLayers.Size(&#39;150&#39;, &#39;150&#39;), {numZoomLevels: &#39;1&#39;,
alwaysInRange: true} );</span></font></p>

<p><font color="green" size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: green;" lang="EN-GB"> </span></font></p>

</div><p><font color="green" size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: green;" lang="EN-GB">var ol_miniMap;</span></font></p>

<p style=""><font color="green" size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: green;" lang="EN-GB">var ol_Map = new OpenLayers.Map(&#39;viewport&#39;, {</span></font></p>



<p style=""><font color="green" size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: green;" lang="EN-GB">      controls: [ ol_miniMap = new OpenLayers.Control.OverviewMap(
{</span></font></p>

<p style=""><font color="green" size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: green;" lang="EN-GB">            mapOptions: {</span></font></p>

<p style=""><font color="green" size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: green;" lang="EN-GB">                  maxExtent: new OpenLayers.Bounds(extent-&gt;minx,
extent-&gt;miny, extent-&gt;maxx, extent-&gt;maxy),</span></font></p>

<p style=""><font color="green" size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: green;" lang="EN-GB">                  maxResolution: ResolutionMap,</span></font></p>



<p style=""><font color="green" size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: green;" lang="EN-GB">                  projection: ProjectionMap,</span></font></p>

<p style=""><font color="green" size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: green;" lang="EN-GB">                  units: UnitsMap,</span></font></p>

<p style=""><font color="green" size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: green;" lang="EN-GB">                  layers: [minimapImgLayer],</span></font></p>

<p style=""><font color="green" size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: green;" lang="EN-GB">                  numZoomLevels: &#39;1&#39;</span></font></p>

<p style=""><font color="green" size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: green;" lang="EN-GB">            }, size: new OpenLayers.Size(&#39;150&#39;,&#39;150&#39;) } ) ],</span></font></p>



<p style=""><font color="green" size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: green;" lang="EN-GB">      maxExtent: new OpenLayers.Bounds(extent-&gt;minx, extent-&gt;miny,
extent-&gt;maxx, extent-&gt;maxy),</span></font></p>

<p style=""><font color="green" size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: green;" lang="EN-GB">      scales: [NewScalesMap],</span></font></p>

<p style=""><font color="green" size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: green;" lang="EN-GB">      maxResolution: ResolutionMap,</span></font></p>

<p style=""><font color="green" size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: green;" lang="EN-GB">      units: UnitsMap,</span></font></p>

<p style=""><font color="green" size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: green;" lang="EN-GB">      i: szImgFormat,</span></font></p>

<p style=""><font color="green" size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: green;" lang="EN-GB">      tileSize: new OpenLayers.Size(&#39;tileWidth&#39;,&#39;tileHeight&#39;),</span></font></p>



<p style=""><font color="green" size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: green;" lang="EN-GB">      projection: ProjectionMap</span></font></p>

<p><font color="green" size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: green;" lang="EN-GB">},
numZoomLevels = NumberScalesMap );</span></font></p>

<p><font color="navy" size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;" lang="EN-GB"> </span></font></p>

<p><font color="navy" size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;" lang="EN-GB">The reference.jpg image
has a resolution of 150*150 pixels.</span></font></p>

<p><font color="navy" size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;" lang="EN-GB"> </span></font></p>

<p><font color="navy" size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;" lang="EN-GB">With this code, I have no
error message.</span></font></p>

<p><font color="navy" size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;" lang="EN-GB">But the overview map
display a clone of main map, instead of my JPG image.</span></font></p>

<p><font color="navy" size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;" lang="EN-GB">I don’t know why ..??</span></font></p>

<p><font color="navy" size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;" lang="EN-GB"> </span></font></p>

<p><font color="navy" size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;" lang="EN-GB">Is what someone have an
idea of solution ??</span></font></p><div class="im">

<p><font color="navy" size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;" lang="EN-GB"> </span></font></p>

<p><font color="navy" size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;" lang="EN-GB">Thank you in advance !!</span></font></p>

<p><font color="navy" size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;" lang="EN-GB">JDG</span></font></p>

<p><font color="navy" size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;" lang="EN-GB"> </span></font></p>

<p><font color="navy" size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;" lang="EN-GB"> </span></font></p>

</div><div>

<div style="text-align: center;" align="center"><font size="3" face="Times New Roman"><span style="font-size: 12pt;">

<hr align="center" size="2" width="100%">

</span></font></div>

<p><b><font size="2" face="Tahoma"><span style="font-size: 10pt; font-family: Tahoma; font-weight: bold;">De :</span></font></b><font size="2" face="Tahoma"><span style="font-size: 10pt; font-family: Tahoma;"> XinGang Li
[mailto:<a href="mailto:slinavlee@gmail.com" target="_blank">slinavlee@gmail.com</a>] <br>
<b><span style="font-weight: bold;">Envoyé :</span></b> mercredi 6 mai 2009
07:25<br>
<b><span style="font-weight: bold;">À :</span></b> Jean-Daniel JDG. GONON<br>
<b><span style="font-weight: bold;">Cc :</span></b> dev@openlayers<br>
<b><span style="font-weight: bold;">Objet :</span></b> Re: [OpenLayers-Dev]
.JPG image in OverviewMap</span></font></p>

</div><div><div></div><div class="h5">

<p><font size="3" face="Times New Roman"><span style="font-size: 12pt;"> </span></font></p>

<p style="margin-bottom: 12pt;"><font size="3" face="Times New Roman"><span style="font-size: 12pt;">You can use the
OpenLayers.Layer.Image with one zoom level in your overview map, like this:<br>
         var imageLayer = new
OpenLayers.Layer.Image(<br>
               
&quot;ImageLayer&quot;, <br>
               
&quot;test.jpg&quot;, <br>
               
new OpenLayers.Size(150, 150),<br>
               
{numZoomLevels: 1, alwaysInRange: true}<br>
            );</span></font></p>

<div>

<p><font size="3" face="Times New Roman"><span style="font-size: 12pt;">On Tue, May 5, 2009 at 6:12 PM, Jean-Daniel JDG. GONON &lt;<a href="mailto:jdg@geosphere.fr" target="_blank">jdg@geosphere.fr</a>&gt; wrote:</span></font></p>



<div link="blue" vlink="purple">

<div>

<p><font color="black" size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: black;">For my question :</span></font></p>

<p><font color="black" size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: black;"><br>
</span></font><font color="black" size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: black;" lang="EN-GB">I can’t specify LAYER
attribut of overviewMap control, because this JPG image is generated by an
admin according wanted layers mapfile’s (it’s generated when it’s necessary) :
the wanted layers can change often, so I can’t modify LAYER attribute each
times.<br>
Selected layers by the admin in the JPG image aren’t saved elsewhere.<br>
<br>
Zooming function doesn’t interrest me : the JPG image has 150*150px resolution,
and I want always display the full map in OverviewMap (whatever the scale and
the current position in OpenLayers map).<br>
But I want to keep a moving function between OpenLayers map and OverviewMap...<br>
<br>
Thank you in advance.<br>
JDG</span></font></p>

<p><font color="navy" size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;" lang="EN-GB"> </span></font></p>

<div>

<div style="text-align: center;" align="center"><font size="3" face="Times New Roman"><span style="font-size: 12pt;">

<hr align="center" size="2" width="100%">

</span></font></div>

<p><b><font size="2" face="Tahoma"><span style="font-size: 10pt; font-family: Tahoma; font-weight: bold;">De :</span></font></b><font size="2" face="Tahoma"><span style="font-size: 10pt; font-family: Tahoma;"> Jean-Daniel JDG. GONON <br>


<b><span style="font-weight: bold;">Envoyé :</span></b> lundi 4 mai 2009
14:14<br>
<b><span style="font-weight: bold;">À :</span></b> &#39;<a href="mailto:dev@openlayers.org" target="_blank">dev@openlayers.org</a>&#39;<br>
<b><span style="font-weight: bold;">Objet :</span></b> .JPG image in
OverviewMap</span></font></p>

</div>

<div>

<div>

<p><font size="3" face="Times New Roman"><span style="font-size: 12pt;"> </span></font></p>

<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;">Hi
a</span></font><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;" lang="EN-GB">ll,</span></font></p>

<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;" lang="EN-GB"> </span></font></p>

<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;" lang="EN-GB">Is it possible to load a .JPG image in the overview map control ?</span></font></p>

<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;" lang="EN-GB"> </span></font></p>

<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;" lang="EN-GB">In my application, a JPG mini-map is generated by an admin according to
layers selected or not.</span></font></p>

<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;" lang="EN-GB">I want to load this JPG image (with a point to locate the current
position), with a fixed size and without zoom function.</span></font></p>

<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;" lang="EN-GB"> </span></font></p>

<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;" lang="EN-GB">Thank you for answers</span></font></p>

<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;" lang="EN-GB">JDG</span></font></p>

</div>

</div>

</div>

</div>

<p style="margin-bottom: 12pt;"><font size="3" face="Times New Roman"><span style="font-size: 12pt;"><br>
_______________________________________________<br>
Dev mailing list<br>
<a href="mailto:Dev@openlayers.org" target="_blank">Dev@openlayers.org</a><br>
<a href="http://openlayers.org/mailman/listinfo/dev" target="_blank">http://openlayers.org/mailman/listinfo/dev</a></span></font></p>

</div>

<p><font size="3" face="Times New Roman"><span style="font-size: 12pt;"><br>
<br clear="all">
<br>
-- <br>
Li XinGang<br>
EMail: <a href="mailto:slinavlee@gmail.com" target="_blank">slinavlee@gmail.com</a><br>
Blog:   <a href="http://avlee.cnblogs.com" target="_blank">avlee.cnblogs.com</a><br>
Site:    <a href="http://www.mapboost.org" target="_blank">www.mapboost.org</a></span></font></p>

</div></div></div>

</div>


</blockquote></div><br><br clear="all"><br>-- <br>Li XinGang<br>EMail: <a href="mailto:slinavlee@gmail.com">slinavlee@gmail.com</a><br>Blog:   <a href="http://avlee.cnblogs.com">avlee.cnblogs.com</a><br>Site:    <a href="http://www.mapboost.org">www.mapboost.org</a><br>