我提到了这篇文章 How to determine if a point is inside a 2D convex polygon?
但是我想在OSM中使用Open Layers做同样的事情。请帮助我。
[Link](http://jsfiddle.net/Sanju5390/3tpLs6w3/)
答案 0 :(得分:1)
您可以使用turf.js使用turf.inside执行此操作:
*[root@localhost ~]# docker info
Containers: 14
Images: 15
Storage Driver: devicemapper
Pool Name: docker-253:4-1073748960-pool
Pool Blocksize: 65.54 kB
Backing Filesystem: xfs
Data file: /dev/loop1
Metadata file: /dev/loop2
Data Space Used: 3.016 GB
Data Space Total: 107.4 GB
Data Space Available: 104.4 GB
Metadata Space Used: 3.351 MB
Metadata Space Total: 2.147 GB
Metadata Space Available: 2.144 GB
Udev Sync Supported: true
Deferred Removal Enabled: false
Data loop file: /var/lib/docker/devicemapper/devicemapper/data
Metadata loop file: /var/lib/docker/devicemapper/devicemapper/metadata
Library Version: 1.02.93-RHEL7 (2015-01-28)
Execution Driver: native-0.2
Logging Driver: json-file
Kernel Version: 3.10.0-123.el7.x86_64
Operating System: Red Hat Enterprise Linux Server 7.0 (Maipo)
CPUs: 10
Total Memory: 9.609 GiB
Name: localhost.localdomain
ID: U5OY:WDSL:5IP3:2UFW:XYP6:3B2J:WJS4:6QY6:QDKL:MIFN:G452:QI33
WARNING: bridge-nf-call-iptables is disabled
WARNING: bridge-nf-call-ip6tables is disabled*