The current map being displayed
The Venue data this MapView is using.
Makes a single Polygon hoverable/clickable. Polygons you haven't called this on will be treated as non-interactive and not respond to any mouse events.
Makes all polygons attached to a location hoverable/clickable. Polygons you haven't called this on will be treated as non-interactive This is a convenience function for calling MapView.addInteractivePolygon on all the polygons attached to all locations. You may also make individual polygons interactive with the addInteractivePolygon method instead of, or in addition to this method.
A list of Location types to skip. All locations of this type will be exluded from becoming interactive
An array of Location objects. Overrides the default of making all locations interactive, and instead applies to only the locations specified here.
Resets ALL Polygons you have changed with MapView.setPolygonColor back to their original color. The hover effect will still be present if the user is currently hovering over a Polygon.
Resets a Polygon back to it's original color. If the user is hovering over a polygon, it will still have the hover effect.
The Polygon/Polygon ID to reset.
This creates a tooltip that allows you to pass dynamic content which will attempt to position around an anchor in 3D space. The tooltip will be positioned based on one of four AnchorTypes (top, bottom, left, right).
options.defaultAnchorType
and options.enabledAnchorTypes
should be one of the constants from Mappedin.Tooltip.ANCHOR
options.defaultAnchorType
will override options.enabledAnchorTypes
if that anchor was disabled it will be automatically re-enabled
The Tooltip you created, which has already been added to the scene.
Attach any HTML to a MappedinNode, and have the marker interact and collide with smart labels and tooltips
This creates a tooltip that allows you to pass dynamic content which will attempt to position around an anchor in 3D space. The tooltip will be positioned based on one of four AnchorTypes (top, bottom, left, right).
options.defaultAnchorType
and options.enabledAnchorTypes
should be one of the constants from Mappedin.Tooltip.ANCHOR
options.defaultAnchorType
will override options.enabledAnchorTypes
if that anchor was disabled it will be automatically re-enabled
The Tooltip you created, which has already been added to the scene.
Draws an entire path. It takes a list of Nodes and will break them into separate pathSegments on every map change, putting the resultant segment on the right Map.
An array of Nodes, probably from a Node's MappedinNode.directionsTo call.
An array of pathSegment ids.
Let any image attached to a Polygon attached to a Location flip 180 degrees with the camera so it's always upright.
A list of Location types to skip, if for some reason there are Locations that have logos that shouldn't flip.
An array of Location objects, or Location IDs. If excludeTypes is not sufficient you can explicitly set the Locations you are marking to flip. You can also call MapView.enableImageFlippingForPolygon manually for every polygon you care about instead.
Mark a specific Polygon so, if it has an image, it rotates with the camera.
Get Nearest Node to a screen coordinate x, y, map. Useful for doing directions from any place on the map
Map of MapId
Finds all polygons that contain the specified MappedinCoordinate. If multiple polygons are stacked on top of each other, the array of polygons returned will be in the order of top to bottom.
By default, this only considers interactive polygons.
The MappedinCoordinate to check
MappedinPolygon[]
Finds the main Location associated with a Polygon. This means a Location attached to the Polygon that has no parents, or, if there are none of those, a Location nearest the top of some hierarchy that does have the Polygon attached.
This means if there are multiple hierarchies of Locations attached to the Polygon, the one that gets returned is not guaranteed to be what you want.
The Polygon you want the primary Location of.
Label all locations using 2D floating labels (with options TLabelAllLocationFloatingLabelOptions), or flat 3D labels on top of the polygons themselves (with options TLabelAllLocationFlatLabelOptions)
Remove all interactive polygons
Removes all Markers (from all Maps, not just the current one).
Removes all pathSegments from all Maps.
Remove all tooltips
Makes a polygon no longer hoverable/clickable.
The previously interactive Polygon/Polygon ID to make non-interactive.
Remove Marker
Remove a path by id
Removes a {@link Tooltip} you have added previously.
A Tooltip that has previously been returned from MapView.createTooltip.
Sets the clear color of the Map something else, it you want it to fit it more with your website. Otherwise the div will be white where there is no Map visible.
The color to use. Not an HTML color name.
Opacity between 0 and 1.
Sets the color for hovering over polygons
Change the currently displayed Map to a new one.
The Map ID or Map Object to change the Map to.
Given a polygon, set it to a specific color.
The Polygon (MappedinPolygon) to change the color of.
The color to use.
Unsubscribe from SDK events
The scene only renders when something has changed. This should be something a 3rd party developer doesn't need to worry about, but if you are doing something weird, or have your own special tween for something, you will want to call this function. You can call it as often as you want, it just sets a flag that we need to render again, and renders a few frames if we weren't already doing that. Ignored in 2D.
The div MapView is using.
container {Div}