Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding satellite images to GEOSHAPE #105

Open
mshoar2006 opened this issue Nov 25, 2016 · 2 comments
Open

Adding satellite images to GEOSHAPE #105

mshoar2006 opened this issue Nov 25, 2016 · 2 comments

Comments

@mshoar2006
Copy link

Good day
I would Like to thank you for sharing this great project on github. Unfortunately I am having a lot of trouble adding Satellite images to GEOSHAPE I have tried BING, GOOGLE and MapBox maps but none of them work. I have added the following code to /var/lib/geonode/rogue_geonode/geoshape/local_settings.py
(with the correct API keys):

MAP_BASELAYERS = [
    {
        "source": {
            "ptype": "gxp_wmscsource",
            "url": OGC_SERVER['default']['LOCATION'] + "wms",
            "restUrl": "/gs/rest",
            "name": "local geoserver"
        }
    },
    {
        "source": {
            "ptype": "gxp_bingsource",
            "apiKey": "BING_API_KEY"
        },

        "name": "AerialWithLabels",
        "fixed": True,
        "visibility": False,
        "group": "background"

    },
    {
        "source": {
            "ptype": "gxp_googlesource",
            "apiKey": GOOGLE_API_KEY
        },
        "group": "background",
        "name": "SATELLITE",
        "visibility": False,
        "fixed": True
    },
    {
    "source": {"ptype": "gxp_olsource"},
    "type":"OpenLayers.Layer.XYZ",
    "args":[
  "Mapbox Satellite", ["https://api.mapbox.com/v4/mapbox.satellite/{z}/{x}/{y}.png?access_token=<Token Here>],
    {"transitionEffect": "resize","attribution": "© Mapbox © OpenStreetMap © DigitalGlobe"}],
    "visibility": True,
    "fixed": True,
    "group":"background"
  },
    {
        "source": {"ptype": "gxp_osmsource", "name": "OpenStreetMap"},
        "type": "OpenLayers.Layer.OSM",
        "name": "mapnik",
        "title": "OpenStreetMap",
        "args": ["OpenStreetMap"],
        "visibility": True,
        "fixed": True,
        "group": "background"
    }

]

Any help regrading this issue would be much appreciated

Thank you very much

@gxcodes
Copy link

gxcodes commented Mar 14, 2017

Is there any update about this? Adding new Bing basemap following the geonode tutorial doesn't work for geoshape.

Kindly comment @garnertb ?

@jcaceres85
Copy link

Does any one has any follow ups to this issue? I haven't been able to load any base map besides OSM.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants