I have successfully deployed the solution, activated the feature, added the web part to a page and configured it to my list.
When trying to Apply the settings I receive the following error. All help appreciated as I REALLY need this web part! :)
System.NullReferenceException: Object reference not set to an instance of an object.
[NullReferenceException: Object reference not set to an instance of an object.]
VSeWSS.MJB.Sharepoint.GoogleMaps.MapsWebPart.createDDL() +541
VSeWSS.MJB.Sharepoint.GoogleMaps.MapsWebPart.MapScript() +812
VSeWSS.MJB.Sharepoint.GoogleMaps.MapsWebPart.OnPreRender(EventArgs e) +22
System.Web.UI.Control.PreRenderRecursiveInternal() +107
System.Web.UI.Control.PreRenderRecursiveInternal() +223
System.Web.UI.Control.PreRenderRecursiveInternal() +223
System.Web.UI.Control.PreRenderRecursiveInternal() +223
System.Web.UI.Control.PreRenderRecursiveInternal() +223
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3393
If it's any help at all I was repeatedly prompted to enter a key during configuration but had assumed this was just a first time thing until the web part settings are applied. I'm wondering if it wouldn't be possible to provide the Maps key in a config file somewhere rather than per web part.


panoone wrote Jun 28, 2010 at 10:49 PM

FYI - only way to rectify this was to go into web part maintenance view for the page (?contents=1) and then delete the web part. The page would not display otherwise.

panoone wrote Jun 28, 2010 at 11:00 PM

And I am using MJB.Sharepoint.GoogleMaps [application, 34K, uploaded Dec 11 2008] which I assume to be the most current version.

panoone wrote Jun 28, 2010 at 11:53 PM

Additionally, I am using a custom list which includes two choice fields and a Hyperlink or Picture field. No lookups or anything else fancy. Will attempt again using the list provided by the feature but I require additional fields to capture other info for our locations.

panoone wrote Jun 29, 2010 at 12:42 AM

OK. I have now tried this using the custom list provided by the hidden features and received a new server error as soon as I entered tabbed out of the List Name field. What are the references to VSeWSS.MapsToolPart?


[ArgumentException: Value does not fall within the expected range.]
Microsoft.SharePoint.SPListCollection.GetListByName(String strListName, Boolean bThrowException) +418
Microsoft.SharePoint.SPListCollection.get_Item(String strListName) +54
VSeWSS.MapsToolPart.fieldList(DropDownList outgoingList) +147
VSeWSS.MapsToolPart.txtListLocation_Changed(Object sender, EventArgs e) +23
System.Web.UI.WebControls.TextBox.OnTextChanged(EventArgs e) +11092830
System.Web.UI.Page.RaiseChangedEvents() +89
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2777

panoone wrote Jun 29, 2010 at 1:19 AM

FYI - I have tried to simplify things by avoiding the list and just supplying single location details. I can successfully Apply changes and Check-In page but continue to receive the "This web site needs a different Google Maps API key..." dialogue box. I have added my key as it was provided to me. Are there different license types?

panoone wrote Jun 29, 2010 at 2:48 AM

The API key error is resolved. I was using FQDN instead of root domain. :)

The web part now loads with single location but map is blank. Setting web part height/width has revealed map components but map area is still blank. Will check other issues for resolution.

panoone wrote Jun 29, 2010 at 4:40 AM

Got it. Needed to add an @import into my site's override.css for the mapswebpart.css styles. This is necessary because the embedded link ref in the code has a hard coded root site location. Another workaround would be to enable the MapsWebPartCSS for the root site collection instead of the target site.

Moving back to list based test: I have eradicated the system errors. Seems it was a combination of some column types and the code not liking empty values for long/lat.

Now I'm back to a white display though. And this time it ain't because of the CSS. :\

slidexr wrote Jun 1, 2011 at 8:54 AM

Guyz i need the code for project that works on VS 2010 can i ???

wrote Feb 14, 2013 at 6:36 PM