[GeoNode-users] Create Map interface questions

Simone Dalmasso simone.dalmasso at gmail.com
Mon Jan 18 06:16:43 PST 2016


in your local_setting :)

2016-01-18 15:15 GMT+01:00 Simone Dalmasso <simone.dalmasso at gmail.com>:

> you can just rewrite the entire MAP_BASELAYERS
>
> 2016-01-18 14:21 GMT+01:00 David Alda Fernandez de Lezea <dalda at hazi.eus>:
>
>> Hi,
>>
>> Yes in my local_settings.py I have
>>
>> MAP_BASELAYERS = [{
>>     "source": {
>>         "ptype": "gxp_wmscsource",
>>         "url": GEOSERVER_URL + "wms",
>>         "restUrl": "/gs/rest"
>>      }
>>   }]
>>
>> If I change the URL to GEOSERVER_URL + "geonode/wms" it duplicates the
>> entry in the combobox.
>>
>> I've found the settings.py file under python2.7/dits-packages/geonode and
>> in it I can see what you've mentioned
>>
>> LOCAL_GEOSERVER = {
>>         "source": {
>>             "ptype": "gxp_wmscsource",
>>             "url": OGC_SERVER['default']['PUBLIC_LOCATION'] + "wms",
>>             "restUrl": "/gs/rest"
>>         }
>>     }
>>     baselayers = MAP_BASELAYERS
>>     MAP_BASELAYERS = [LOCAL_GEOSERVER]
>>     MAP_BASELAYERS.extend(baselayers)
>>
>>
>> Should I modify it here?
>>
>> Agur bero bat,
>>
>>
>>
>> David Alda Fernández de Lezea
>> Área de Sistemas de Información Geográfica, Planificación Territorial y
>> Forestal Informazio Geografikoen Sistemak, Lurralde eta Baso Antolaketaren
>> Arloa.
>> dalda at hazi.eus | www.hazi.eus
>> T 945 003 240 – M 627 923 170 – F 945 003 290
>> Hazi | Granja Modelo de Arkaute s/n | 01192 Arkaute – Araba
>>
>> *********************  LEGE OHARRA   *******************   AVISOLEGAL
>> *******************   DISCLAIMER   *****************************
>> Mezu hau pertsonala eta isilpekoa da eta baimenik gabeko erabilera
>> debekatua dago legalki. Jasotzailea ez bazara ezabatu mezua, bidali eta
>> kontserbatu gabe.
>> Este mensaje es personal y confidencial y su uso no autorizado está
>> prohibido legalmente. Si usted no es el destinatario, proceda a borrarlo,
>> sin reenviarlo ni conservarlo.
>> This message is personal and confidential, unauthorised use is legally
>> prohibited. If you are not the intended recipient, delete it without
>> resending or backing it.
>>
>> De: Simone Dalmasso [mailto:simone.dalmasso at gmail.com]
>> Enviado el: lunes, 18 de enero de 2016 13:28
>> Para: David Alda Fernandez de Lezea
>> CC: geonode-users at lists.osgeo.org
>> Asunto: Re: [GeoNode-users] Create Map interface questions
>>
>> Have you already tried ti change this line?
>> https://github.com/GeoNode/geonode/blob/master/geonode/settings.py#L928
>>
>> 2016-01-18 13:10 GMT+01:00 David Alda Fernandez de Lezea <dalda at hazi.eus
>> >:
>> Hi Simone,
>>
>> Thanks for your response. The change I want to make in the combo is the
>> URL itself . Now it's pointing to http://myip.com/geoserver/wms but I
>> want to change it to http://myip.com/geoserver/geonode/wms so I can
>> separate the contents into workspaces. Any thoughts?
>>
>> Thanks.
>>
>>
>> Agur bero bat,
>>
>>
>>
>> David Alda Fernández de Lezea
>> Área de Sistemas de Información Geográfica, Planificación Territorial y
>> Forestal Informazio Geografikoen Sistemak, Lurralde eta Baso Antolaketaren
>> Arloa.
>> dalda at hazi.eus | www.hazi.eus
>> T 945 003 240 – M 627 923 170 – F 945 003 290
>> Hazi | Granja Modelo de Arkaute s/n | 01192 Arkaute – Araba
>>
>> *********************  LEGE OHARRA   *******************   AVISOLEGAL
>> *******************   DISCLAIMER   *****************************
>> Mezu hau pertsonala eta isilpekoa da eta baimenik gabeko erabilera
>> debekatua dago legalki. Jasotzailea ez bazara ezabatu mezua, bidali eta
>> kontserbatu gabe.
>> Este mensaje es personal y confidencial y su uso no autorizado está
>> prohibido legalmente. Si usted no es el destinatario, proceda a borrarlo,
>> sin reenviarlo ni conservarlo.
>> This message is personal and confidential, unauthorised use is legally
>> prohibited. If you are not the intended recipient, delete it without
>> resending or backing it.
>>
>> De: Simone Dalmasso [mailto:simone.dalmasso at gmail.com]
>> Enviado el: lunes, 18 de enero de 2016 10:37
>> Para: David Alda Fernandez de Lezea
>> CC: geonode-users at lists.osgeo.org
>> Asunto: Re: [GeoNode-users] Create Map interface questions
>>
>> Hi,
>>
>> you can change the name that appears there directly from the geoserver
>> admin panel.
>>
>> About the ID, I think you would have to change the js code, not very
>> easy..., https://github.com/GeoNode/django-geoexplorer, and you would
>> have to re-compile it.
>>
>> hope it helps
>>
>> 2016-01-18 9:50 GMT+01:00 David Alda Fernandez de Lezea <dalda at hazi.eus>:
>> Hi List,
>>
>> I'd like to ask if it's possible and how to edit/customize the following
>> cases:
>>
>>         1. In the Map Creation part in the Available Servers combobox I'd
>> like to change "My Local GeoServer" to point to the geonode workspace (
>> http://myip.com/geoserver/geonode/wms) and the caption for another one.
>> If I edit the local_settings.py in the MAP_BASELAYERS and change it there
>> then it duplicates the entry in the combo. Any ideas how to change it?
>>
>>         2. The other thing is how to get the column "ID" (once you've
>> chosen a server and list it contents) wider, because I can hardly see the
>> names of the layers.
>>
>> Thanks in advance,
>>
>> Regards,
>>
>> Agur bero bat,
>>
>>
>> David Alda Fernández de Lezea
>> Área de Sistemas de Información Geográfica, Planificación Territorial y
>> Forestal Informazio Geografikoen Sistemak, Lurralde eta Baso Antolaketaren
>> Arloa.
>> dalda at hazi.eus | www.hazi.eus
>> T 945 003 240 - M 627 923 170 - F 945 003 290
>> Hazi | Granja Modelo de Arkaute s/n | 01192 Arkaute - Araba
>>
>> *********************  LEGE OHARRA   *******************   AVISOLEGAL
>> *******************   DISCLAIMER   *****************************
>> Mezu hau pertsonala eta isilpekoa da eta baimenik gabeko erabilera
>> debekatua dago legalki. Jasotzailea ez bazara ezabatu mezua, bidali eta
>> kontserbatu gabe.
>> Este mensaje es personal y confidencial y su uso no autorizado está
>> prohibido legalmente. Si usted no es el destinatario, proceda a borrarlo,
>> sin reenviarlo ni conservarlo.
>> This message is personal and confidential, unauthorised use is legally
>> prohibited. If you are not the intended recipient, delete it without
>> resending or backing it.
>>
>> _______________________________________________
>> geonode-users mailing list
>> geonode-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/geonode-users
>>
>>
>>
>>
>> --
>> Simone
>>
>>
>>
>>
>> --
>> Simone
>>
>
>
>
> --
> Simone
>



-- 
Simone
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20160118/4f798327/attachment.html>


More information about the geonode-users mailing list