首页 \ 问答 \ 聚合物谷歌地图 - 绘图形状(Polymer Google Map - Drawing Shapes)

聚合物谷歌地图 - 绘图形状(Polymer Google Map - Drawing Shapes)

我一直在使用Polymer的谷歌地图一段时间,并对结果非常满意。 最近我遇到了一些用例,在地图上绘制地图标记之间的线条和形状会很有用。 谷歌的这方面的文档非常适用于Maps Javascript API,但经过一些研究后,我无法在Polymer Google Map中找到任何绘图形状的参考,而没有混合使用聚合物和非聚合物Google Map功能。 是否有“纯聚合物”的方式来绘制这些形状?

我还在使用Polymer 1.x,但愿意升级到2.x.

谢谢!


I've been working with Polymer's Google Map for a while now and have been very happy with the results. Recently I've come across a few use cases where it would be useful to draw lines and shapes between map markers on the map. Google's documentation on this is great for the Maps Javascript API, but after doing some research, I haven't been able to find any references to drawing shapes within a Polymer Google Map without mish-mashing Polymer and non-Polymer Google Map functions. Is there a "pure Polymer" way of drawing these shapes?

I'm still using Polymer 1.x but am willing to upgrade to 2.x.

Thank you!


原文:https://stackoverflow.com/questions/43856182
更新时间:2024-04-10 21:04

最满意答案

console.log( $('#myDiv').height() )

console.log是一个函数,所以你需要括号来调用它,作为参数传递你想要在控制台中输出的内容。

如果直接直接在控制台中输入,则可以省略console.log

$('#myDiv').height()

控制台会自动将最后一个返回值返回到您的屏幕,因此您在使用控制台时无需使用console.log


console.log( $('#myDiv').height() )

console.log is a function so you need parentheses to call it, passing as argument(s) what you want to output in the console.

If typing directly into the console directly, you can omit console.log:

$('#myDiv').height()

The console automatically returns the last return value to your screen so you don't have to console.log when using the console.

相关问答

更多

相关文章

更多

最新问答

更多
  • 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
  • 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
  • OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
  • 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
  • codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
  • 在计算机拍照在哪里进入
  • 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
  • No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
  • 单页应用程序:页面重新加载(Single Page Application: page reload)
  • 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
  • System.StackOverflow错误(System.StackOverflow error)
  • KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
  • 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
  • android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
  • TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
  • 企业安全培训的各项内容
  • 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
  • C#类名中允许哪些字符?(What characters are allowed in C# class name?)
  • NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
  • 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
  • 将多个行和可变行移动到列(moving multiple and variable rows to columns)
  • 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
  • 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
  • Angular $资源不会改变方法(Angular $resource doesn't change method)
  • 在Angular 5中不是一个函数(is not a function in Angular 5)
  • 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
  • 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
  • 常见的python rpc和cli接口(Common python rpc and cli interface)
  • Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
  • 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)