Displaying a polygon with gmaps4rails

前端 未结 2 718
说谎
说谎 2021-01-03 11:16

Ruby noob here. Trying to display a list of points as a polygon on a google map using the gmaps4rails gem (awesome gem by the way). Any suggestions based on code sample be

2条回答
  •  执念已碎
    2021-01-03 11:33

    Gmaps4rails doesn't provide any builtin method to create the js for polygons.

    The one you use is malformed, see doc: https://github.com/apneadiving/Google-Maps-for-Rails/wiki/Polygons.

提交回复
热议问题