[英]Connecting to GeoServer from Rails
I've built an OpenGeo Suite simple editor app using this tutorial: http://suite.opengeo.org/docs/latest/webapps/ol3/templates.html#creating-an-editor-application . 我使用此教程构建了一个OpenGeo Suite简单编辑器应用程序: http ://suite.opengeo.org/docs/latest/webapps/ol3/templates.html#creating-an-editor-application。
To see it, I have to run suite-sdk debug -g http://localhost:8080/geoserver /path/to/myapp
to connect to geoserver. 要查看它,我必须运行suite-sdk debug -g http://localhost:8080/geoserver /path/to/myapp
连接到geoserver。
I want to move the map with layers to my Rails app, but have no idea how to connect to geoserver
from there. 我想将带有图层的地图移动到我的Rails应用程序,但不知道如何从那里连接到geoserver
。
Once you have geoserver, you connect to it using a Javascript Web-Mapping Library. 拥有地理服务器后,即可使用Javascript Web映射库连接到该服务器。 The easiest one to get started with is Leaflet . 最简单的入门方法是Leaflet 。 From there on in it's fairly standard web development. 从那里开始,它是相当标准的Web开发。 If you want click interactivity, there's a few way to do it, but there's a really good one using ajax, so let me know if you want to do that. 如果您想点击互动,有几种方法可以做到,但是有一个非常好的使用Ajax的方法,所以请告诉我您是否想要这样做。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.