Google图表动态图标已被弃用。备择方案? [英] Google charts dynamic icons deprecated. Alternatives?
问题描述
https://developers.google.com/chart/image/docs/ gallery / dynamic_icons
我使用它来创建标记,例如: http://chart.apis.google.com/chart?chst=d_map_pin_letter&chld=%E2%80%A2|FF9900 甚至是 但标题显示 图片图表(已弃用) 有人知道它可用多久吗?有没有其他的办法? 谢谢 使用JavaScript(而不是KML)来填充地图,您可以使用 http://code.google.com/p/google-maps-utility-library-v3/wiki/Libraries ,了解其中的一些内容,包括这些标记。它不会执行已弃用的API所做的所有事情,但它确实有用且有价值。它由一群Google员工维护。 https://developers.google.com/chart/image/docs/gallery/dynamic_icons Im using this to create markers, e.g: http://chart.apis.google.com/chart?chst=d_map_pin_letter&chld=%E2%80%A2|FF9900 or even But the title says Image Charts (Deprecated) Does anyone know for how long it will be usable? Are there any alternatives? Thanks If you're using JavaScript (not KML) to populate your map, you can use http://code.google.com/p/google-maps-utility-library-v3/wiki/Libraries for some things, including these sorts of markers. It doesn't do everything that the deprecated API does, but it's certainly useful and valuable. It's maintained by a bunch of Google employees. 这篇关于Google图表动态图标已被弃用。备择方案?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
返回新的google.maps。 MarkerImage(http://chart.apis.google.com/chart?chst = d_map_pin_letter& chld =%E2%80%A2 |+ hexColor,
new google.maps.Size(21,34),
new google.maps.Point(0,0),
new google.maps.Point(10,34));
return new google.maps.MarkerImage("http://chart.apis.google.com/chart?chst=d_map_pin_letter&chld=%E2%80%A2|" + hexColor,
new google.maps.Size(21, 34),
new google.maps.Point(0,0),
new google.maps.Point(10, 34));