[GeoNode-users] zoom levels in geoexplorer

Aquila Imaging aquilaimaging at gmail.com
Mon Dec 19 08:46:23 PST 2016


Hi Simone,
Thank you for the advise. This is very helpful. I will give it a try! :)

Regards,
Justin

On Mon, Dec 19, 2016 at 12:11 AM, Simone Dalmasso <simone.dalmasso at gmail.com
> wrote:

> Hi,
>
>  you should follow the guide for customising the look and feel
> http://docs.geonode.org/en/master/tutorials/admin/
> customize_lookfeel/index.html.
> If you create your own map_geoexplorer.js using the same folder structure
> then it will get used instead of the default one.
>
> You can add the  'numZoomLevels: 26' at whatever line in the config
> https://github.com/GeoNode/geonode/blob/master/geonode/
> maps/templates/maps/map_geoexplorer.js#L32.
>
> regards
>
> 2016-12-17 20:55 GMT+01:00 Aquila Imaging <aquilaimaging at gmail.com>:
>
>> Hello!
>>
>> I am hoping someone can assist me. Forgive the ignorance of my questions
>> below. This is not my area of expertise.
>>
>>
>> I am trying to increase the zoom levels in geoexplorer. From what I have
>> gathered I need to modify: https://github.com/GeoNode/geo
>> node/blob/master/geonode/maps/templates/maps/map_geoexplorer.js
>>
>> Per this: http://gis.stackexchange.com/questions/91902/geoexplorer-set
>> ting-more-custom-zoom-levels  I need to add the following to the
>> "maps/map_geoexplorer.js" file.
>>
>>
>>
>> this.mapPanel = Ext.ComponentMgr.create(Ext.applyIf({
>>         xtype: config.xtype || "gx_mappanel",
>>         map: Ext.applyIf({
>>             theme: mapConfig.theme || null,
>>             controls: mapConfig.controls || [
>>                 new OpenLayers.Control.Navigation({
>>                     zoomWheelOptions: {interval: 250},
>>                     dragPanOptions: {enableKinetic: true}
>>                 }),
>>                 new OpenLayers.Control.PanPanel(),
>>                 new OpenLayers.Control.ZoomPanel(),
>>                 new OpenLayers.Control.Attribution()
>>             ],
>>             maxExtent: mapConfig.maxExtent && OpenLayers.Bounds.fromArray(mapConfig.maxExtent),
>>             restrictedExtent: mapConfig.restrictedExtent && OpenLayers.Bounds.fromArray(mapConfig.restrictedExtent),
>>             numZoomLevels: mapConfig.numZoomLevels || 26
>>         }, mapConfig),
>>         center: config.center && new OpenLayers.LonLat(config.center[0], config.center[1]),
>>         resolutions: config.resolutions,
>>         forceInitialExtent: true,
>>         layers: [new OpenLayers.Layer(null, baseLayerConfig)],
>>         items: this.mapItems,
>>         plugins: this.mapPlugins,
>>         tbar: config.tbar || new Ext.Toolbar({
>>             hidden: true
>>         })
>>     }, config));
>>
>>
>>
>> Where do I add the following in the file? which line?
>>
>> 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
>>
>> this to my existing installed instance of geonode?
>>
>> Again I apologise for the ignorance of my questions. Thanks in advance for any assistance.
>>
>> Regards,
>>
>> Justin
>>
>>
>> _______________________________________________
>> geonode-users mailing list
>> geonode-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/geonode-users
>>
>>
>
>
> --
> Simone
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20161219/80397e0c/attachment-0001.html>


More information about the geonode-users mailing list