OSM marker tooltip

Hi,

I have a problem displaying marker tooltips while using OSM provider. Here is a simple example:

import * as React from 'react';
import {
MapsComponent, MarkerDirective, LayersDirective, LayerDirective,
Inject, Zoom, MarkersDirective, Marker, MapsTooltip
} from '@syncfusion/ej2-react-maps';

export default class MapWidget extends React.Component<{}, {}> {
private mapInstance: MapsComponent | null;
render() {

return (
<MapsComponent
id="map-container"
ref={m => this.mapInstance = m}
zoomSettings={{
enable: true,
pinchZooming: true
}}
>
<Inject services={[Zoom, Marker, MapsTooltip]} />
<LayersDirective>
<LayerDirective layerType="OSM">
<MarkersDirective>
<MarkerDirective
dataSource={[
{ latitude: 37.0000, longitude: -120.0000, city: 'California' },
{ latitude: 40.7127, longitude: -74.0059, city: 'New York' },
{ latitude: 42, longitude: -93, city: 'Iowa' }
]}
visible={true}
animationDuration={0}
shape='Circle'
fill='white'
width={20}
border={{
color: '#285255',
width: 2
}}
tooltipSettings={{
visible: true,
valuePath: 'city'
}}
/>
</MarkersDirective>
</LayerDirective>
</LayersDirective>
</MapsComponent>
)
}
}

However, if I specify a template for marker then the tooltips work.

Kind regards,
Goran

1 Reply

DD Dharanidharan Dharmasivam Syncfusion Team August 23, 2018 12:28 PM UTC

Hi Goran, 

We have analyzed your query with the provided code snippet and able to reproduce the reported issue. So, we have logged bug report on “Tooltip for marker is not appearing in OSM map” and the fix for the reported issue will be included in our vol 3 main release which is expected to be out in the middle of September 2018. 

Thanks, 
Dharani. 


Loader.
Up arrow icon