We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Google maps / custom marker

How Do I?

Warby's avatar
Warby
20 posts
9 years ago
Warby's avatar Warby

I’m updating a site that’s a few years old and there’s a google map which needs a custom marker updating.

The only code in the page is

<div id="google_map"></div>

There’s a bit of css relating to this but nothing much.

I can’t work out how the map is being referenced, doesn’t seem to be a plugin of any sort used.

This is the page http://www.yellowsub.co.uk/contact_us/

Any help appreciated!

       
deswork's avatar
deswork
93 posts
9 years ago
deswork's avatar deswork

This is there JS code for the map.

// Google Map Display  
$(document).ready(function(){
   var myMarkers = {"markers": [
     {"latitude": "53.383141", "longitude":"-2.980329", "icon": "/resources/img/sub_marker.png" }
    ]
   };

   $("#google_map").mapmarker({
    zoom : 12,
    center : 'L3 4BE',
    markers : myMarkers
   });

  });

It can be found here http://www.yellowsub.co.uk/resources/js/script.js

       
Warby's avatar
Warby
20 posts
9 years ago
Warby's avatar Warby

Brilliant - thanks for your help!

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.