Skip to content

Issue with rendering marker #134

@pmkhoa

Description

@pmkhoa

I'm using the custom markers as follow:

{% for dealerType, dealerLocations in groupedLocations %}
	{% if dealerType == 'masterBuilder' %}
		{% do map.markers(dealerLocations, {
		'icon': {
			'url': '/assets/images/master-dealers.png',
			'scaledSize': {'width': 44, 'height': 44 }
			}
		}) %}
	{% elseif dealerType == 'proBuilder' %}
		{% do map.markers(dealerLocations, {
			'icon': '/assets/images/pro-dealers.png'
		}) %}
		{% do map.markers(dealerLocations, {
		'icon': {
			'url': '/assets/images/pro-dealers.png',
			'scaledSize': {'width': 44, 'height': 44 }
			}
		}) %}
	{% else %}
		{% do map.markers(dealerLocations, {
		'icon': {
			'url': '/assets/images/other-dealers.png',
			'scaledSize': {'width': 44, 'height': 44 }
			}
		}) %}
	{% endif %}
{% endfor %}

Each dealer will use different icon, however when rendering on the map, it's showing both Google marker and the custom marker as the screenshot.

Please advise.

Thank you!

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions