add marker for point data in metadata view page
This commit is contained in:
parent
600101f837
commit
9532f04a03
|
@ -249,7 +249,10 @@ function reportError(request)
|
|||
map.setCenter(new GLatLng(<?= ($md->south+$md->north)/2; ?>,<?= ($md->east+$md->west)/2; ?>), zoomlevel);
|
||||
map.setMapType(G_SATELLITE_MAP);
|
||||
map.setUIToDefault();
|
||||
|
||||
<?php if ($md->north==$md->south) : ?>
|
||||
var marker=new GMarker(new GLatLng(<?= $md->north; ?>,<?= $md->east; ?>));
|
||||
map.addOverlay(marker);
|
||||
<?php else : ?>
|
||||
var polygon=new GPolygon([
|
||||
new GLatLng(<?= $md->north; ?>,<?= $md->west; ?>),
|
||||
new GLatLng(<?= $md->north; ?>,<?= $md->east; ?>),
|
||||
|
@ -258,6 +261,7 @@ function reportError(request)
|
|||
new GLatLng(<?= $md->north; ?>,<?= $md->west; ?>)
|
||||
],"#f33f00",5,1,"#ff0000",0.2);
|
||||
map.addOverlay(polygon);
|
||||
<?php endif; ?>
|
||||
</script>
|
||||
|
||||
<div id="window-outter" style="display:none;">
|
||||
|
|
Loading…
Reference in New Issue