Questions tagged [plugin-smartmap]
53 questions
4
votes
1 answer
Smart Map - Setting single map with multiple pins
I have a Smart Map field in a section and am trying to output multiple results (pins) to a single map.
This code will output multiple maps (one map per pin)
{% for mapEntry in craft.entries.section('markets') %}
{% set options = {
height: 500,
…
Micky Kelleher
- 143
- 2
4
votes
1 answer
Smart Map cluster marker
I use Smart Map for a project, but I have a question for this plugin.
Is it possible group the markers per cluster or I need see other options.
Tks
Mauricio Dulce
- 51
- 3
4
votes
1 answer
How do I filter by multiple Smart Map addresses?
I have profiles (Users) that can have multiple addresses (currently two Smart Map fields called profileAddress1 and profileAddress2).
I know how to filter by a single address:
{% set results = craft.users({
group: 'profiles',
…
medoingthings
- 949
- 9
- 16
4
votes
1 answer
Smart Map plugin - Get visitor's lat/lng
I'm using the Smart Map plugin but want to render my own maps. All I need is the lat/lng of a visitor yet I can't find it in the documentation. I don't want Smart Maps to render the map for me, I just want the lat/lng.
I'm currently using the Geo…
Clive Portman
- 2,908
- 17
- 36
3
votes
1 answer
How to programmatically set a Smart Map address field in plugin
I have a console command plugin that needs to periodically go and fetch property data via API and import it into Craft. I can pull in basic property information but when it comes to importing the data into Smart Map field I'm a bit lost as how to…
Dave Coggins
- 588
- 3
- 12
3
votes
1 answer
Smart Map - pass options into markers individually
I have successfully got Smart Map up & running and now want to tailor it for my own purposes.
I will have hundreds of markers for businesses, which I am categorising via fields in Craft. What I would love to do is pass custom options to the markers…
Adam Menczykowski
- 1,390
- 11
- 22
2
votes
1 answer
Grabbing the existing address data to use with Smart Map
I'm new to Craft CMS, so pardon me. I've been using the VZ Address plugin to handle all our address entries, and have a couple hundred of workshop address entries already.
I'm trying to use Smart Map to generate a map, search by zip code, for the…
Sung Kang
- 23
- 2
2
votes
1 answer
Making the Smart Map field translatable
I have a multi-language site. So I need to show slightly different address data, depending on the current locale. Especially regarding the city and country field.
Example:
DE
Venloer Str. 200
Köln
Deutschland
EN
Venloer Str. 200
Cologne
Germany
I…
medoingthings
- 949
- 9
- 16
2
votes
1 answer
Filter locations by zip in Smart Map
I am making a simple call to entries near a zip code using this url format:
example.com/locations-zip-ajax?near=93003
My template includes this code:
{% set target = craft.request.getParam('near') %}
{% set params = {
target: target|length ?…
Shawn Cothran
- 23
- 5
2
votes
2 answers
Adding markers to map from field in entries within section
I feel like I'm overlooking something simple here, but I can't for the life of me figure out how to add markers to a map. I had this working with the Google Maps for Craft plugin but since switching to Smart Map I get as far as rendering a map and…
Josh Kennedy
- 55
- 7
2
votes
1 answer
SmartMap throwing back javascript error
On my _entry page, I'm trying to get the SmartMap plugin to generate a dynamic map, but it gets stuck on 'Loading Map'
Using this as the code:
{{ craft.smartMap.map(entry.theEventAddress) }}
and the console tells me:
Uncaught SyntaxError:…
Dustin C
- 379
- 1
- 12
2
votes
1 answer
How can I tell Smart Map to look at Commerce for entries?
I have Smart Map working perfectly within Commerce. Meaning, I am able to show a map, etc. when I'm looking at products.
However, I am trying to build a "product locator" to find products in my area.
I am able to successfully pass the arguments to…
Damon
- 4,706
- 1
- 20
- 36
2
votes
1 answer
Smart Map with multiple different markers based on a matrix field
I'm having some trouble setting different markers using the smart map plugin and was hoping someone might be able to point me in a direction I might not see.
The different locations are are set through a matrix field with two different block types;…
BryanB
- 23
- 3
2
votes
2 answers
Smart Map InfoBubble 'pointer' position
I am having issues with the Smart Map infoBubble pointer position...
As you see the shadow is positioned correctly, but the white overlay triangle is too low down. Or the other way of thinking about it would be that the white overlay triangle is…
Adam Menczykowski
- 1,390
- 11
- 22
1
vote
1 answer
myFieldHandle error in Craft using Smart Map
I am getting a Twig runtime error on the below. The map and everything else works when I remove myFieldHandle(params).orderBy('distance').
Error:
Calling unknown method: craft\elements\db\EntryQuery::myFieldHandle()
Code:
{% set target = '90210'…
jeff
- 11
- 1