Sure. Currently, if a user is experiencing the overviewMap problem, or if they want to load a specific version of Google Maps API for some reason, then they should load the map extension in the following way:
<script src="http://maps.google.com/maps?file=api&v=2.94&key=ABQIAAAAz-sxVZ9Q8vGMNbjHT7XP_BSFIzy51XN1kTDMwnH19TBrp1QWUhSc9tZ1e7u9UzisFlsGBEVkFg1adA" type="text/javascript"></script> <script src="http://api.simile-widgets.org/exhibit/2.2.0/extensions/map/map-extension.js" type="text/javascript"></script> Ideally, it would be nice to include the GM API version in the map-extension.js call, alleviating the need for the above in many cases. They call would be <script src="http://api.simile-widgets.org/exhibit/2.2.0/extensions/map/map-extension.js?gmapi=2.94&gmapkey=ABQIAAAAz-sxVZ9Q8vGMNbjHT7XP_BSFIzy51XN1kTDMwnH19TBrp1QWUhSc9tZ1e7u9UzisFlsGBEVkFg1adA" type="text/javascript"></script> if gmapi param not included, default to v=2 if gmapkey param not included, then ignore if gmapi param exists or not and look for GMap2 loaded by user - John ************************************************** John Callahan Geospatial Application Developer Delaware Geological Survey, University of Delaware 227 Academy St, Newark DE 19716-7501 Tel: (302) 831-3584 Email: [email protected] http://www.dgs.udel.edu ************************************************** David wrote: > John: > > can you please show entire script code for > > <script src="http://maps.google.com/maps? > file=api&v=2.94&key=...key..." type="text/javascript"></script> > <script src="http://api.simile-widgets.org/exhibit/2.2.0/extensions/ > map/map-extens..." type="text/javascript"></script> > > with a line break so that it shows all of the characters and not > ellipsis? Thank you for your help. > > > > On Apr 3, 12:45 am, John Callahan <[email protected]> wrote: > >> Such as in a similar way to what you have now... >> >> if gmapi not included in map-extension.js call, default to v=2 >> if gmapkey not included in map-extension.js call, then ignore gmapi >> parameter and look for GMap2 loaded by user >> >> - John >> >> >> >> David Huynh wrote: >> >>> That would be ideal... although a back door should be available in case >>> Google Maps API gets changed radically. >>> >>> David >>> >>> John Callahan wrote: >>> >>>> Actually, could we just include the GM API version (along with the API >>>> key) in the map-extension.js call? It'd be very easy to parse that >>>> parameter and provide benefit in many cases. Something like the >>>> following (the default would be simply gmapi=2) >>>> >>>> <script >>>> src="http://api.simile-widgets.org/exhibit/2.2.0/extensions/map/map-extens......" >>>> type="text/javascript"></script> >>>> >>>> - John >>>> >>>> David Huynh wrote: >>>> >>>>> I believe that if you don't specify any map key when including the map >>>>> extension, but including gmap yourself before, then the map extension >>>>> won't try to load gmap. >>>>> >>>>> Look in >>>>> >>>>> http://api.simile-widgets.org/exhibit/2.2.0/extensions/map/map-extens... >>>>> You can see there's a check >>>>> !("GMap2" in window) >>>>> >>>>> David >>>>> >>>>> John Callahan wrote: >>>>> >>>>>> I see the same problem. For me, the error appeared when displaying the >>>>>> map view once, then displaying another view (like table, timeline, >>>>>> tile), then going back to the map view. I didn't perform any filtering >>>>>> and the error still appeared. >>>>>> >>>>>> This is probably a versioning issue with Google Maps API. I changed >>>>>> the GM API version in map-extension,js (lines 37 - 41) from v=2 to >>>>>> v=2.94 and the error disappeared. I run Exhibit locally and it was easy >>>>>> for me to make this change; not so easy if you use >>>>>> api.simile-widgets.org. >>>>>> >>>>>> I only chose 2.94 because I used that version is an app I built about a >>>>>> year ago and it was the first one that popped into my mind! Of course, >>>>>> I would go with the latest version that keep everything working (until >>>>>> the true cause is found out and fixed.) >>>>>> >>>>>> For details on the GM API version number scheme, see >>>>>> http://groups.google.com/group/Google-Maps-API/web/javascript-maps-ap... >>>>>> >>>>>> - John >>>>>> >>>>>> ************************************************** >>>>>> John Callahan >>>>>> Geospatial Application Developer >>>>>> Delaware Geological Survey, University of Delaware >>>>>> 227 Academy St, Newark DE 19716-7501 >>>>>> Tel: (302) 831-3584 >>>>>> Email: [email protected] >>>>>> http://www.dgs.udel.edu >>>>>> ************************************************** >>>>>> >>>>>> mmauri wrote: >>>>>> >>>>>>> Hi everybody. >>>>>>> In a html page I defined three views (map, tabular, tile). In the map >>>>>>> view I set true the property ex:overviewControl. >>>>>>> I found out that filtering the results in the tabular or tile views >>>>>>> and then selecting the map view, the filtered results cannot be >>>>>>> plotted due to some errors. You can try by yourself using the >>>>>>> president example and adding the property ex:overviewControl into the >>>>>>> map div section. >>>>>>> This problem disappears changing ex:overviewControl to false. >>>>>>> >>>>>>> HTH >>>>>>> Marco- Hide quoted text - >>>>>>> >> - Show quoted text - >> > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "SIMILE Widgets" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/simile-widgets?hl=en -~----------~----~----~----~------~----~------~--~---
