bing 地图中的自定义颜色?

发布于 2024-08-11 08:22:27 字数 266 浏览 2 评论 0原文

我正在查看 http://www.msnbc.msn.com/id /26295161/ns/weather/ 并注意到 Flash 地图是由 bing 提供的,并且具有自定义配色方案。我也有类似的需求,需要用黑色和白色显示地图。白色主题,是否可以使用他们的 api 或者他们制作了自定义瓷砖? (为所有级别的所有地图提供图块似乎不可行:)

I was looking at http://www.msnbc.msn.com/id/26295161/ns/weather/ and noticed that the flash map is provided by bing and have a custom color scheme. I have a similar need to show maps with a black & white colortheme, is it possible using their api or have they made custom tiles ? (doesnt seem feasible to provide tiles for alls maps on all levels :)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

夜司空 2024-08-18 08:22:27

如果您不习惯 Bing 地图,您可以查看 Mapbox,它提供基于 OpenStreetMap 以您想要的任何样式。

If you are not wedded to Bing maps, you could look into Mapbox, which provide maps based on OpenStreetMap in any style that you desire.

菊凝晚露 2024-08-18 08:22:27

这个问题仍然没有答案,即使它有点老,我认为它很重要。
事实上,他们没有使用不同的图块或自定义图块方案。您可以在网络检查工具中看到这些。

由于它们位于 Flash 应用程序内,因此可以使用图像上的滤镜 (ColorMatrixFilter) 轻松更改图像的颜色,并在客户端动态更改渲染的颜色。

This question is still not answered and even if it's kind of old, I think it matters.
In fact, they're not using different tiles or a custom tile scheme. You can see those in the network inspection tool.

Since they're inside a Flash application, they can easily change the color of the image using filter on image (ColorMatrixFilter) and changing dynamically on the client side the rendered colors.

緦唸λ蓇 2024-08-18 08:22:27

现在几年后您可以: https://msdn.microsoft.com/ en-us/library/mt823636.aspx :-)

(我通过寻找一些示例样式来到这里,并认为我为其他发现此问题的人添加了链接)

Well now some years later you can: https://msdn.microsoft.com/en-us/library/mt823636.aspx :-)

(I got here by looking for some sample styles and thought I add the link for anybody else finding this question)

谎言月老 2024-08-18 08:22:27

也许您需要一个自定义图块皮肤器: http: //rbruundritt.wordpress.com/2009/11/27/bing-maps-custom-tile-skinner/

在本例中,作者使用 ColorMatrix 和 ColorMap 更改道路的颜色:

The two key methods used to transform the colors 
consist of using ColorMatrix or a ColorMap. By 
using  a color matrix all the colors on the tile 
can be changed within a couple lines of code. Using 
a ColorMap allows you to change one color at a 
time. This is useful if you only want to change a 
few colors on the map.

Perhaps a custom tile skinner is that you need: http://rbrundritt.wordpress.com/2009/11/27/bing-maps-custom-tile-skinner/

In this example, the author changes the color of roads using ColorMatrix and ColorMap:

The two key methods used to transform the colors 
consist of using ColorMatrix or a ColorMap. By 
using  a color matrix all the colors on the tile 
can be changed within a couple lines of code. Using 
a ColorMap allows you to change one color at a 
time. This is useful if you only want to change a 
few colors on the map.
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文