Hi David,
sorry but I don't understand it, I thought that the MAP_BASELAYERSOURCES are
to set the sources of the MAP_BASELAYERS which are visible on the LayerTree
on the left side.

I hope you understand my description above. But I want to add a Server to
the Available Layers Dialog which pops up if you create a new map oder press
the add new layer button. For that purpose the same
variable MAP_BASELAYERSOURCES is also responsible? Can you explain to me,
what the ptype property does?

MAP_BASELAYERSOURCES = {
    "any": {
        "ptype":"gx_olsource"
    },
    "capra": {
        "url":"/geoserver/wms"
    },
    "google":{
        "ptype":"gx_googlesource",
        "apiKey": GOOGLE_API_KEY
    }
}

MAP_BASELAYERS = [{
    "source":"any",
    "type":"OpenLayers.Layer",
    "args":["No background"],
    "visibility": False,
    "fixed": True,
    "group":"background"
  },{

........

*
*



--
Patrick

2011/9/5 David Winslow <[email protected]>

> I believe adding an appropriate entry to the MAP_BASELAYERSOURCES will get
> your WMS into every map by default.
>
> --
> David Winslow
> OpenGeo - http://opengeo.org/
>
>
> On Mon, Sep 5, 2011 at 7:55 AM, Patrick Krejci <[email protected]> wrote:
>
>> Hi list,
>> Geonode provides the feature, that you can add Servers with a
>> GetCapabiltiesRequest to the "Available Layers" Dialog by creation of a map.
>> Now I want to add a WMS (GetCapabilities-Request) directly to the
>> "Available Layers" dialog, so that a user can get predefined WMS Layers from
>> the dropdownlist, instead of adding the GetCapabilitiesRequest with the Add
>> Server button.
>>
>> How can I get more than the GeoServer layers and the Google Layers
>> available in the dropdownlist or which file must be modified to change this
>> in the geonode structure?
>>
>> Thanks & Best Regards
>>
>> --
>> Patrick
>>
>>
>

Reply via email to