# IsDefaultJavascriptLibraryDisabled=true breaks map

**URL:** <https://community.thinkgeo.com/t/isdefaultjavascriptlibrarydisabled-true-breaks-map/4259>\
**Category:** MVC\
**Created:** [November 28, 2014, 11:46pm UTC](https://community.thinkgeo.com/t/isdefaultjavascriptlibrarydisabled-true-breaks-map/4259 "2014-11-28T23:46:37Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thomas1](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/t/5f9b8f/32.png) [@Thomas1](https://community.thinkgeo.com/u/Thomas1)\
**Post date:** [November 28, 2014, 11:46pm UTC](https://community.thinkgeo.com/t/isdefaultjavascriptlibrarydisabled-true-breaks-map/4259/1 "2014-11-28T23:46:37Z")

</div>

I’m&nbsp;trying&nbsp;to&nbsp;compress&nbsp;the&nbsp;thinkgeo&nbsp;.axd&nbsp;files,&nbsp;and&nbsp;i’m&nbsp;using&nbsp;the&nbsp;suggestion&nbsp;i&nbsp;found&nbsp;here:  
  
[thinkgeo.com/forums/MapSuite/tabid/143/aft/10866/Default.aspx](http://thinkgeo.com/forums/MapSuite/tabid/143/aft/10866/Default.aspx)  
  
ok,&nbsp;that’s&nbsp;easy,&nbsp;i&nbsp;add&nbsp;the&nbsp;line  
  
Map1.IsDefaultJavascriptLibraryDisabled&nbsp;=&nbsp;true;&nbsp;  
  
in&nbsp;my&nbsp;code,&nbsp;and&nbsp;my&nbsp;map&nbsp;page&nbsp;won’t&nbsp;load&nbsp;at&nbsp;all&nbsp;with&nbsp;that&nbsp;change.&nbsp;&nbsp;In&nbsp;my&nbsp;chrome&nbsp;console,&nbsp;i’m&nbsp;getting&nbsp;the&nbsp;following&nbsp;error:  
  
mapParser&nbsp;is&nbsp;not&nbsp;defined  
  
in&nbsp;this&nbsp;long&nbsp;script&nbsp;of&nbsp;yours:

> `var`&nbsp;`rootPath = ``‘../../../’``;``var`&nbsp;`jsoncMap1={``"resolutions"``:[156542.64237009812,78271.321198278223,39135.660585909951,19567.830298246638,9783.9151491233188,4891.9575732387439,2445.9787871485382,1222.9893937065608,611.4946968532804,305.74734829434857,152.87367420009093,76.436837113274635,38.218418556637317,19.109209275672825,9.5546046365134956,4.7773023182567478,2.3886511593929574,1.1943255795641869,0.59716278978209347,0.29858139489104674],``"maxExtent"``:{``"left"``:-1000000000,``"bottom"``:-1000000000,``"right"``:1003745822.33726,``"top"``:1003745822.33726},``"currentExtent"``:{``"left"``:-13632444.9961943,``"bottom"``:3383583.04260912,``"right"``:-9870442.48466808,``"top"``:5464044.04143854},``"cursor"``:``"default"``,``"units"``:``"Meter"``,``"baselayerid"``:``"GoogleMap"``,``"markerOverlay"``:{``"gridSize"``:0,``"isBaseLayer"``:``false``,``"otype"``:``"MARKERS"``,``"isDefault"``:``false``,``"visibility"``:``true``,``"name"``:``"DefaultMarkerOverlay"``,``"opacity"``:1,``"displayInLayerSwitcher"``:``false``,``"Id"``:``"DefaultMarkerOverlay"``,``"AutoRefreshMilliseconds"``:0},``"layers"``:[{``"traf"``:``false``,``"centerOnStreetView"``:``false``,``"type"``:``"(typeof G_HYBRID_MAP!==‘undefined’)?G_HYBRID_MAP:google.maps.MapTypeId.HYBRID"``,``"otype"``:``"Google"``,``"tick"``:``""``,``"visibility"``:``true``,``"name"``:``"Google Map"``,``"opacity"``:1,``"displayInLayerSwitcher"``:``true``,``"isBaseLayer"``:``true``,``"Id"``:``"GoogleMap"``,``"AutoRefreshMilliseconds"``:0},{``"parameters"``:{``"LAYERS"``:``"GoogleLayer"``,``"STYLES"``:``"WorldMapKitDefaultStyle"``,``"CLIENTMODE"``:``"Web"``,``"SRS"``:``"EPSG:900913"``},``"transitionEffect"``:``"resize"``,``"singleTile"``:``"0"``,``"w"``:256,``"h"``:256,``"format"``:``"image/jpeg"``,``"otype"``:``"WMK"``,``"uris"``:[``"<a href="worldmapkit1.thinkgeo.com/CachedWmsServer/WmsServer.axd">worldmapkit1.thinkgeo.com/Ca…Server.axd</a>"``,``"<a href="worldmapkit2.thinkgeo.com/CachedWmsServer/WmsServer.axd">worldmapkit2.thinkgeo.com/Ca…Server.axd</a>"``,``"<a href="worldmapkit3.thinkgeo.com/CachedWmsServer/WmsServer.axd">worldmapkit3.thinkgeo.com/Ca…Server.axd</a>"``,``"<a href="worldmapkit4.thinkgeo.com/CachedWmsServer/WmsServer.axd">worldmapkit4.thinkgeo.com/Ca…Server.axd</a>"``],``"wrapDateLine"``:``"0"``,``"tick"``:``""``,``"visibility"``:``true``,``"name"``:``"WorldMapKit"``,``"opacity"``:1,``"displayInLayerSwitcher"``:``true``,``"isBaseLayer"``:``true``,``"Id"``:``"WorldMapKit"``,``"AutoRefreshMilliseconds"``:0},{``"w"``:256,``"h"``:256,``"transitionEffect"``:``"resize"``,``"singleTile"``:``"1"``,``"buffer"``:0,``"clientCache"``:{``"cacheId"``:``""``},``"imageFormat"``:``"image/png"``,``"jpegQuality"``:100,``"singleThread"``:``false``,``"visibility"``:``true``,``"otype"``:``"LAYER"``,``"extra"``:``"28093503353"``,``"projection"``:``"EPSG:4326"``,``"wrapDateLine"``:``"0"``,``"name"``:``"IncidentOverlay"``,``"opacity"``:1,``"displayInLayerSwitcher"``:``true``,``"isBaseLayer"``:``false``,``"Id"``:``"IncidentOverlay"``,``"AutoRefreshMilliseconds"``:0}],``"rootPath"``:``"../../../"``,``"editOverlay"``:{``"mode"``:``"None"``,``"editSettings"``:{``"drag"``:``true``,``"reshape"``:``true``,``"resize"``:``false``,``"rotate"``:``true``},``"features"``:[],``"style"``:{``"fillColor"``:``"#0033FF"``,``"fillOpacity"``:0.31372549019607843,``"strokeColor"``:``"#0033FF"``,``"strokeOpacity"``:0.62745098039215685,``"strokeWidth"``:1},``"otype"``:``"VECTOR"``,``"visibility"``:``true``,``"name"``:``"EditOverlay"``,``"opacity"``:1,``"displayInLayerSwitcher"``:``false``,``"isBaseLayer"``:``false``,``"Id"``:``"EditOverlay"``,``"AutoRefreshMilliseconds"``:0},``"highlightOverlay"``:{``"highlightStyle"``:{``"fillColor"``:``"#FF3300"``,``"fillOpacity"``:0.31372549019607843,``"strokeColor"``:``"#FF3300"``,``"strokeOpacity"``:0.62745098039215685,``"strokeWidth"``:1},``"features"``:[],``"style"``:{``"fillColor"``:``"#0033FF"``,``"fillOpacity"``:0.31372549019607843,``"strokeColor"``:``"#0033FF"``,``"strokeOpacity"``:0.62745098039215685,``"strokeWidth"``:1},``"otype"``:``"VECTOR"``,``"visibility"``:``true``,``"name"``:``"HighlightOverlay"``,``"opacity"``:1,``"displayInLayerSwitcher"``:``false``,``"isBaseLayer"``:``false``,``"Id"``:``"HighlightOverlay"``,``"AutoRefreshMilliseconds"``:0},``"controls"``:{``"Measure"``:{``"measureType"``:``"PathMeasure"``,``"displaySystem"``:``"metric"``,``"geodesic"``:``false``,``"enabled"``:``false``},``"TouchNavigation"``:{``"enabled"``:``true``},``"AnimationPan"``:{``"delay"``:300,``"onClientClick"``:``""``,``"enabled"``:``false``},``"LayerSwitcher"``:{``"onLayerChanged"``:``""``,``"roundedCornerColor"``:``"#DDDDDD"``,``"activeColor"``:``"#DDDDDD"``,``"baseTitle"``:``""``,``"switchTitle"``:``""``,``"enabled"``:``false``},``"Navigation"``:{``"wheelDisabled"``:``false``,``"zoomBoxKeyMask"``:``"1"``,``"enabled"``:``true``},``"MousePosition"``:{``"showType"``:``"latlon"``,``"enabled"``:``true``},``"OverviewMap"``:{``"maxRatio"``:24,``"minRatio"``:8,``"enabled"``:``false``},``"PanZoom"``:{``"zoomWorldIcon"``:``true``,``"enabled"``:``false``},``"PanZoomBar"``:{``"zoomWorldIcon"``:``true``,``"enabled"``:``true``},``"ScaleLine"``:{``"enabled"``:``true``},``"Logo"``:{``"enabled"``:``false``},``"KeyboardDefaults"``:{``"slideFactor"``:75,``"enabled"``:``false``},``"LoadingImage"``:{``"w"``:0,``"h"``:0,``"enabled"``:``false``}},``"onClientClick"``:``"mapClick"``,``"trackShapeEnd"``:``"trackShapeFinished"``,``"popups"``:[{``"html"``:``""``,``"popupType"``:``"CloudPopup"``,``"id"``:``"IncidentInfo"``,``"lonlat"``:{``"x"``:0,``"y"``:0},``"w"``:450,``"h"``:300,``"visibility"``:``false``,``"opacity"``:1,``"autosize"``:``false``,``"autopan"``:``false``,``"closable"``:``true``,``"ox"``:0,``"oy"``:0}],``"pageName"``:``"PouaTxafm0iEmMzmzRTHyA_cMap1"``,``"centerX"``:-11751443.7404312,``"centerY"``:4423813.54202383,``"zoom"``:-1,``"cid"``:``"cMap1"``,``"uid"``:``"Map1"``};parsercMap1=``new`&nbsp;`mapParser(jsoncMap1);Map1=parsercMap1.map;CreateAllMaps();keepsession(rootPath);``var`&nbsp;`tg=``new`&nbsp;`ThinkGeo(``‘cMap1’``);Class.Extent(Map1,tg);initMapSize(parsercMap1.map,rootPath,``‘PouaTxafm0iEmMzmzRTHyA_cMap1’``);//]]>`

  
  
if&nbsp;i&nbsp;leave&nbsp;the&nbsp;IsDefaultJavascriptLibraryDisabled&nbsp;line&nbsp;in&nbsp;the&nbsp;C#&nbsp;code&nbsp;and&nbsp;set&nbsp;it&nbsp;to&nbsp;false,&nbsp;it&nbsp;works&nbsp;fine&nbsp;again.&nbsp;&nbsp;Is&nbsp;this&nbsp;functionality&nbsp;no&nbsp;longer&nbsp;supported?&nbsp;&nbsp;Or&nbsp;is&nbsp;there&nbsp;another&nbsp;setting&nbsp;i&nbsp;need&nbsp;to&nbsp;be&nbsp;messing&nbsp;with&nbsp;  
  
to&nbsp;get&nbsp;it&nbsp;to&nbsp;work&nbsp;right?&nbsp;&nbsp;I&nbsp;am&nbsp;using&nbsp;MVCEdition.dll&nbsp;version&nbsp;8.0.0.106

---

<div class="post-metadata">

**Author:** ![Ethan](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/ethan/32/19964_2.png) [@Ethan](https://community.thinkgeo.com/u/Ethan)\
**Post date:** [December 1, 2014, 2:24am UTC](https://community.thinkgeo.com/t/isdefaultjavascriptlibrarydisabled-true-breaks-map/4259/2 "2014-12-01T02:24:24Z")

</div>

Hi&nbsp;Thomas,&nbsp;  
&nbsp;&nbsp;  
&nbsp;If&nbsp;you&nbsp;set&nbsp;Map1.IsDefaultJavascriptLibraryDisabled&nbsp;=&nbsp;true,&nbsp;all&nbsp;of&nbsp;us&nbsp;default&nbsp;scripts&nbsp;won’t&nbsp;be&nbsp;loaded,&nbsp;so&nbsp;the&nbsp;map&nbsp;won’t&nbsp;works&nbsp;well.&nbsp;&nbsp;  
&nbsp;&nbsp;  
&nbsp;After&nbsp;you&nbsp;set&nbsp;this&nbsp;property,&nbsp;you&nbsp;should&nbsp;want&nbsp;to&nbsp;choose&nbsp;some&nbsp;scripts&nbsp;to&nbsp;manually&nbsp;load&nbsp;them.&nbsp;  
&nbsp;&nbsp;  
&nbsp;As&nbsp;below&nbsp;is&nbsp;a&nbsp;simple&nbsp;sample&nbsp;for&nbsp;it,&nbsp;wish&nbsp;that’s&nbsp;helpful.&nbsp;  
&nbsp;&nbsp;  
&nbsp;`  public class MyMap : Map    {        public MyMap(string name, System.Web.UI.WebControls.Unit width, System.Web.UI.WebControls.Unit height)            : base(name, width, height)        {            IsDefaultJavascriptLibraryDisabled = true;        }        protected override void PreRender()        {            base.PreRender();            ClientScriptManager.RegisterClientScriptInclude(“opl”, “…/…/opl_GeoResource.axd”);            ClientScriptManager.RegisterClientScriptInclude(“extension”, “…/…/extension_GeoResource.axd”);            ClientScriptManager.RegisterClientScriptInclude(“helper”, “…/…/helper_GeoResource.axd”);            ClientScriptManager.RegisterClientScriptInclude(“parser”, “…/…/parser_GeoResource.axd”);            ClientScriptManager.RegisterClientScriptInclude(“func”, “…/…/func_GeoResource.axd”);            ClientScriptManager.RegisterClientScriptInclude(“cm”, “…/…/cm_GeoResource.axd”);            ClientScriptManager.RegisterClientScriptInclude(“msajax”, “…/…/msajax_GeoResource.axd”);        }    }`&nbsp;  
&nbsp;&nbsp;  
&nbsp;Regards,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Don

---

<div class="post-metadata">

**Author:** ![Thomas1](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/t/5f9b8f/32.png) [@Thomas1](https://community.thinkgeo.com/u/Thomas1)\
**Post date:** [December 1, 2014, 10:07am UTC](https://community.thinkgeo.com/t/isdefaultjavascriptlibrarydisabled-true-breaks-map/4259/3 "2014-12-01T10:07:07Z")

</div>

sure,&nbsp;that&nbsp;helps,&nbsp;but&nbsp;in&nbsp;the&nbsp;end&nbsp;my&nbsp;question&nbsp;isn’t&nbsp;‘how&nbsp;do&nbsp;i&nbsp;get&nbsp;IsDefaultJavascriptlibrary&nbsp;=&nbsp;true&nbsp;to&nbsp;work’,&nbsp;but&nbsp;‘how&nbsp;do&nbsp;i&nbsp;compress&nbsp;those&nbsp;.axd&nbsp;files’,&nbsp;like&nbsp;in&nbsp;the&nbsp;original&nbsp;question&nbsp;i&nbsp;link&nbsp;to,&nbsp;[thinkgeo.com/forums/MapSuite/tabid/143/aft/10866/Default.aspx](http://thinkgeo.com/forums/MapSuite/tabid/143/aft/10866/Default.aspx)&nbsp;.&nbsp;&nbsp;Using&nbsp;your&nbsp;clientscriptmanager&nbsp;method&nbsp;above&nbsp;does&nbsp;not&nbsp;compress&nbsp;those&nbsp;files,&nbsp;and&nbsp;puts&nbsp;me&nbsp;back&nbsp;where&nbsp;i&nbsp;started.&nbsp;&nbsp;Is&nbsp;there&nbsp;any&nbsp;documentation&nbsp;anywhere&nbsp;that&nbsp;has&nbsp;samples&nbsp;on&nbsp;the&nbsp;best&nbsp;way&nbsp;to&nbsp;optimize/compress&nbsp;your&nbsp;.axd&nbsp;files?

---

<div class="post-metadata">

**Author:** ![Ethan](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/ethan/32/19964_2.png) [@Ethan](https://community.thinkgeo.com/u/Ethan)\
**Post date:** [December 1, 2014, 11:10pm UTC](https://community.thinkgeo.com/t/isdefaultjavascriptlibrarydisabled-true-breaks-map/4259/4 "2014-12-01T23:10:31Z")

</div>

Hi&nbsp;Thomas,&nbsp;  
&nbsp;&nbsp;  
&nbsp;The&nbsp;code&nbsp;above&nbsp;just&nbsp;shows&nbsp;how&nbsp;to&nbsp;manually&nbsp;load&nbsp;the&nbsp;script&nbsp;files.&nbsp;  
&nbsp;&nbsp;  
&nbsp;In&nbsp;fact&nbsp;not&nbsp;all&nbsp;axd&nbsp;files&nbsp;in&nbsp;our&nbsp;map&nbsp;are&nbsp;script&nbsp;files,&nbsp;so&nbsp;we&nbsp;haven’t&nbsp;provide&nbsp;API&nbsp;for&nbsp;optimize/compress&nbsp;them.&nbsp;  
&nbsp;&nbsp;  
&nbsp;I&nbsp;think&nbsp;you&nbsp;can&nbsp;get&nbsp;the&nbsp;axd&nbsp;file&nbsp;in&nbsp;PreRender&nbsp;function,&nbsp;then&nbsp;write&nbsp;code&nbsp;to&nbsp;optimize/compress&nbsp;them&nbsp;(or&nbsp;find&nbsp;any&nbsp;3rd&nbsp;part&nbsp;library&nbsp;for&nbsp;it),&nbsp;then&nbsp;register&nbsp;the&nbsp;modified&nbsp;script&nbsp;to&nbsp;page.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Do&nbsp;you&nbsp;think&nbsp;that&nbsp;will&nbsp;works&nbsp;for&nbsp;your&nbsp;scenario?&nbsp;  
&nbsp;&nbsp;  
&nbsp;Regards,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Don

---

<div class="post-metadata">

**Author:** ![Thomas1](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/t/5f9b8f/32.png) [@Thomas1](https://community.thinkgeo.com/u/Thomas1)\
**Post date:** [December 2, 2014, 12:54pm UTC](https://community.thinkgeo.com/t/isdefaultjavascriptlibrarydisabled-true-breaks-map/4259/5 "2014-12-02T12:54:57Z")

</div>

i&nbsp;honestly&nbsp;have&nbsp;no&nbsp;idea&nbsp;if&nbsp;it&nbsp;will&nbsp;work&nbsp;for&nbsp;my&nbsp;scenario.&nbsp;&nbsp;I&nbsp;just&nbsp;assumed&nbsp;that&nbsp;you&nbsp;would&nbsp;already&nbsp;have&nbsp;steps&nbsp;layed&nbsp;out&nbsp;on&nbsp;how&nbsp;to&nbsp;compress&nbsp;your&nbsp;files.&nbsp;&nbsp;I’m&nbsp;not&nbsp;familiar&nbsp;with&nbsp;compressing&nbsp;.axd&nbsp;files&nbsp;myself&nbsp;and&nbsp;will&nbsp;need&nbsp;to&nbsp;investigate&nbsp;on&nbsp;how&nbsp;to&nbsp;do&nbsp;that.&nbsp;&nbsp;I&nbsp;figured&nbsp;i&nbsp;would&nbsp;just&nbsp;ask&nbsp;you&nbsp;first.

---

<div class="post-metadata">

**Author:** ![Troy](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/t/85f322/32.png) [@Troy](https://community.thinkgeo.com/u/Troy)\
**Post date:** [December 2, 2014, 8:54pm UTC](https://community.thinkgeo.com/t/isdefaultjavascriptlibrarydisabled-true-breaks-map/4259/6 "2014-12-02T20:54:50Z")

</div>

Hi&nbsp;Thomas,  
  
  
  
I&nbsp;think&nbsp;there&nbsp;is&nbsp;a&nbsp;common&nbsp;way&nbsp;to&nbsp;compress&nbsp;and&nbsp;referring&nbsp;thinkgeo&nbsp;js&nbsp;locally,&nbsp;please&nbsp;try&nbsp;the&nbsp;below&nbsp;way:&nbsp;We&nbsp;can&nbsp;save&nbsp;those&nbsp;axd&nbsp;files&nbsp;as&nbsp;js&nbsp;files,&nbsp;then&nbsp;compress&nbsp;those&nbsp;js&nbsp;files&nbsp;and&nbsp;referring&nbsp;them&nbsp;in&nbsp;view&nbsp;side&nbsp;rather&nbsp;than&nbsp;registering&nbsp;those&nbsp;js&nbsp;files&nbsp;in&nbsp;server&nbsp;side:

> `@using ThinkGeo.MapSuite.MvcEdition`  
> `@using ThinkGeo.MapSuite.Core`  
> `@model ThinkGeo.MapSuite.MvcEdition.Map  `  
> &nbsp;  
> `<``script`&nbsp;`src``=``"../../Scripts/opl_GeoResource.js"``></``script``>`  
> `<``script`&nbsp;`src``=``"../../Scripts/extension_GeoResource.js"``></``script``>`  
> `<``script`&nbsp;`src``=``"../../Scripts/helper_GeoResource.js"``></``script``>`  
> `<``script`&nbsp;`src``=``"../../Scripts/parser_GeoResource.js"``></``script``>`  
> `<``script`&nbsp;`src``=``"../../Scripts/func_GeoResource.js"``></``script``>`  
> `<``script`&nbsp;`src``=``"../../Scripts/cm_GeoResource.js"``></``script``>`  
> `<``script`&nbsp;`src``=``"../../Scripts/MicrosoftAjax.js"``></``script``>`  
> &nbsp;  
> `<``div`&nbsp;`style``=``"width: 500px; height: 400px;"``>`  
> `    ``@{Html.ThinkGeo().Map(Model).Render();}`  
> `</``div``>`

  
Please&nbsp;notice&nbsp;the&nbsp;referring&nbsp;order&nbsp;on&nbsp;those&nbsp;js&nbsp;files&nbsp;and&nbsp;set&nbsp;the&nbsp;IsDefaultJavascriptLibraryDisabled&nbsp;as&nbsp;true.&nbsp;Since&nbsp;we&nbsp;have&nbsp;those&nbsp;files&nbsp;locally,&nbsp;we&nbsp;can&nbsp;feel&nbsp;free&nbsp;to&nbsp;compress&nbsp;those&nbsp;files&nbsp;with&nbsp;some&nbsp;tools&nbsp;like&nbsp;Minifer,JSCompress&nbsp;etc.  
  
  
  
Hope&nbsp;it&nbsp;helps&nbsp;and&nbsp;any&nbsp;questions,&nbsp;please&nbsp;feel&nbsp;free&nbsp;to&nbsp;let&nbsp;us&nbsp;know.  
  
Thanks,  
  
Troy

---

<div class="post-metadata">

**Author:** ![Thomas1](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/t/5f9b8f/32.png) [@Thomas1](https://community.thinkgeo.com/u/Thomas1)\
**Post date:** [December 3, 2014, 7:34pm UTC](https://community.thinkgeo.com/t/isdefaultjavascriptlibrarydisabled-true-breaks-map/4259/7 "2014-12-03T19:34:24Z")

</div>

Ok,&nbsp;thank&nbsp;you.&nbsp;&nbsp;I&nbsp;understand&nbsp;where&nbsp;you’re&nbsp;going&nbsp;with&nbsp;this&nbsp;now.&nbsp;&nbsp;I’ve&nbsp;downloaded&nbsp;the&nbsp;axd&nbsp;files&nbsp;like&nbsp;you&nbsp;mentioned&nbsp;and&nbsp;turned&nbsp;them&nbsp;into&nbsp;js&nbsp;files&nbsp;that&nbsp;i&nbsp;can&nbsp;bundle,&nbsp;and&nbsp;that&nbsp;works.&nbsp;&nbsp;I&nbsp;have&nbsp;1&nbsp;more&nbsp;issue&nbsp;though:&nbsp;  
&nbsp;we&nbsp;use&nbsp;google&nbsp;as&nbsp;one&nbsp;of&nbsp;our&nbsp;layer&nbsp;options&nbsp;on&nbsp;the&nbsp;map.&nbsp;&nbsp;Could&nbsp;you&nbsp;point&nbsp;me&nbsp;to&nbsp;the&nbsp;correct&nbsp;axd/js&nbsp;file&nbsp;that&nbsp;thinkgeo&nbsp;uses&nbsp;to&nbsp;support&nbsp;google?&nbsp;&nbsp;With&nbsp;the&nbsp;references&nbsp;above&nbsp;i’m&nbsp;getting&nbsp;a&nbsp;‘google&nbsp;is&nbsp;not&nbsp;defined’&nbsp;error.&nbsp;

---

<div class="post-metadata">

**Author:** ![Troy](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/t/85f322/32.png) [@Troy](https://community.thinkgeo.com/u/Troy)\
**Post date:** [December 5, 2014, 2:58am UTC](https://community.thinkgeo.com/t/isdefaultjavascriptlibrarydisabled-true-breaks-map/4259/8 "2014-12-05T02:58:51Z")

</div>

Hi&nbsp;Thomas,&nbsp;  
&nbsp;&nbsp;  
&nbsp;For&nbsp;the&nbsp;google&nbsp;not&nbsp;defined&nbsp;issue,&nbsp;the&nbsp;below&nbsp;codes&nbsp;show&nbsp;how&nbsp;to&nbsp;add&nbsp;a&nbsp;google&nbsp;js&nbsp;referring&nbsp;on&nbsp;the&nbsp;client,&nbsp;please&nbsp;try&nbsp;it:&nbsp;  
&nbsp;&nbsp;  
&nbsp;map.ClientScriptFileNames.Add("Google",&nbsp;((GoogleOverlay)overlay).JavaScriptLibraryUri.AbsoluteUri);&nbsp;  
&nbsp;&nbsp;  
&nbsp;If&nbsp;the&nbsp;issue&nbsp;persists,&nbsp;please&nbsp;feel&nbsp;free&nbsp;to&nbsp;let&nbsp;us&nbsp;know.&nbsp;  
&nbsp;Thanks,&nbsp;  
&nbsp;Troy

---

<div class="post-metadata">

**Author:** ![Thomas1](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/t/5f9b8f/32.png) [@Thomas1](https://community.thinkgeo.com/u/Thomas1)\
**Post date:** [December 6, 2014, 9:14am UTC](https://community.thinkgeo.com/t/isdefaultjavascriptlibrarydisabled-true-breaks-map/4259/9 "2014-12-06T09:14:57Z")

</div>

Thanks&nbsp;very&nbsp;much!

---

<div class="post-metadata">

**Author:** ![Troy](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/t/85f322/32.png) [@Troy](https://community.thinkgeo.com/u/Troy)\
**Post date:** [December 7, 2014, 8:07pm UTC](https://community.thinkgeo.com/t/isdefaultjavascriptlibrarydisabled-true-breaks-map/4259/10 "2014-12-07T20:07:41Z")

</div>

very&nbsp;welcome!&nbsp;  
&nbsp;&nbsp;  
&nbsp;Any&nbsp;other&nbsp;questions,&nbsp;please&nbsp;feel&nbsp;free&nbsp;to&nbsp;let&nbsp;us&nbsp;know.&nbsp;  
&nbsp;Thanks,&nbsp;  
&nbsp;Troy
