简体   繁体   English

具有Mapstraction的Geoserver

[英]Geoserver with Mapstraction

Do someone know how to use a custom hosted Geoserver's Tile Layers or WMS layers to be laid on Mapstraction as a base layer? 有人知道如何使用自定义托管的Geoserver的Tile图层或WMS图层作为基础图层放置在Mapstraction上吗?

MapStraction has base layer plugins for google, yahoo, microsoft, openlayers etc., But unfortunately it lacks a plugin for custom open layers on geoserver. MapStraction具有适用于google,yahoo,microsoft,openlayers等的基础层插件,但是不幸的是,它缺少用于geoserver上自定义开放层的插件。 Do any one know how to neatly implement such a plugin? 有谁知道如何巧妙地实现这样的插件?

Managed to find how to do the above. 设法找到上面的方法。

  1. Made a Copy of mxn openlayers. 复制了mxn openlayers。
  2. Changed the TMS url to WMS where the geoserver is hosted. 将TMS URL更改为托管地理服务器的WMS。 There would be 2 urls of OSM and OSM Mapnik, kept only one of them and replaced with the WMS Url. OSM和OSM Mapnik会有2个网址,仅保留其中之一,并替换为WMS Url。
  3. There was only one problem in calling toProperietory and fromProperietory calls. 调用toProperietory和fromProperietory调用只有一个问题。 Did not honestly understand the logic, but replaced them with just returning same values 不诚实地了解逻辑,但只是返回相同的值来替换它们

And it worked. 而且有效。

PS: If someone understands the logic behind step 3, please feel free to explain. PS:如果有人了解步骤3背后的逻辑,请随时进行解释。

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

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