<div dir="ltr"><div><div><div><span style="font-family:arial,helvetica,sans-serif">Hello! <br><br></span></div><span style="font-family:arial,helvetica,sans-serif">I am hoping someone can assist me. Forgive the ignorance of my questions below. This is not my area of expertise. <br><br><br></span></div><span style="font-family:arial,helvetica,sans-serif">I am trying to increase the zoom levels in geoexplorer. From what I have gathered I need to modify: <a href="https://github.com/GeoNode/geonode/blob/master/geonode/maps/templates/maps/map_geoexplorer.js">https://github.com/GeoNode/geonode/blob/master/geonode/maps/templates/maps/map_geoexplorer.js</a><br><br></span></div><span style="font-family:arial,helvetica,sans-serif">Per this: <a href="http://gis.stackexchange.com/questions/91902/geoexplorer-setting-more-custom-zoom-levels">http://gis.stackexchange.com/questions/91902/geoexplorer-setting-more-custom-zoom-levels</a> I need to add the following to the "maps/map_geoexplorer.js" file. <br><br><br><br></span><pre class="gmail-lang-js gmail-prettyprint gmail-prettyprinted"><span style="font-family:arial,helvetica,sans-serif"><code><span class="gmail-kwd">this</span><span class="gmail-pun">.</span><span class="gmail-pln">mapPanel </span><span class="gmail-pun">=</span><span class="gmail-pln"> </span><span class="gmail-typ">Ext</span><span class="gmail-pun">.</span><span class="gmail-typ">ComponentMgr</span><span class="gmail-pun">.</span><span class="gmail-pln">create</span><span class="gmail-pun">(</span><span class="gmail-typ">Ext</span><span class="gmail-pun">.</span><span class="gmail-pln">applyIf</span><span class="gmail-pun">({</span><span class="gmail-pln">
xtype</span><span class="gmail-pun">:</span><span class="gmail-pln"> config</span><span class="gmail-pun">.</span><span class="gmail-pln">xtype </span><span class="gmail-pun">||</span><span class="gmail-pln"> </span><span class="gmail-str">"gx_mappanel"</span><span class="gmail-pun">,</span><span class="gmail-pln">
map</span><span class="gmail-pun">:</span><span class="gmail-pln"> </span><span class="gmail-typ">Ext</span><span class="gmail-pun">.</span><span class="gmail-pln">applyIf</span><span class="gmail-pun">({</span><span class="gmail-pln">
theme</span><span class="gmail-pun">:</span><span class="gmail-pln"> mapConfig</span><span class="gmail-pun">.</span><span class="gmail-pln">theme </span><span class="gmail-pun">||</span><span class="gmail-pln"> </span><span class="gmail-kwd">null</span><span class="gmail-pun">,</span><span class="gmail-pln">
controls</span><span class="gmail-pun">:</span><span class="gmail-pln"> mapConfig</span><span class="gmail-pun">.</span><span class="gmail-pln">controls </span><span class="gmail-pun">||</span><span class="gmail-pln"> </span><span class="gmail-pun">[</span><span class="gmail-pln">
</span><span class="gmail-kwd">new</span><span class="gmail-pln"> </span><span class="gmail-typ">OpenLayers</span><span class="gmail-pun">.</span><span class="gmail-typ">Control</span><span class="gmail-pun">.</span><span class="gmail-typ">Navigation</span><span class="gmail-pun">({</span><span class="gmail-pln">
zoomWheelOptions</span><span class="gmail-pun">:</span><span class="gmail-pln"> </span><span class="gmail-pun">{</span><span class="gmail-pln">interval</span><span class="gmail-pun">:</span><span class="gmail-pln"> </span><span class="gmail-lit">250</span><span class="gmail-pun">},</span><span class="gmail-pln">
dragPanOptions</span><span class="gmail-pun">:</span><span class="gmail-pln"> </span><span class="gmail-pun">{</span><span class="gmail-pln">enableKinetic</span><span class="gmail-pun">:</span><span class="gmail-pln"> </span><span class="gmail-kwd">true</span><span class="gmail-pun">}</span><span class="gmail-pln">
</span><span class="gmail-pun">}),</span><span class="gmail-pln">
</span><span class="gmail-kwd">new</span><span class="gmail-pln"> </span><span class="gmail-typ">OpenLayers</span><span class="gmail-pun">.</span><span class="gmail-typ">Control</span><span class="gmail-pun">.</span><span class="gmail-typ">PanPanel</span><span class="gmail-pun">(),</span><span class="gmail-pln">
</span><span class="gmail-kwd">new</span><span class="gmail-pln"> </span><span class="gmail-typ">OpenLayers</span><span class="gmail-pun">.</span><span class="gmail-typ">Control</span><span class="gmail-pun">.</span><span class="gmail-typ">ZoomPanel</span><span class="gmail-pun">(),</span><span class="gmail-pln">
</span><span class="gmail-kwd">new</span><span class="gmail-pln"> </span><span class="gmail-typ">OpenLayers</span><span class="gmail-pun">.</span><span class="gmail-typ">Control</span><span class="gmail-pun">.</span><span class="gmail-typ">Attribution</span><span class="gmail-pun">()</span><span class="gmail-pln">
</span><span class="gmail-pun">],</span><span class="gmail-pln">
maxExtent</span><span class="gmail-pun">:</span><span class="gmail-pln"> mapConfig</span><span class="gmail-pun">.</span><span class="gmail-pln">maxExtent </span><span class="gmail-pun">&&</span><span class="gmail-pln"> </span><span class="gmail-typ">OpenLayers</span><span class="gmail-pun">.</span><span class="gmail-typ">Bounds</span><span class="gmail-pun">.</span><span class="gmail-pln">fromArray</span><span class="gmail-pun">(</span><span class="gmail-pln">mapConfig</span><span class="gmail-pun">.</span><span class="gmail-pln">maxExtent</span><span class="gmail-pun">),</span><span class="gmail-pln">
restrictedExtent</span><span class="gmail-pun">:</span><span class="gmail-pln"> mapConfig</span><span class="gmail-pun">.</span><span class="gmail-pln">restrictedExtent </span><span class="gmail-pun">&&</span><span class="gmail-pln"> </span><span class="gmail-typ">OpenLayers</span><span class="gmail-pun">.</span><span class="gmail-typ">Bounds</span><span class="gmail-pun">.</span><span class="gmail-pln">fromArray</span><span class="gmail-pun">(</span><span class="gmail-pln">mapConfig</span><span class="gmail-pun">.</span><span class="gmail-pln">restrictedExtent</span><span class="gmail-pun">),</span><span class="gmail-pln">
numZoomLevels</span><span class="gmail-pun">:</span><span class="gmail-pln"> mapConfig</span><span class="gmail-pun">.</span><span class="gmail-pln">numZoomLevels </span><span class="gmail-pun">||</span><span class="gmail-pln"> </span><span class="gmail-lit">26</span><span class="gmail-pln">
</span><span class="gmail-pun">},</span><span class="gmail-pln"> mapConfig</span><span class="gmail-pun">),</span><span class="gmail-pln">
center</span><span class="gmail-pun">:</span><span class="gmail-pln"> config</span><span class="gmail-pun">.</span><span class="gmail-pln">center </span><span class="gmail-pun">&&</span><span class="gmail-pln"> </span><span class="gmail-kwd">new</span><span class="gmail-pln"> </span><span class="gmail-typ">OpenLayers</span><span class="gmail-pun">.</span><span class="gmail-typ">LonLat</span><span class="gmail-pun">(</span><span class="gmail-pln">config</span><span class="gmail-pun">.</span><span class="gmail-pln">center</span><span class="gmail-pun">[</span><span class="gmail-lit">0</span><span class="gmail-pun">],</span><span class="gmail-pln"> config</span><span class="gmail-pun">.</span><span class="gmail-pln">center</span><span class="gmail-pun">[</span><span class="gmail-lit">1</span><span class="gmail-pun">]),</span><span class="gmail-pln">
resolutions</span><span class="gmail-pun">:</span><span class="gmail-pln"> config</span><span class="gmail-pun">.</span><span class="gmail-pln">resolutions</span><span class="gmail-pun">,</span><span class="gmail-pln">
forceInitialExtent</span><span class="gmail-pun">:</span><span class="gmail-pln"> </span><span class="gmail-kwd">true</span><span class="gmail-pun">,</span><span class="gmail-pln">
layers</span><span class="gmail-pun">:</span><span class="gmail-pln"> </span><span class="gmail-pun">[</span><span class="gmail-kwd">new</span><span class="gmail-pln"> </span><span class="gmail-typ">OpenLayers</span><span class="gmail-pun">.</span><span class="gmail-typ">Layer</span><span class="gmail-pun">(</span><span class="gmail-kwd">null</span><span class="gmail-pun">,</span><span class="gmail-pln"> baseLayerConfig</span><span class="gmail-pun">)],</span><span class="gmail-pln">
items</span><span class="gmail-pun">:</span><span class="gmail-pln"> </span><span class="gmail-kwd">this</span><span class="gmail-pun">.</span><span class="gmail-pln">mapItems</span><span class="gmail-pun">,</span><span class="gmail-pln">
plugins</span><span class="gmail-pun">:</span><span class="gmail-pln"> </span><span class="gmail-kwd">this</span><span class="gmail-pun">.</span><span class="gmail-pln">mapPlugins</span><span class="gmail-pun">,</span><span class="gmail-pln">
tbar</span><span class="gmail-pun">:</span><span class="gmail-pln"> config</span><span class="gmail-pun">.</span><span class="gmail-pln">tbar </span><span class="gmail-pun">||</span><span class="gmail-pln"> </span><span class="gmail-kwd">new</span><span class="gmail-pln"> </span><span class="gmail-typ">Ext</span><span class="gmail-pun">.</span><span class="gmail-typ">Toolbar</span><span class="gmail-pun">({</span><span class="gmail-pln">
hidden</span><span class="gmail-pun">:</span><span class="gmail-pln"> </span><span class="gmail-kwd">true</span><span class="gmail-pln">
</span><span class="gmail-pun">})</span><span class="gmail-pln">
</span><span class="gmail-pun">},</span><span class="gmail-pln"> config</span><span class="gmail-pun">));<br><br></span></code></span></pre><pre class="gmail-lang-js gmail-prettyprint gmail-prettyprinted"><span style="font-family:arial,helvetica,sans-serif"><code><span class="gmail-pun"><br><br>Where do I add the following in the file? which line? <br><br></span></code></span></pre><pre class="gmail-lang-js gmail-prettyprint gmail-prettyprinted"><span style="font-family:arial,helvetica,sans-serif"><code><span class="gmail-pun">Also, do I need to make this change on a fork of geonode and then install with this mod in place or can I just add<br></span></code></span></pre><pre class="gmail-lang-js gmail-prettyprint gmail-prettyprinted"><span style="font-family:arial,helvetica,sans-serif"><code><span class="gmail-pun">this to my existing installed instance of geonode?<br><br></span></code></span></pre><pre class="gmail-lang-js gmail-prettyprint gmail-prettyprinted"><span style="font-family:arial,helvetica,sans-serif"><code><span class="gmail-pun">Again I apologise for the ignorance of my questions. Thanks in advance for any assistance. <br><br></span></code></span></pre><pre class="gmail-lang-js gmail-prettyprint gmail-prettyprinted"><span style="font-family:arial,helvetica,sans-serif"><code><span class="gmail-pun">Regards,<br></span></code></span></pre><pre class="gmail-lang-js gmail-prettyprint gmail-prettyprinted"><code><span class="gmail-pun"><span style="font-family:arial,helvetica,sans-serif">Justin</span><br></span></code></pre></div>