Skip to content

worldwind-ui API / worldwind-kit / createPlacemark

Function: createPlacemark() ​

createPlacemark(worldWind, options): WWPlacemark

Defined in: kit/src/shapes/placemark.ts:64

Parameters ​

worldWind ​

WorldWindStatic

options ​

PlacemarkOptions

Returns ​

WWPlacemark

Example ​

ts
const placemark = createPlacemark(globe.worldWind, {
  position: { latitude: 40.7128, longitude: -74.006 },
  label: 'New York',
  imageSource: pushpinUrl(globe.worldWind, 'red'),
  highlight: { imageScale: 1.4 },
});
layer.addRenderable(placemark);

MIT licensed. Not affiliated with NASA; WorldWind is NASA's open-source virtual globe.