Git Product home page Git Product logo

Comments (4)

tehnn avatar tehnn commented on May 18, 2024

$(function() {
var maplace = new Maplace({ map_div: '#gmap' });
maplace.Load();
});

from maplace.js.

sda3fda avatar sda3fda commented on May 18, 2024

Thank you very much!
But I thought gmap was the default map_div anyway?

Unfortunately, even after changing what you have suggested, the page does not work :( . Is there any other simple working example html file that I can take for reference?

from maplace.js.

tehnn avatar tehnn commented on May 18, 2024

The following codes are work for me.

    <style>
        .gmap {
            height:600px;
            width: 90%;
            padding: 3px;
            border: 5px solid #ddd;
            font-size: 90%;
        }
    </style>

    <script src="http://maps.google.com/maps/api/js?sensor=false&libraries=geometry&v=3.7"></script>
    <script src="http://code.jquery.com/jquery-1.9.0.min.js"></script>
    <script src="mapplace.min.js"></script>
    <script>
        $(function() {
            new Maplace({
                map_div: '#gmap',
            }).Load();
        });

    </script>

</head>
<body>
    <div align="center">
        <div id="gmap" class="gmap"></div>
    </div>      
</body>

from maplace.js.

sda3fda avatar sda3fda commented on May 18, 2024

Thank you for your suggestion. I found out that the download of the js files (both min and non-min) were corrupt. When I included directly from the homepage, I got it to work. Thanks a lot!

from maplace.js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.