Each KML link at the bottom of a node opens in Google Earth at an altitude of 3281ft.

I see there is a variable called $alt in kml.module but where and how can I change this so links open at something different, say 7000ft?

Thanks,

Comments

geodaniel’s picture

Category: support » feature

That's interesting, I'm not sure why the placemarks are being shown 3281ft. I thought I'd set them to show at ground level (or 0ft, which I guess would be mean sea level). Could that be a setting in your Google Earth?

I should add the altitude as an option on the admin page but in the meantime, you could change the following line, changing the 0 towards the end to be the value you want for altitude:

$items .= kml_format_placemark($item->title, $link, $item->teaser, $item->location['latitude'], $item->location['longitude'], 0, $extra);

geodaniel’s picture

Version: 5.x-1.x-dev » master
paulcoghlan’s picture

Sorry but still an issue.

Just changed it to 7000 and tried it on two computers, both still zoom to 3281 feet?!

geodaniel’s picture

I'm looking at this now. I'd forgotten that I'd put in a placeholder for extruding the points (line drawn from point in space to point on ground). Would this be suitable for displaying the placemarks off the ground instead of changing the altitude? Or are you actually wanting to refer to a point that's 7000ft up into the air?

geodaniel’s picture

Assigned: Unassigned » geodaniel

This should be in my next commit to the module - it will give the option to specify the height above ground level in meters and decide whether or not to draw a line down to the ground to show where the point should lie.

geodaniel’s picture

Status: Active » Fixed

committed on 4.7 and 5.x

Anonymous’s picture

Status: Fixed » Closed (fixed)