<p>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 anything less than a full address (street, city, state, zip) even though the lat/long is there the map does not display properly, I either get a map of the world or a blue box.</p>
<p>I am a noobie so I am sure it is something I have not done correctly.</p>
<p>Example:</p>
<blockquote>
<p>Zip: 90210</p>
<p>Lat: 34.10300320</p>
<p>Long: -118.41046840</p>
</blockquote>
<p>Code:</p>
<pre><code>    {% for entry in craft.entries.section('groups').limit(5).find() %}
        &lt;li&gt;&lt;a href=&quot;{{ entry.url }}&quot;&gt;{{ entry.title }} , {{ entry.address }}, {{ craft.smartMap.img(entry.address) }}&lt;/a&gt;&lt;/li&gt;
    {% endfor %}
</code></pre>
<p>When I click drag:
<a href="https://i.sstatic.net/Sw6TI.jpg" rel="nofollow noreferrer"><img src="https://i.sstatic.net/Sw6TI.jpg" alt="Living large in Beverly Hills..." /></a></p>
<p>When the map renders:
<a href="https://i.sstatic.net/GBsf6.jpg" rel="nofollow noreferrer"><img src="https://i.sstatic.net/GBsf6.jpg" alt="Lost in the big wide world..." /></a></p>

CC BY-SA 3.0
2018-03-05T22:44:29.713Z
Are you certain that the "Latitude" and "Longitude" values are filled in? Those should be the only critical subfields in terms of showing a pin on a map.
Lindsey D
CC BY-SA 3.0
2018-03-05T23:46:37.573Z
Yes. I get the with the lookup function (which is very nice).
Eric Snyder
CC BY-SA 3.0
2018-03-05T23:52:04.167Z
Can you take a look at the `src` being generated for that image tag? The coordinates should appear in both the "markers" and "center" parameters... Something like this: `https://maps.googleapis.com/maps/api/staticmap?visual_refresh=true&key=XXXXXX&scale=2&center=34.10300320,-118.410468400&size=360x240&maptype=roadmap&zoom=5&markers=color:red%7C34.10300320,-118.41046840`.
Lindsey D
CC BY-SA 3.0
2018-03-07T01:53:54.683Z
No locations in the source. The coordinates are definitely in the entry.

The parameters after the question mark:

visual_refresh=true&amp;key=AIzaSyCUIWsZPc_YqDeVdXBJD9bO6CMqcrPF-UA&amp;scale=2&amp;center=0,0&amp;size=200x150&amp;maptype=roadmap"
Eric Snyder
CC BY-SA 3.0
2018-03-07T04:42:33.197Z
Very strange. I can't think of anything that would cause this, assuming the address actually contains coordinates. Ping me on [Craft Slack](https://craftcms.com/community#slack), and I'll help you troubleshoot it directly.
Lindsey D
<plugin-smartmap>
Smart Map - displaying pin in center of zip code
# Smart Map - displaying pin in center of zip code

(Asked by: username_0 on 2018-03-05)

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 anything less than a full address (street, city, state, zip) even though the lat/long is there the map does not display properly, I either get a map of the world or a blue box.
I am a noobie so I am sure it is something I have not done correctly.
Example:

Zip: 90210
Lat: 34.10300320
Long: -118.41046840

Code:
    {% for entry in craft.entries.section('groups').limit(5).find() %}
        {{ entry.title }} , {{ entry.address }}, {{ craft.smartMap.img(entry.address) }}
    {% endfor %}

When I click drag:

When the map renders:

**Tags:** plugin-smartmap

> **Comments:**
> **username_1**: Are you certain that the "Latitude" and "Longitude" values are filled in? Those should be the only critical subfields in terms of showing a pin on a map.  
> **username_0**: Yes. I get the with the lookup function (which is very nice).  
> **username_1**: Can you take a look at the `src` being generated for that image tag? The coordinates should appear in both the "markers" and "center" parameters... Something like this: `https://maps.googleapis.com/maps/api/staticmap?visual_refresh=true&key=XXXXXX&scale=2&center=34.10300320,-118.410468400&size=360x240&maptype=roadmap&zoom=5&markers=color:red%7C34.10300320,-118.41046840`.  
> **username_0**: No locations in the source. The coordinates are definitely in the entry.  The parameters after the question mark:  visual_refresh=true&amp;key=AIzaSyCUIWsZPc_YqDeVdXBJD9bO6CMqcrPF-UA&amp;scale=2&amp;center=0,0&amp;size=200x150&amp;maptype=roadmap"  
> **username_1**: Very strange. I can't think of anything that would cause this, assuming the address actually contains coordinates. Ping me on [Craft Slack](https://craftcms.com/community#slack), and I'll help you troubleshoot it directly.  

---

## 0 answers

