diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2020-05-29 16:25:46 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-29 16:25:46 +0200 |
| commit | 6dd0bcd84c5ce301cd26e9ab3ef70bffdd26db5c (patch) | |
| tree | 1142540c5f890e3623512ba522c12fdd6f19deb4 /index.html.in | |
| parent | 2dc89bf0e1962ac5dac874ce85fe16e92fafcc43 (diff) | |
| parent | e7bba9c8411a7b2c093a812300c065b3af6a4152 (diff) | |
| download | PROJ-data-6dd0bcd84c5ce301cd26e9ab3ef70bffdd26db5c.tar.gz PROJ-data-6dd0bcd84c5ce301cd26e9ab3ef70bffdd26db5c.zip | |
Merge pull request #22 from ccrook/master
Adding NZGD2000 deformation model (versions 2000-01-01 to 2018-07-01)
Diffstat (limited to 'index.html.in')
| -rw-r--r-- | index.html.in | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/index.html.in b/index.html.in index 5ef3948..854a856 100644 --- a/index.html.in +++ b/index.html.in @@ -171,6 +171,7 @@ types_enabled['horizontal'] = true; types_enabled['geoid'] = true; types_enabled['vertical_adjustments'] = true; types_enabled['velocity'] = true; +types_enabled['deformation_model'] = true; types_enabled['other'] = true; function refresh_source() { featureSource.clear(); @@ -194,11 +195,16 @@ function refresh_source() { feature.properties.type == 'VELOCITY') { ok_type = true; } + if( types_enabled['deformation_model'] && + feature.properties.type == 'DEFORMATION_MODEL') { + ok_type = true; + } if( types_enabled['other'] && - feature.properties.type != 'HORIZONTAL_OFFSET' && + feature.properties.type != 'HORIZONTAL_OFFSET' && feature.properties.type != 'VERTICAL_OFFSET_GEOGRAPHIC_TO_VERTICAL' && feature.properties.type != 'VERTICAL_OFFSET_VERTICAL_TO_VERTICAL' && - feature.properties.type != 'VELOCITY') { + feature.properties.type != 'VELOCITY' && + feature.properties.type != 'DEFORMATION_MODEL') { ok_type = true; } var ok_agency = agencies_enabled[feature.properties.source_id]; @@ -239,6 +245,7 @@ create_checkbox('horizontal', 'Horizontal shift grids', type_control, types_enab create_checkbox('geoid', 'Geoid models', type_control, types_enabled); create_checkbox('vertical_adjustments', 'Vertical shifts', type_control, types_enabled); create_checkbox('velocity', 'Velocity grids', type_control, types_enabled); +create_checkbox('deformation_model', 'Deformation models', type_control, types_enabled); create_checkbox('other', 'Other grids', type_control, types_enabled); /** @@ -305,6 +312,8 @@ map.on('singleclick', function(evt) { requests = []; map.forEachFeatureAtPixel(evt.pixel, function(feature, layer) { var props = feature.getProperties(); + if( props.url.indexOf('.tif') < 0 ) + return; count ++; //content_innerHTML += '<p><a href="' + props.name + '">' + props.name + '</a></p>'; details_innerHTML += '<hr>'; |
