-
Notifications
You must be signed in to change notification settings - Fork 65
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
add new basemaps #16
Comments
not sure, sorry. I'll take a look as soon as I can - this is a busy week in Australia as it's the end of financial year ;) |
thank you very much!
I'll continue trying and tell you if I find the way to make it work :)
Missatge de Stephen Lead <[email protected]> del dia dc., 26 de juny
2019 a les 12:30:
… not sure, sorry. I'll take a look as soon as I can - this is a busy week
in Australia as it's the end of financial year ;)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#16?email_source=notifications&email_token=AMOR2G3ZKWTXDCEAWYF2K2DP4NALLA5CNFSM4H3QWC52YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYTCXYA#issuecomment-505818080>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AMOR2G7I33WMZH3KJAU5SKDP4NALLANCNFSM4H3QWC5Q>
.
|
I think bootleaf doesn't support WMS for basemap layers. That is, the GEBCO source is not the right format. You can add these as layers, inside the layers section, in config.js
That displays for me. The next step would be to tidy up tocCategories higher up the file. Stephen may have better ideas. Cheers. |
Thank you very much, Russell!
I have tried it that way and also works for me. I'll have this option as B
plan but i?ll try it a little bit more to see if I can manage to add it as
a basemaplaye.
Thank you very much for your help!
xavi
Missatge de RussellGrew <[email protected]> del dia dg., 30 de juny
2019 a les 8:50:
… I think bootleaf doesn't support WMS for *basemap* layers. That is, the
GEBCO source is not the right format.
You can add these as layers, inside the layers section, in config.js
{
"id": "Test",
"name": "Test",
"type": "wmsTiledLayer",
"url": "https://www.gebco.net/data_and_products/gebco_web_services/web_map_service/mapserv?",
"layers": "GEBCO_LATEST"
}
That displays for me. The next step would be to tidy up *tocCategories*
higher up the file.
Stephen may have better ideas.
Cheers.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#16?email_source=notifications&email_token=AMOR2G7HHRLT2Z7YJOKO6TLP5BJSLA5CNFSM4H3QWC52YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODY4GL7Y#issuecomment-507012607>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AMOR2G3F6D6RLNP4KGGI443P5BJSLANCNFSM4H3QWC5Q>
.
|
I think @RussellGrew is right - the basemaps are hard-coded. It should be possible to modify that section so I'll take a look when time permits. Alternatively, feel free to make the changes and submit a PR ;) |
Is it possible to add new wms basemaps?
I tried it adding this to basemaps in app.js:
{"id": "GEBCO", "type": "tiled", "label": "GEBCO", "url": "https://www.gebco.net/data_and_products/gebco_web_services/web_map_service/mapserv?"}
And this to the set basemap function
} else if (basemap.type === 'tiled'){
if (basemap.id === 'GEBCO') {
options.attribution = "GEBCO";
But still can't visualize the layer although it appars in the basemaps list. Do you know what I'm doing wrong?
Thanks!
The text was updated successfully, but these errors were encountered: