2

Is it common to use Google maps embedded <iframe> for a static site? Or is it best practice to use the Google Maps JavaScript API when deploying the website?

  • Do you have data you want to layer on top of the map? Like adding extra pins? – Stephen Ostermiller Feb 16 '18 at 12:52
  • @StephenOstermiller not extra pins, just some contact information. Thanks for updating it. I guess I left it quite open to interpretation. I guess I’m just trying to find what is the common practise, if people would even go to in depth with it for just a basic static website. – enddev Feb 16 '18 at 12:57
3

If you don't want to customize the map, you can use an iframe. Though Google will rank your page content higher if the map is loaded on the page and not through an iframe. Googlebot and crawler doesn't count iframe content in the same way that it counts content loaded onto a page.

So if you're trying to rank your site you'll get a slight boost from not using an iframe. And by using the API you can customize the map and add extra features. If you just want a simple solution so that you can spend your time working on other coding projects then you can use an iframe and achieve similar results.

| improve this answer | |
2

Makes no difference. But in terms of performance it is better to implement a static image. The easiest was to do so, is to use something like this Google Static Map Maker.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.