简体   繁体   English

Geokit错误-“未初始化的常量”

[英]Geokit error - “uninitialized constant”

I followed the install steps to the letter to get Geokit working on my site. 我按照信函中的安装步骤进行操作,以使Geokit在我的网站上正常工作。 I can do a distance calculation just fine, but when I try to render a Google map using: 我可以很好地进行距离计算,但是当我尝试使用以下方法渲染Google地图时:

@map = GMap.new("map")

It throws me this error: 它抛出了这个错误:

NameError in TechsController#home

uninitialized constant TechsController::GMap

Anyone know why? 有人知道为什么吗? I have a feeling it has something to do with an API key or something. 我觉得它与API密钥有关。 Also, I'm fully able to do distance calculations, I just can't render the map itself. 另外,我完全能够进行距离计算,只是无法渲染地图本身。

You need to install YM4R_GM . 您需要安装YM4R_GM Geokit and the Geokit-plugin don't have support for rendering Google Maps. Geokit和Geokit插件不支持渲染Google Maps。

YM4R_GM can be found at: http://github.com/ewildgoose/ym4r_gm YM4R_GM可以在以下位置找到: http://github.com/ewildgoose/ym4r_gm ://github.com/ewildgoose/ym4r_gm

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM