简体   繁体   中英

Custom protocol in OpenLayers

How can you implement a custom protocol in OpenLayers? What are the specific methods that you need to override in OpenLayers.Protocol to make it work?

I tried to implement just the read method, but specifying the protocol to a Vector layer had no effect.

The problem was somewhere else. Implementing the read method is enough, but you need to call the callback method passed as an argument.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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