René's URL Explorer Experiment


Title: Bug: Cesium Globe添加ElevationRamp材质,显示有错误 · Issue #141 · MapGIS/WebClient-JavaScript · GitHub

Open Graph Title: Bug: Cesium Globe添加ElevationRamp材质,显示有错误 · Issue #141 · MapGIS/WebClient-JavaScript

X Title: Bug: Cesium Globe添加ElevationRamp材质,显示有错误 · Issue #141 · MapGIS/WebClient-JavaScript

Description: Bug描述 为viewer.scene.globe添加ElevationRamp材质,显示有错误,跟下面的底图混杂在一起 重现步骤 使用CesiumTerrainProvider添加地形,使用如下代码添加材质: const elevationRamp = [0.0, 1.0]; let getColorRamp = (selectedShading) => { const ramp = document.createElement("canvas"); ramp.wid...

Open Graph Description: Bug描述 为viewer.scene.globe添加ElevationRamp材质,显示有错误,跟下面的底图混杂在一起 重现步骤 使用CesiumTerrainProvider添加地形,使用如下代码添加材质: const elevationRamp = [0.0, 1.0]; let getColorRamp = (selectedShading) => { const ramp = do...

X Description: Bug描述 为viewer.scene.globe添加ElevationRamp材质,显示有错误,跟下面的底图混杂在一起 重现步骤 使用CesiumTerrainProvider添加地形,使用如下代码添加材质: const elevationRamp = [0.0, 1.0]; let getColorRamp = (selectedShading) => { const ramp =...

Opengraph URL: https://github.com/MapGIS/WebClient-JavaScript/issues/141

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Bug: Cesium Globe添加ElevationRamp材质,显示有错误","articleBody":"**Bug描述**\r\n为viewer.scene.globe添加ElevationRamp材质,显示有错误,跟下面的底图混杂在一起\r\n\r\n**重现步骤**\r\n使用CesiumTerrainProvider添加地形,使用如下代码添加材质:\r\n```js\r\nconst elevationRamp = [0.0, 1.0];\r\nlet getColorRamp = (selectedShading) =\u003e {\r\n  const ramp = document.createElement(\"canvas\");\r\n  ramp.width = 100;\r\n  ramp.height = 1;\r\n  const ctx = ramp.getContext(\"2d\");\r\n  const grd = ctx.createLinearGradient(0, 0, 100, 0);\r\n  grd.addColorStop(elevationRamp[0], \"#000000\"); //black\r\n  grd.addColorStop(elevationRamp[1], \"#ffffff\"); //white\r\n  ctx.fillStyle = grd;\r\n  ctx.fillRect(0, 0, 100, 1);\r\n  return ramp;\r\n}\r\nconst minHeight = -100.0; // approximate dead sea elevation\r\nconst maxHeight = 3000.0; // approximate everest elevation\r\nlet shadingUniforms = {};\r\nlet material = Cesium.Material.fromType(\"ElevationRamp\");\r\nshadingUniforms = material.uniforms;\r\nshadingUniforms.minimumHeight = minHeight;\r\nshadingUniforms.maximumHeight = maxHeight;\r\nshadingUniforms.image = getColorRamp('elevation');\r\nviewer.scene.globe.material = material;\r\n```\r\n运行,即可重现\r\n\r\n**预计结果**\r\n正常显示globe材质\r\n\r\n**截图**\r\n![b348ea445af6dbd1f280d1fe381ccaa](https://user-images.githubusercontent.com/17061829/162935887-ad2a521c-ab70-4be7-812a-1ad8e805ba91.png)\r\n\r\n**系统信息**\r\nOS: Win10 X64\r\nBrowser: Chrome\r\n","author":{"url":"https://github.com/JinghengHuang","@type":"Person","name":"JinghengHuang"},"datePublished":"2022-04-12T10:00:39.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/141/WebClient-JavaScript/issues/141"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:7103a57a-51a9-8170-5295-18a6ff01177f
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9E82:D5BD1:103630F:1637D7F:698E1DE4
html-safe-noncee66f39dcd067591a264e7b650e0653c693642219077503e4f7088e5637ade68b
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RTgyOkQ1QkQxOjEwMzYzMEY6MTYzN0Q3Rjo2OThFMURFNCIsInZpc2l0b3JfaWQiOiI1MDk3MTgwMDQzNzc3Mjg1NjA1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacae8f077f9aba4c76590b23c176697695da86825da301f46d21112248a8809d08
hovercard-subject-tagissue:1201581905
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/MapGIS/WebClient-JavaScript/141/issue_layout
twitter:imagehttps://opengraph.githubassets.com/22a6dc29b5eb8833565d5d5c05196ec571947c6b7e60ac90505e0dd4b177a385/MapGIS/WebClient-JavaScript/issues/141
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/22a6dc29b5eb8833565d5d5c05196ec571947c6b7e60ac90505e0dd4b177a385/MapGIS/WebClient-JavaScript/issues/141
og:image:altBug描述 为viewer.scene.globe添加ElevationRamp材质,显示有错误,跟下面的底图混杂在一起 重现步骤 使用CesiumTerrainProvider添加地形,使用如下代码添加材质: const elevationRamp = [0.0, 1.0]; let getColorRamp = (selectedShading) => { const ramp = do...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameJinghengHuang
hostnamegithub.com
expected-hostnamegithub.com
None52130a026bd9a3f98228b6aa6af91acdab5d18de411e2c1e67e6253493561296
turbo-cache-controlno-preview
go-importgithub.com/MapGIS/WebClient-JavaScript git https://github.com/MapGIS/WebClient-JavaScript.git
octolytics-dimension-user_id42799808
octolytics-dimension-user_loginMapGIS
octolytics-dimension-repository_id148107671
octolytics-dimension-repository_nwoMapGIS/WebClient-JavaScript
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id148107671
octolytics-dimension-repository_network_root_nwoMapGIS/WebClient-JavaScript
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release301a1d7743177dcb7528b1322117cdafeda8ff08
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/MapGIS/WebClient-JavaScript/issues/141#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FMapGIS%2FWebClient-JavaScript%2Fissues%2F141
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FMapGIS%2FWebClient-JavaScript%2Fissues%2F141
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=MapGIS%2FWebClient-JavaScript
Reloadhttps://github.com/MapGIS/WebClient-JavaScript/issues/141
Reloadhttps://github.com/MapGIS/WebClient-JavaScript/issues/141
Reloadhttps://github.com/MapGIS/WebClient-JavaScript/issues/141
MapGIS https://github.com/MapGIS
WebClient-JavaScripthttps://github.com/MapGIS/WebClient-JavaScript
Notifications https://github.com/login?return_to=%2FMapGIS%2FWebClient-JavaScript
Fork 46 https://github.com/login?return_to=%2FMapGIS%2FWebClient-JavaScript
Star 185 https://github.com/login?return_to=%2FMapGIS%2FWebClient-JavaScript
Code https://github.com/MapGIS/WebClient-JavaScript
Issues 4 https://github.com/MapGIS/WebClient-JavaScript/issues
Pull requests 1 https://github.com/MapGIS/WebClient-JavaScript/pulls
Actions https://github.com/MapGIS/WebClient-JavaScript/actions
Projects 0 https://github.com/MapGIS/WebClient-JavaScript/projects
Security 0 https://github.com/MapGIS/WebClient-JavaScript/security
Insights https://github.com/MapGIS/WebClient-JavaScript/pulse
Code https://github.com/MapGIS/WebClient-JavaScript
Issues https://github.com/MapGIS/WebClient-JavaScript/issues
Pull requests https://github.com/MapGIS/WebClient-JavaScript/pulls
Actions https://github.com/MapGIS/WebClient-JavaScript/actions
Projects https://github.com/MapGIS/WebClient-JavaScript/projects
Security https://github.com/MapGIS/WebClient-JavaScript/security
Insights https://github.com/MapGIS/WebClient-JavaScript/pulse
New issuehttps://github.com/login?return_to=https://github.com/MapGIS/WebClient-JavaScript/issues/141
New issuehttps://github.com/login?return_to=https://github.com/MapGIS/WebClient-JavaScript/issues/141
Bug: Cesium Globe添加ElevationRamp材质,显示有错误https://github.com/MapGIS/WebClient-JavaScript/issues/141#top
https://github.com/JinghengHuang
https://github.com/JinghengHuang
JinghengHuanghttps://github.com/JinghengHuang
on Apr 12, 2022https://github.com/MapGIS/WebClient-JavaScript/issues/141#issue-1201581905
https://user-images.githubusercontent.com/17061829/162935887-ad2a521c-ab70-4be7-812a-1ad8e805ba91.png
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.