Difference between revisions of "Range test"
Jump to navigation
Jump to search
Line 19: | Line 19: | ||
<script> | <script> | ||
// GEOJSON FILES | // GEOJSON FILES | ||
− | var hoolockhoolock = 'files/Hoolock_hoolock.geojson'; | + | var hoolockhoolock = 'files/gibbon/Hoolock_hoolock.geojson'; |
− | var hoolockleuconedys = 'files/Hoolock_leuconedys.geojson'; | + | var hoolockleuconedys = 'files/gibbon/Hoolock_leuconedys.geojson'; |
var map = L.map('map').setView([10, 110], 4); | var map = L.map('map').setView([10, 110], 4); | ||
− | + | var topo=new L.tileLayer('http://{s}.tile.opentopomap.org/{z}/{x}/{y}.png',{attribution: '© <a href="http://osm.org/copyright">OpenTopoMap</a> contributors'}).addTo(map); | |
− | var topo=new L.tileLayer('http://{s}.tile.opentopomap.org/{z}/{x}/{y}.png',{attribution: '© <a | + | var osm=new L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png',{attribution: '© <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'}).addTo(map); |
− | |||
− | |||
− | var osm=new L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png',{attribution: '© <a | ||
− | |||
Line 38: | Line 34: | ||
// Set style function that sets fill color property | // Set style function that sets fill color property | ||
− | function stylehoolockhoolock(feature) { | + | function stylehoolockhoolock(feature) { |
return { | return { | ||
fillColor: 'purple', | fillColor: 'purple', | ||
Line 45: | Line 41: | ||
opacity: 0.7, | opacity: 0.7, | ||
color: 'purple', | color: 'purple', | ||
− | dashArray: '3' | + | dashArray: '3', |
}; | }; | ||
} | } | ||
− | function stylehoolockleuconedys(feature) { | + | function stylehoolockleuconedys(feature) { |
return { | return { | ||
fillColor: 'purple', | fillColor: 'purple', | ||
Line 56: | Line 52: | ||
opacity: 0.7, | opacity: 0.7, | ||
color: 'purple', | color: 'purple', | ||
− | dashArray: '3' | + | dashArray: '3', |
}; | }; | ||
} | } | ||
Line 87: | Line 83: | ||
</body> | </body> | ||
</html> | </html> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− |
Revision as of 09:33, 7 March 2022