philsturgeon

philsturgeon does not currently provide support for this item.

24 comments found.

Near perfect addon, I’m hitting one issue I hope you can help me with.

The mapping function works well, but since I have the map hidden in a DIV till a link is clicked, something odd happens.

I did some research and I think this is the issue (not mine, but I’m betting the solution can be applied). http://stackoverflow.com/questions/10006618/my-google-maps-is-cut-off-im-wondering-why-javascript-v

So my questions, is this resize fix something you can include in the addon, which looks like it generates most of the JS?

Total JS newbie so I’ve no idea how to apply the fix myself. Thanks!

Hi there,

Great wee addon, works very well and very clean.

If viewing via ssl https:// you get warning messages and maps are not displayed. For my purposes everything is redirected to https, so I updated the plugin to always use it. I would encourage you to add it as an option or use ssl by default in the plugin’s view.

Thanks for your time.

Not working. jQuery is loading fine and I have no errors. But the map is nothing but a blank div. Here’s what’s showing up in the DOM:

<script type="text/javascript">!window.google && document.write('<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"><\/script>');

jQuery(function($)
{
    if(typeof mapper_build_canvas == 'undefined')
    {
        var mapper_build_canvas = function(id, address, width, height, zoom, description)
        {
            var canvas = $('div#gmap_' + id);
            canvas.css('width', width);
            canvas.css('height', height);

            var geocoder = new google.maps.Geocoder();
            geocoder.geocode(
            {
               address : address
            }, function(results, status)
            {
                if ( status == google.maps.GeocoderStatus.OK)
                {
                    var latlng = results[0].geometry.location;
                    var map = new google.maps.Map(canvas.get(0),
                    {
                       zoom : zoom,
                       center : latlng,
                       mapTypeId : google.maps.MapTypeId.ROADMAP,
                       mapTypeControl : true,
                       mapTypeControlOptions :
                       {
                           style : google.maps.MapTypeControlStyle.DROPDOWN_MENU
                       },
                       navigationControl : true,
                       navigationControlOptions :
                       {
                           style : google.maps.NavigationControlStyle.SMALL
                       }
                    });

                    var marker = new google.maps.Marker(
                    {
                       map : map,
                       position : latlng
                    });

                    if (description != '')
                    {
                        var info = new google.maps.InfoWindow(
                        {
                           content : description
                        });
                        google.maps.event.addListener(marker, 'click', function()
                        {
                            info.open(map, marker);
                        });

                    }
                }
            });
        }
    }

    mapper_build_canvas('367786509', "", "300px", "300px", 1, "");
});
</script>
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
<script src="http://maps.gstatic.com/intl/en_us/mapfiles/api-3/14/9/main.js" type="text/javascript"></script>
<div id="gmap_367786509" style="width: 300px; height: 300px;" />

I am using Mapper with EE 2.8.1 and getting this error:

A PHP Error was encountered

Severity: Notice

Message: Undefined property: EE_Loader::$_ci_view_path

Filename: mapper/pi.mapper.php

Line Number: 35

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information – headers already sent by (output started at /home/ubuale/ee_system/codeigniter/system/core/Exceptions.php:170)

Filename: core/Common.php

Line Number: 442

Any idea what is up?

by
by
by
by
by
by