How to remove that annoying popup with Maplink/Google Copyright information?

62 views
Skip to first unread message

Mario Menezes

unread,
Sep 4, 2012, 2:03:22 PM9/4/12
to olwi...@googlegroups.com
Hi,

  I just installed olwidget; awesome application! Thanks for that.

  I'm trying to use only in admin, so I followed the tutorial and everything worked fine, except for that annoying popup with MapLink/Google copyright information. For every click I do on the map, that popup appears making it impossible to work on the map. This is the same effect that can be seem directly from the simple example http://docs.olwidget.org/en/latest/_static/examples/simple.html

  My admin.py looks like:

# -*- coding: utf-8 -*-
from django.contrib.gis import admin
from olwidget.admin import GeoModelAdmin
from models import Store
from django.conf import settings


class StoreGoogleAdminOptions(GeoModelAdmin):
    list_display = ('name','slug')
    list_filter = ('name','slug')
    list_select_related = True
    fieldsets = (
        ('Dados da Loja', {'fields': (('name','slug',))}),
        ('Localização(ões) da Loja', {'fields': ('servLocPts',), 'classes':('show','wide')}),
        ('Regiões que atende', {'fields': ('servLocPolys',),'classes': ('show', 'wide')}),
    )
    options = {
        'layers': ['google.streets'],
        'default_lon' :-46.7266971,
        'default_lat' : -23.5407047,
        'default_zoom' : 8,
        }

# Register the google enabled admin site
admin.site.register(Store, StoreGoogleAdminOptions)

Michael Savarese

unread,
Sep 5, 2012, 9:18:51 AM9/5/12
to olwi...@googlegroups.com
There are some questionable hacks out there to prevent the pop-ups. To me, it wasn't worth the trouble so I switched to Bing. From what I gathered from various research, Google only wants their maps to be used with their API's.


--
 
 

Alan Boudreault

unread,
Sep 5, 2012, 9:31:34 AM9/5/12
to olwi...@googlegroups.com

Do not hacks the popup..... Just register a valid Google api key

--
 
 

Gora Mohanty

unread,
Sep 5, 2012, 1:51:45 PM9/5/12
to olwi...@googlegroups.com
On 4 September 2012 23:33, Mario Menezes <mo.me...@gmail.com> wrote:
Hi,

  I just installed olwidget; awesome application! Thanks for that.

  I'm trying to use only in admin, so I followed the tutorial and everything worked fine, except for that annoying popup with MapLink/Google copyright information. For every click I do on the map, that popup appears making it impossible to work on the map. This is the same effect that can be seem directly from the simple example http://docs.olwidget.org/en/latest/_static/examples/simple.html

This is apparently an OpenLayers bug, which has been
fixed in the development version. In settings.py, using
OL_API = 'http://openlayers.org/dev/OpenLayers.js'
fixed this for me.

Regards,
Gora

Mario Menezes

unread,
Sep 5, 2012, 3:52:32 PM9/5/12
to olwi...@googlegroups.com
I do have a valid Google api key that I've being using for months. My app already make use of them for other things.

Thanks any way

Mario Menezes

unread,
Sep 5, 2012, 3:53:45 PM9/5/12
to olwi...@googlegroups.com
I'll try this.

Many thanks.

Mario

Mario Menezes

unread,
Sep 6, 2012, 9:26:00 AM9/6/12
to olwi...@googlegroups.com
Hi Gora,

 Thanks for the fix. It works fine now!

 Regards


Em quarta-feira, 5 de setembro de 2012 14h52min07s UTC-3, Gora Mohanty escreveu:
Reply all
Reply to author
Forward
0 new messages