图钉图标大小更改 [英] Pushpin icon size change

查看:126
本文介绍了图钉图标大小更改的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我能够将图标更改为我拥有的图像。但是,我无法旋转并更改图标的大小。


我在下面的代码中找不到任何错误...


const pin1 =
new Microsoft 地图图钉 location ,{

解决方案

此处有V8控件的旋转示例:  https:/ /docs.microsoft.com/en-us/bingmaps/v8-web-control/map-control-concepts/pushpins/custom-canvas-pushpin-example 。 
您定位的环境是什么?

I was able to changed the icon to the image I have. However, I cannot rotate and change the size of the icon.

I cannot find any errors in the below code...

constpin1 = newMicrosoft.Maps.Pushpin(location, {

解决方案

There is a rotation sample for the V8 Control here: https://docs.microsoft.com/en-us/bingmaps/v8-web-control/map-control-concepts/pushpins/custom-canvas-pushpin-example.  What environment are you targeting?


这篇关于图钉图标大小更改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆