<div dir="ltr">I assume the VPN is involved in both versions of open layers?<div>If not that would be my first guess.</div><div>I noticed a High DPI of 192 instead of the default...were you doing this on both versions? That will create a longer run at image creation.</div><div>Otherwise nothing looks amiss</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Nov 6, 2015 at 10:36 AM, Greg Neff <span dir="ltr"><<a href="mailto:gbneff@cid.utah.gov" target="_blank">gbneff@cid.utah.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">















<div lang="EN-US" link="blue" vlink="blue">

<div>

<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">Code setting up map:</span></font></p>

<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">Additional Info:</span></font></p>

<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy"> </span></font></p>

<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">Windows Server 2008 R2</span></font></p>

<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">Mapguide 2.6</span></font></p>

<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">Openlayers 3.10.1 vs 2.13</span></font></p>

<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">Safari on ios 9.1</span></font></p>

<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy"> </span></font></p>

<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">Mapguide server and web application are
accessed over vpn.</span></font></p>

<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">Everything on the Mapguide side, map
definition layers, projection, etc., is the same for both versions of
openlayers</span></font></p>

<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy"> </span></font></p>

<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">Resources:</span></font></p>

<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy"> </span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">       
<font color="blue"><span style="color:blue"><</span></font><font color="maroon"><span style="color:maroon">link</span></font> <font color="red"><span style="color:red">rel</span></font><font color="blue"><span style="color:blue">="stylesheet"</span></font>
<font color="red"><span style="color:red">href</span></font><font color="blue"><span style="color:blue">="../assets/theme/default/ol.css"</span></font> <font color="blue"><span style="color:blue">/></span></font></span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">       
<font color="blue"><span style="color:blue"><</span></font><font color="maroon"><span style="color:maroon">link</span></font> <font color="red"><span style="color:red">href</span></font><font color="blue"><span style="color:blue">="../assets/theme/default/bootstrap.min.css"</span></font>
<font color="red"><span style="color:red">rel</span></font><font color="blue"><span style="color:blue">="stylesheet"</span></font> <font color="blue"><span style="color:blue">/></span></font></span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">       
<font color="blue"><span style="color:blue"><</span></font><font color="maroon"><span style="color:maroon">script</span></font> <font color="red"><span style="color:red">type</span></font><font color="blue"><span style="color:blue">="text/javascript"</span></font>
<font color="red"><span style="color:red">src</span></font><font color="blue"><span style="color:blue">="../assets/jquery-1.10.2.min.js"></</span></font><font color="maroon"><span style="color:maroon">script</span></font><font color="blue"><span style="color:blue">></span></font></span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">       
<font color="blue"><span style="color:blue"><</span></font><font color="maroon"><span style="color:maroon">script</span></font> <font color="red"><span style="color:red">type</span></font><font color="blue"><span style="color:blue">="text/javascript"</span></font>
<font color="red"><span style="color:red">src</span></font><font color="blue"><span style="color:blue">="../assets/ol.js"></</span></font><font color="maroon"><span style="color:maroon">script</span></font><font color="blue"><span style="color:blue">></span></font></span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">       
<font color="blue"><span style="color:blue"><</span></font><font color="maroon"><span style="color:maroon">script</span></font> <font color="red"><span style="color:red">type</span></font><font color="blue"><span style="color:blue">="text/javascript"</span></font>
<font color="red"><span style="color:red">src</span></font><font color="blue"><span style="color:blue">="../assets/proj4js-2.2.2/dist/proj4.js"></</span></font><font color="maroon"><span style="color:maroon">script</span></font><font color="blue"><span style="color:blue">></span></font></span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">        <font color="blue"><span style="color:blue"><</span></font><font color="maroon"><span style="color:maroon">script</span></font> <font color="red"><span style="color:red">type</span></font><font color="blue"><span style="color:blue">="text/javascript"</span></font>
<font color="red"><span style="color:red">src</span></font><font color="blue"><span style="color:blue">="../assets/bootstrap.min.js"></</span></font><font color="maroon"><span style="color:maroon">script</span></font><font color="blue"><span style="color:blue">></span></font></span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">       
<font color="blue"><span style="color:blue"><</span></font><font color="maroon"><span style="color:maroon">script</span></font> <font color="red"><span style="color:red">type</span></font><font color="blue"><span style="color:blue">="text/javascript"></span></font> 
</span></font></p>

<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy"> </span></font></p>

<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy"> </span></font></p>

<p class="MsoNormal" style="margin-left:.5in;text-autospace:none"><font size="2" color="blue" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas;color:blue">var</span></font><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas"> mapAgentUrl = <font color="maroon"><span style="color:maroon">"../../mapagent/mapagent.fcgi"</span></font>;</span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">       
<font color="blue"><span style="color:blue">function</span></font>
createMap(reqFeatures) {</span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">           
$.getJSON(mapAgentUrl, {</span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">               
<font color="maroon"><span style="color:maroon">"OPERATION"</span></font>:
<font color="maroon"><span style="color:maroon">"CREATERUNTIMEMAP"</span></font>,</span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">               
<font color="maroon"><span style="color:maroon">"VERSION"</span></font>:
<font color="maroon"><span style="color:maroon">"2.6.0"</span></font>,</span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">               
<font color="maroon"><span style="color:maroon">"MAPDEFINITION"</span></font>:
<font color="maroon"><span style="color:maroon">"Library://maps/Cid_Map_mobile.MapDefinition"</span></font>,</span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">               
<font color="maroon"><span style="color:maroon">"USERNAME"</span></font>:
<font color="maroon"><span style="color:maroon">"Anonymous"</span></font>,
<font color="darkgreen"><span style="color:darkgreen">//Or you can use
"SESSION": "<my session id>"</span></font></span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">               
<font color="maroon"><span style="color:maroon">"REQUESTEDFEATURES"</span></font>:
reqFeatures,</span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">               
<font color="darkgreen"><span style="color:darkgreen">//Optional parameters you
can specify and/or experiment with</span></font></span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">               
<font color="darkgreen"><span style="color:darkgreen">//"ICONFORMAT":
"GIF",    //Uncomment to override desired image format
(default: PNG)</span></font></span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">               
<font color="darkgreen"><span style="color:darkgreen">//"ICONWIDTH":
32,         //Uncomment to override
desired icon width (default: 16)</span></font></span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">               
<font color="darkgreen"><span style="color:darkgreen">//"ICONHEIGHT":
32,        //Uncomment to override desired
icon height (default: 16)</span></font></span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">               
<font color="darkgreen"><span style="color:darkgreen">//"ICONSPERSCALERANGE":
3, //Uncomment to observe theme compression for themes exceeding this number of
rules (default: 25)</span></font></span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">               
<font color="darkgreen"><span style="color:darkgreen">//"TARGETMAPNAME":
"MyRuntimeMapForOpenLayers", //Uncomment if you require a specific
map name be given (default: inferred from Map Definition)</span></font></span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">               
<font color="maroon"><span style="color:maroon">"FORMAT"</span></font>:
<font color="maroon"><span style="color:maroon">"application/json"</span></font></span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">           
}, <font color="blue"><span style="color:blue">function</span></font>(data,
textStatus, jqXHR) {</span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">               
loadMap(data);</span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">           
}).error(<font color="blue"><span style="color:blue">function</span></font>(jqXHR,
textStatus, errorThrown) {</span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">               
$(<font color="maroon"><span style="color:maroon">"#error"</span></font>).html(jqXHR.responseText);</span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">           
});</span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">       
}</span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas"> </span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">       
<font color="blue"><span style="color:blue">function</span></font>
loadMap(rtMapInfo) {</span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">           
<font color="blue"><span style="color:blue">var</span></font> x1 =
parseFloat(rtMapInfo.RuntimeMap.Extents[0].LowerLeftCoordinate[0].X[0]);</span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">           
<font color="blue"><span style="color:blue">var</span></font> y1 =
parseFloat(rtMapInfo.RuntimeMap.Extents[0].LowerLeftCoordinate[0].Y[0]);</span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">           
<font color="blue"><span style="color:blue">var</span></font> x2 =
parseFloat(rtMapInfo.RuntimeMap.Extents[0].UpperRightCoordinate[0].X[0]);</span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">           
<font color="blue"><span style="color:blue">var</span></font> y2 =
parseFloat(rtMapInfo.RuntimeMap.Extents[0].UpperRightCoordinate[0].Y[0]);</span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas"> </span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">           
</span></font><font size="2" face="Consolas"><span lang="ES" style="font-size:9.5pt;font-family:Consolas">bounds = [x1, y1, x2, y2];</span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span lang="ES" style="font-size:9.5pt;font-family:Consolas">           
</span></font><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">cen = [(x1 + x2) / 2, (y1 + y2) / 2];</span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas"> </span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">           
<font color="darkgreen"><span style="color:darkgreen">//Get mapguide map
projection</span></font></span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">           
<font color="blue"><span style="color:blue">if</span></font>
(rtMapInfo.RuntimeMap.CoordinateSystem[0].EpsgCode[0].length > 0) {</span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">               
<font color="darkgreen"><span style="color:darkgreen">//mapOptions.projection =
"EPSG:" + rtMapInfo.RuntimeMap.CoordinateSystem[0].EpsgCode[0];</span></font></span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">               
mapProjection = <font color="maroon"><span style="color:maroon">"EPSG:"</span></font>
+ rtMapInfo.RuntimeMap.CoordinateSystem[0].EpsgCode[0];</span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">               
<font color="darkgreen"><span style="color:darkgreen">//alert("EPSG:" +
rtMapInfo.RuntimeMap.CoordinateSystem[0].EpsgCode[0]);</span></font></span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">               
<font color="darkgreen"><span style="color:darkgreen">//alert(mapOptions.projection.toString());</span></font></span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">           
}</span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas"> </span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">           
<font color="darkgreen"><span style="color:darkgreen">//Adjust the scale
assumptions for MapGuide layers</span></font></span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">           
<font color="darkgreen"><span style="color:darkgreen">//Tiled layers MUST use a
DPI value of 96, untiled layers can use a </span></font></span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">           
<font color="darkgreen"><span style="color:darkgreen">//different DPI value which
will be passed to the server as a parameter.</span></font></span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">           
<font color="darkgreen"><span style="color:darkgreen">//Tiled and untiled layers
must adjust the OL INCHES_PER_UNIT values</span></font></span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">           
<font color="darkgreen"><span style="color:darkgreen">//for any degree-based
projections.</span></font></span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas"> </span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">           
<font color="darkgreen"><span style="color:darkgreen">//Get meters per unit value
from Mapguide</span></font></span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">           
metersPerUnit =
parseFloat(rtMapInfo.RuntimeMap.CoordinateSystem[0].MetersPerUnit[0]);</span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">           
<font color="darkgreen"><span style="color:darkgreen">//metersPerUnit =
111319.4908;</span></font></span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">           
<font color="darkgreen"><span style="color:darkgreen">//var inPerUnit =
ol.INCHES_PER_UNIT.m * metersPerUnit;</span></font></span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">           
<font color="darkgreen"><span style="color:darkgreen">//ol.INCHES_PER_UNIT["dd"]
= inPerUnit;</span></font></span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">           
<font color="darkgreen"><span style="color:darkgreen">//ol.INCHES_PER_UNIT["degrees"]
= inPerUnit;</span></font></span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">           
<font color="darkgreen"><span style="color:darkgreen">//ol.DOTS_PER_INCH = 96;</span></font></span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas"> </span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">           
<font color="darkgreen"><span style="color:darkgreen">//Get Mapguide map name and
sessionId</span></font></span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">           
mapName = <a href="http://rtMapInfo.RuntimeMap.Name" target="_blank">rtMapInfo.RuntimeMap.Name</a>[0];</span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">           
sessionId = rtMapInfo.RuntimeMap.SessionId[0];</span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas"> </span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">           
<font color="darkgreen"><span style="color:darkgreen">//**** layers ****</span></font></span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">           
<font color="darkgreen"><span style="color:darkgreen">//Bing layers</span></font></span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">           
bingRoad = <font color="blue"><span style="color:blue">new</span></font>
ol.layer.Tile({</span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">               
title: <font color="maroon"><span style="color:maroon">"bingRoad"</span></font>,</span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">               
visible: <font color="blue"><span style="color:blue">true</span></font>,</span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">               
source: <font color="blue"><span style="color:blue">new</span></font>
ol.source.BingMaps({</span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">                    key:
apiKeyBing,</span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">                   
imagerySet: <font color="maroon"><span style="color:maroon">"Road"</span></font>,</span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">                   
maxZoom: 19</span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">               
})</span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">           
});</span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas"> </span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">           
bingAerialWithLabels = <font color="blue"><span style="color:blue">new</span></font>
ol.layer.Tile({</span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">               
title: <font color="maroon"><span style="color:maroon">"bingAerialWithLabels"</span></font>,</span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">            
   visible: <font color="blue"><span style="color:blue">false</span></font>,</span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">               
source: <font color="blue"><span style="color:blue">new</span></font>
ol.source.BingMaps({</span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">                   
key: apiKeyBing,</span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">                   
imagerySet: <font color="maroon"><span style="color:maroon">"AerialWithLabels"</span></font>,</span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">                   
maxZoom: 19</span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">               
})</span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">           
});</span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas"> </span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">           
<font color="darkgreen"><span style="color:darkgreen">//mapguide layer</span></font></span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">            mgLayer
= <font color="blue"><span style="color:blue">new</span></font> ol.layer.Image({</span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">               
extent: bounds,</span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">               
source: <font color="blue"><span style="color:blue">new</span></font>
ol.source.ImageMapGuide({</span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">                   
projection: mapProjection,</span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">                   
url: mapAgentUrl,</span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">                   
displayDpi: 192, <font color="darkgreen"><span style="color:darkgreen">//needed
for ipad</span></font></span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">                   
useOverlay: <font color="blue"><span style="color:blue">true</span></font>,</span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">                   
ratio: 2,</span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">                   
metersPerUnit: metersPerUnit,  <font color="darkgreen"><span style="color:darkgreen">//default is 1 </span></font></span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">                   
params: {</span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">                       
mapname: mapName,</span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">                       
session: sessionId,</span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">                       
behavior: 2,</span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">                       
FORMAT: <font color="maroon"><span style="color:maroon">'PNG'</span></font></span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">                   
}</span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">               
})</span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">           
});</span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas"> </span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">           
<font color="darkgreen"><span style="color:darkgreen">//mapguide selection layer</span></font></span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">           
selLayer = <font color="blue"><span style="color:blue">new</span></font>
ol.layer.Image({</span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">               
visible: <font color="blue"><span style="color:blue">true</span></font>,</span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">               
extent: bounds,</span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">               
source: <font color="blue"><span style="color:blue">new</span></font>
ol.source.ImageMapGuide({</span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">                   
projection: mapProjection,</span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">                   
url: mapAgentUrl,</span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">                   
displayDpi: 192, <font color="darkgreen"><span style="color:darkgreen">//needed
for ipad</span></font></span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">                   
useOverlay: <font color="blue"><span style="color:blue">true</span></font>,</span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">                   
ratio: 2,</span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">                   
metersPerUnit: metersPerUnit,</span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">                   
params: {</span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">                       
mapname: mapName,</span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">                       
session: sessionId,</span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">                       
<font color="darkgreen"><span style="color:darkgreen">//selectioncolor:
'0xFF000000',</span></font></span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">                       
selectioncolor: <font color="maroon"><span style="color:maroon">'0x000000'</span></font>,</span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">                       
behavior: 5,</span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">                       
FORMAT: <font color="maroon"><span style="color:maroon">'PNG'</span></font></span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">                   
}</span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">               
})</span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">           
});</span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas"> </span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">           
<font color="darkgreen"><span style="color:darkgreen">//**** view ****</span></font></span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">           
view1 = <font color="blue"><span style="color:blue">new</span></font> ol.View({</span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">               
center: cen,</span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">               
projection: mapProjection,</span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">               
zoom: 12</span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">           
})</span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas"> </span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">           
<font color="blue"><span style="color:blue">var</span></font> controls =
ol.control.defaults({ zoom: <font color="blue"><span style="color:blue">false</span></font>,
rotate: <font color="blue"><span style="color:blue">false</span></font>});</span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">           
<font color="blue"><span style="color:blue">var</span></font> zoomToExtent = <font color="blue"><span style="color:blue">new</span></font>
ol.control.ZoomToExtent({extent: bounds});</span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">           
<font color="blue"><span style="color:blue">var</span></font> interactions =
ol.interaction.defaults({ altShiftDragRotate: <font color="blue"><span style="color:blue">false</span></font>, pinchRotate: <font color="blue"><span style="color:blue">false</span></font> });</span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas"> </span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">           
<font color="darkgreen"><span style="color:darkgreen">//**** map ****</span></font></span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">           
map = <font color="blue"><span style="color:blue">new</span></font> ol.Map({</span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">               
layers: [bingRoad, bingAerialWithLabels, mgLayer, selLayer],</span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">               
controls: controls,</span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">               
interactions: interactions,</span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">               
target: <font color="maroon"><span style="color:maroon">'map'</span></font>,</span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">               
view: view1</span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">           
});</span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas"> </span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Consolas"><span style="font-size:9.5pt;font-family:Consolas">           
map.addControl(zoomToExtent);</span></font></p>

<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy"> </span></font></p>

<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy"> </span></font></p>

<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy"> </span></font></p>

<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">Thanks,</span></font></p>

<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy"> </span></font></p>

<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy"> </span></font></p>

<div>

<p class="MsoNormal"><font size="3" color="#0000a0" face="Arial"><span style="font-size:12.0pt;font-family:Arial;color:#0000a0">Gregory B. Neff</span></font><font color="navy"><span style="color:navy"></span></font></p>

<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">District Engineer</span></font><font color="navy"><span style="color:navy"></span></font></p>

<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">Cottonwood Improvement District</span></font><font color="navy"><span style="color:navy"></span></font></p>

<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">8620 Highland Drive</span></font><font color="navy"><span style="color:navy"></span></font></p>

<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">Sandy</span></font><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">, Utah
 84093</span></font><font color="navy"><span style="color:navy"></span></font></p>

<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy"><a href="tel:%28801%29%20943-7671" value="+18019437671" target="_blank">(801) 943-7671</a></span></font></p>

</div>

<div>

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

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

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

<p class="MsoNormal"><b><font size="2" face="Tahoma"><span style="font-size:10.0pt;font-family:Tahoma;font-weight:bold">From:</span></font></b><font size="2" face="Tahoma"><span style="font-size:10.0pt;font-family:Tahoma"> mapguide-users
[mailto:<a href="mailto:mapguide-users-bounces@lists.osgeo.org" target="_blank">mapguide-users-bounces@lists.osgeo.org</a>] <b><span style="font-weight:bold">On Behalf Of </span></b>Scott Hameister<br>
<b><span style="font-weight:bold">Sent:</span></b> Wednesday, November 04, 2015
5:26 PM<br>
<b><span style="font-weight:bold">To:</span></b> MapGuide Users Mail List<br>
<b><span style="font-weight:bold">Subject:</span></b> Re: [mapguide-users]
Mapguide layer slow with ol3</span></font></p>

</div>

<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"> </span></font></p>

<p><font size="3" face="Times New Roman"><span style="font-size:12.0pt">Can you
post your code</span></font></p>

<div>

<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">On Nov 4, 2015 6:25 PM, "Scott Hameister" <<a href="mailto:scotth@mpowerinnovations.com" target="_blank">scotth@mpowerinnovations.com</a>>
wrote:</span></font></p>

<p><font size="3" face="Times New Roman"><span style="font-size:12.0pt">Haven't
noticed a slow down either, just the opposite..but haven't combined it with
BING, will try tomorrow</span></font></p>

<div>

<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">On Nov 4, 2015 4:32 PM, "GordonL" <<a href="mailto:gordon.luckett@arrowgeomatics.com" target="_blank">gordon.luckett@arrowgeomatics.com</a>>
wrote:</span></font></p>

<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">When you check the OL3 demo for MapGuide it is really quick:<br>
<br>
<a href="http://openlayers.org/en/v3.0.0/examples/mapguide-untiled.html" target="_blank">http://openlayers.org/en/v3.0.0/examples/mapguide-untiled.html</a><br>
<br>
The OL 2 version seems almost as quick:<br>
<br>
<a href="http://dev.openlayers.org/examples/mapguide.html" target="_blank">http://dev.openlayers.org/examples/mapguide.html</a><br>
<br>
I copied out the code for each and watched the network.  They were about
on<br>
par, with OL 3 a little quicker...<br>
<br>
I wonder if it's the server...<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://osgeo-org.1560.x6.nabble.com/Mapguide-layer-slow-with-ol3-tp5233404p5234542.html" target="_blank">http://osgeo-org.1560.x6.nabble.com/Mapguide-layer-slow-with-ol3-tp5233404p5234542.html</a><br>
Sent from the MapGuide Users mailing list archive at Nabble.com.<br>
_______________________________________________<br>
mapguide-users mailing list<br>
<a href="mailto:mapguide-users@lists.osgeo.org" target="_blank">mapguide-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapguide-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a></span></font></p>

</div>

</div>

</div>

</div>


<br>_______________________________________________<br>
mapguide-users mailing list<br>
<a href="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapguide-users" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><b style="color:rgb(136,136,136);font-family:Calibri,sans-serif;font-size:14.6666660308838px"><span style="font-size:10pt;font-family:Tahoma,sans-serif;color:rgb(0,0,139)">Scott Hameister | <a href="http://www.mpowerinnovations.com/" style="color:rgb(17,85,204)" target="_blank"><span style="color:blue">www.mpowerinnovations.com</span></a><br>________________________________________<br></span></b><b style="color:rgb(136,136,136);font-family:Calibri,sans-serif;font-size:14.6666660308838px"><span style="font-size:10pt;font-family:Tahoma,sans-serif;color:gray">mPower Innovations</span></b><span style="font-size:9pt;font-family:Tahoma,sans-serif;color:gray"><br>1051 N Lynndale Drive, Suite 2A, Appleton, WI 54914<br></span><span style="font-size:10pt;font-family:Tahoma,sans-serif;color:gray">Main: <a href="tel:%28877%29%20269-6971%20x%20207" value="+18772696971" style="color:rgb(17,85,204)" target="_blank">(877) 269-6971 x 204</a> | Mobile: <a href="tel:%28920%29%20470-0292" value="+19204700292" style="color:rgb(17,85,204)" target="_blank">(920) 419-6250</a></span><span style="font-size:9pt;font-family:Tahoma,sans-serif;color:gray"></span></div></div>
</div>