We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [plugin-smartmap]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2
votes
1answer
44 views

Set OrderBy on Grouped Query Involving Smart Map Field

I'm working with a Structure of resort locations. Each resort has a field address which is a SmartMap field. I'm trying to create an initial display page that groups the resorts based on their state (...
2
votes
2answers
49 views

How can I add Google MarkerClusterer library to Smart Map?

I started to work with Craft CMS a couple month ago, I have a client that wants to have a clustered map, I went over Smart Map documentation but I couldn't find anything about on how to add Google ...
1
vote
1answer
49 views

Setting Google maps circles using Smartmap plugin

So, I'm trying to set circles around marker locations using Smartmap and some JS. I've got the following which gives no errors, but outputs no circles. $(function () { $.each( smartMap.marker, ...
1
vote
1answer
60 views

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 ...
1
vote
2answers
142 views

How can I change the size of an individual pin?

I tried this code, but getting 'unexpected token errors". Probably something to do using incorrect syntax. {% js %} var markerId = 'smartmap-mapcanvas-1.{{ entry.id }}.addressInformation'; ...
1
vote
1answer
31 views

Trigger Info window in Smart Map using external navigation

I would like to trigger an info window in Smart Map using a navigation that lives beside the map. I've managed to figure out how to use the zoomOnMarker function, however, the info window does not pop ...
2
votes
1answer
97 views

How do I differentiate between entries after merging an array?

I'm trying to plot entries from two different Solspace Calendars and an Entries section on one map, and use different markers for all types. Alll of the events are related to the current Entry through ...
3
votes
1answer
126 views

Setting the position of a SmartMap marker on the front end

I'm using SmartMap in a front end entry form and trying to set the position of a marker as the user enters their address. I can get the lat/lon lookup working but I'm stumped with the marker itself. ...
1
vote
2answers
89 views

Using front end lookup for map display

I see the docs here about getting the lat/long of an address from a zip code, city, etc. I am having issues getting the map to render from this info. My code: {% if craft.smartMap.visitor.ip != '' %} ...
2
votes
1answer
108 views

Getting unique values from SmartMap addresses

Using the following filter will return all the entries for 'CA'. {% set params = { filter: { state: 'CA' } } %} {% set meetings = craft.entries.address(params) %} Let's say that I ...
2
votes
1answer
181 views

SmartMap - how to search by a field in address?

I have entries using the SmartMap address field. I need to get just the entries that have a combination of city and state (city = "Beverly Hills" AND state = "CA"). I am currently only trying to get ...
1
vote
1answer
58 views

Visitor array has empty values with Smart Map plugin (using MaxMind)

I'm receiving an array with empty values when trying to get visitor info using the Smart Map plugin and its Visitor Geolocation feature. I'm using MaxMind's free trial ($5 worth of queries) since ...
1
vote
0answers
61 views

Smart Map - displaying pin in center of zip code

I have addresses in my structure using the smart map address zip field. The Smart Map plugin looks up the Lat/Long just fine and checking independently the values seem to be correct. If I enter ...
1
vote
1answer
60 views

Smart Map - Static map displays fine, dynamic map does not

I enabled the three API's at Google: Google Maps JavaScript API Google Maps Geocoding API Google Static Maps API I get a static map OK. All I get with the dynamic map is a "Loading Map......
1
vote
1answer
78 views

High amount of API calls from Smart Map

I have a Smart Map setup and installed it on a site. The section averages 300 page views per day according to Google Analytics, but Google API is maxing out the 2500 requests on the free plan. I've ...
2
votes
1answer
75 views

Smart Map - setting an icon size

I'm trying to figure out how to set the size of a marker on a map. {% set options = { zoom: 6, markerOptions: { icon: 'https://www.mysite.com/images/map/marker.png', scaledSize: 'new ...
2
votes
1answer
88 views

Smart Map with linked SVG icons for markers

I have a smart map where I'm trying to use linked SVG files for the marker icons. In Safari, the files load at actual size, which in this case is fine, but in Chrome and Edge, they are scaled up, and ...
2
votes
0answers
98 views

Smart Maps problems displaying static maps [closed]

I'm trying to output a static map from a smart map field in a matrix. I can output a dynamic map with no issues, but the static map code isn't working. Here is my code: {% set locations = entry....
2
votes
1answer
60 views

Smart Map - Output map locations from relationship file in a matrix

I have "locations" section where each entry is a location, with a Smart Map field for the address. I have another section "pages", where I have a matrix field which contains an entry relationship ...
2
votes
1answer
121 views

Smart Map - Outputting locations from a Matrix field for all entries within a single section

I'm using the Smart Map plugin, and I can't seem to figure out how to output all the locations of my entries from a single section onto one single map. I think the issue I'm having is trying to get ...
2
votes
1answer
48 views

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 ...
2
votes
1answer
102 views

How do I add styles or a theme to a Smart Map map?

It's probably a syntax issue, but how do I add this google map styling code: [ { "elementType": "geometry", "stylers": [ { "color": "#f5f5f5" } ] }, { "...
1
vote
0answers
123 views

Smart Map search not working with Province

I'm building out a store locator map and everything is going well. All store locations get output on the map and when I search with either a city or a postal code the map filters the results correctly....
4
votes
1answer
172 views

Smart Map - Setting single map with multiple pins

I have a smartmap 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('...
5
votes
1answer
262 views

How do I talk to SmartMap in JavaScript?

Well, I know for a fact I am doing this incorrectly & it's going to be painfully obvious. I can see why (I think) but to be honest I just don’t “get it”. I’m trying to style a google map using ...
2
votes
1answer
170 views

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') %...
2
votes
2answers
403 views

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 ...
3
votes
1answer
327 views

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 ...
4
votes
1answer
247 views

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
4
votes
1answer
168 views

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....
3
votes
2answers
256 views

Smart Map - Sorting for closest location in PHP

I want to sort entries with a Smart Map address field for closest location. I know how it should be done in a template: {% set entries = craft.entries.myAddress(params).order('distance').find() %} ...
2
votes
1answer
224 views

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 ...
2
votes
1answer
92 views

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. ...
1
vote
1answer
69 views

Smart Map Lat+Lng is present but no pin on map

My map isn't showing all of the markers that it should. I am querying a user group to return the locations as follows: {% set locations = craft.users.group('fullMembership') %} {{ craft.smartMap.map(...
2
votes
1answer
452 views

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 ...
3
votes
1answer
173 views

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 ...
1
vote
2answers
172 views

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 ...
2
votes
0answers
94 views

How can I make a SmartMap field required on a user profile page?

I am using Craft 2.5 (Beta) along with the fantastic SmartMap plugin. I have a user registration page that I am using the SmartMap field with like this: twig ... <div class="form-group has-...
4
votes
1answer
125 views

Smart Maps plugin - get visitor's lat/lng

I'm using the Smart Maps 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 ...
1
vote
1answer
154 views

Nearest entry using related entry Smart Map field

I’m trying to build a query to get the geographically closest entries, based on an Smart Map field value within a related entry. The following template tags were my first guess, but returned an empty ...
4
votes
1answer
626 views

Modify ElementCriteria and use it for paginate

First some context. I'm using Smart Map for Craft to display some location based events in a listing. My structure is as follows: Events channel Locations channel Each event can occur multiple times,...
3
votes
1answer
94 views

Filtering/Searching fields with enumerated data (e.g. Smart Map) in an ElementCriteria model

I have an ElementCriteriaModel in which I need to find elements that contain a particular value for "state", which is a property of a "Smart Map" field ($element->smartMapField->state). ...
2
votes
1answer
206 views

Search Matrix and Smartmap

I'm trying to search through a set of results inside a Matrix field. Craft is giving me this error message: Craft\EntryModel and its behaviors do not have a method or closure named "avdelinger". When ...
0
votes
1answer
82 views

Smart Map plugin, HAVING SQL and GROUP BY elements.id

It seems like most Craft queries contain GROUP BY elements.id but this seems to clash with a HAVING clause when using the Smart Map plugin. Where does this come from and is it possible to override/...
4
votes
2answers
565 views

Filter locations by country in Smart Map

I'm using Smart Map to find locations ordered by distance. But I can only set 3 parameters: target, range and units. However, when my range goes beyond the country borders I obviously get results in ...
3
votes
1answer
242 views

How do you set a different icon per entry in SmartMap?

And how do you set a different icon and infoWindow when a lightswitch or entry type? {% set locations = craft.entries.section('section').find() %} {% set options = { 'zoom': 5, 'height': 750,...
4
votes
2answers
1k views

How do you auto zoom/center SmartMap with multiple markers?

How can I auto center and zoom my smartMap with multiple markers? Something like this: var bounds = new smartMap.map.LatLngBounds(); smartMap.map.fitBounds(bounds);
2
votes
2answers
620 views

Why do the plugin resource paths include the localization prefix?

I'm using Craft in a multilingual setup with the Smart Map plugin. However, the CSS and JavaScript files are not being linked properly when the site isn't in the main language. For some reason, the ...