We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 53452
    • 12 Posts
    Newbie here, still learning to read and use code but am totally failing on how to do something that is probably a very easy task. I'm trying to use an interactive US map for my locations page and can't figure out how to incorporate it into Modx Revolution ver 2.4.0. The interactive US map comes from Simplemaps.com and the instructions that I'm following to install it (general instructions) are here: https://simplemaps.com/docs/typical-install#usmap. I've uploaded the two files to my server and I understand that I have to change the srce="http://yoursite.com..." to where my two files reside on my server. What I can't seem to figure out is where to put the info. from step 3 ( <script type ="text/javascript...") or what to do with the <div id=..." information. The instructions say to add it to the header of my html page. But my website uses page templates, chunks, and snippets and while I have a basic understanding of how they all work togethe, I have no idea where to find the "header of my html page."

    I tried putting the script in a chunk and then the chunk is called up in the locations page template but that didn't work. I even tried adding it directly to the locations page template. No maps load on the page at all. Can anyone give me any direction on where I'm supposed to be doing this? (and layman's terms would be greatly appreciated). Thanks!!
      • 38783
      • 571 Posts
      I would suggest placing the .js files (mapdata.js and usmap...js) in your assets folder. It would be sensible to create a javascript folder inside the assets folder and place the files in there. (Does the second file really have three dots in the name?)

      The path to your javascript files would then be shown like this in the code.

      <script type="text/javascript" src="http://yoursite.com/assets/javascript/mapdata.js"></script>		
      <script  type="text/javascript" src="http://yoursite.com/assets/javascript/usmap...js"></script>


      You can replace the first part of this url with a MODX tag: [[++site_url]]

      <script type="text/javascript" src="[[++site_url]]assets/javascript/mapdata.js"></script>		
      <script  type="text/javascript" src="[[++site_url]]assets/javascript/usmap...js"></script>


      If you look at the resource you want to display the map on you will see that it has a Template applied to it. For the sake of this example we will say it is called Base Template.

      If you look in your Elements you should find a Template called Base Template. It is probable that the header of your html page will be in here.

      You should place the code somewhere between the opening <head> and closing </head> tags. Probably just before the closing one.

      Then on your map page you would place the 'map' code in the content area

      <div id="map"></div>
      
        If I help you out on these forums I would be very grateful if you would consider rating me on Trustpilot: https://uk.trustpilot.com/review/andytough.com

        email: [email protected] | website: https://andytough.com
        • 53452
        • 12 Posts
        Thank you Andy for replying and doing so in such a patient and precise manner. I understand every word of it -which is rare on this site filled with so many experts. smiley From your instructions, I seemed to be on the right path from the start:
        So my mapdata.js and usmap.js files are in the asset folder where they should be. (I made sure my script contained the correct file name and did not have the extra space between "<script" and "type=")

        I did not know that I could do this >>
        You can replace the first part of this url with a MODX tag: [[++site_url]]
        Thanks for the tip!

        I have this code:
        <div id="map"></div>
        on my page where I want my map to reside.

        But the part about where to put the script in the head tags is where I'm running into trouble. In my template for the Locations Map, the head tags are actually a chunk. Here's the actual code from the template:

        <!DOCTYPE html>
        <html lang="en">
        
        <!-- Head Tag -->
        [[$head-tag]]
        
        
        <body>
        [[$gtm]]
        
            <!-- Navigation -->
            [[$navigation]]
        
        	<!-- PAGE CONTENT -->
        
        	<section class="top">
        	    <div class="container">
        
        			
        			[[$page-info]]
        
        
        
        		</div><!--end container-->
                </section>
        
        
        
        
        	
        	<!-- PAGE CONTENT END-->
        
        
            <!-- Footer -->
            [[$footer]]
        	
        	<!-- JS Includes -->
        	[[$js-includes]]
        
        
        
        </body>
        
        </html>
        




        So I navigated to the Head Tag chunk and find this:


        <head>
        
            <meta charset="utf-8">
            <meta http-equiv="X-UA-Compatible" content="IE=edge">
            <meta name="viewport" content="width=device-width, initial-scale=1">
        
        	<link rel="canonical" href="[[*canonical]]" />
        	<meta name="description" content="[[*description]]">
        	<meta name="keywords" content="[[*MetaKeywords]]" />
        	<base href="[[++site_url]]" />
        	 <meta name="author" content="">
        
        	<title>[[++site_name]] | [[*longtitle]]</title>
        
        
        
            <!-- Bootstrap Core CSS -->
            <link rel="stylesheet" href="assets/css/bootstrap.min.css" type="text/css">
            
            <!-- Font Awesome -->
            <link href="http://maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css" rel="stylesheet" type="text/css">
        
            <!-- Typekit -->
            <script src="https://use.typekit.net/xkt0ssd.js"></script>
        	<script>try{Typekit.load({ async: true });}catch(e){}</script>
        
            <!-- Plugin CSS -->
            <link rel="stylesheet" href="assets/css/animate.min.css" type="text/css">
            
            <!-- Forms -->
            <link rel="stylesheet" href="assets/css/flat-form.css" type="text/css">    
        
            <!-- Custom CSS -->
            <link rel="stylesheet" href="assets/css/spl.css" type="text/css">
        
        
        <!--[if IE 9 ]>
        	<link href="assets/css/ie9.css" rel="stylesheet" />
        	<![endif]-->
        
            <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
            <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
            <!--[if lt IE 9]>
                <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
                <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
            <![endif]-->
        
        	[[$analytics]]
        
        </head>



        Yesterday, I tried to put the script (referencing the source of the .js files in step 2) right above the section that begins with <!--[if IE 9 ]> but it didn't work. Should I be putting it somewhere else?

        Thanks in advance!!
          • 38783
          • 571 Posts
          It looks to me as if you did everything correctly!

          First I would check that the .js files are accessible to the page. Navigate to your page in a web browser but instead of going to http://yoursite.com go to view-source:http://yoursite.com. Then check that if you click on the links to your .js files that you do get to view the content of the .js files. If you do not then your link to them is incorrect and needs to be fixed. If you can see the .js files then I would use the sample map, just to rule out a problem with your custom map.

          You can download a copy of their sample map here: https://simplemaps.com/download/custom-zip/world/7k0LUyE9

          The only other thing that I can think of is that there could be a clash between their .js files and some other .js files that are loading. To test this you could temporarily remove links to other .js files. This is for troubleshooting only, as you will need these files!
            If I help you out on these forums I would be very grateful if you would consider rating me on Trustpilot: https://uk.trustpilot.com/review/andytough.com

            email: [email protected] | website: https://andytough.com
            • 53452
            • 12 Posts
            Well, I can definitely see the content of both .js files so I will try the sample map next to see if I can get that to load. If so, then I will move on to the possibility of clashing .js files and test each one. Thank you so much for all your help and direction! It's nice to know that there are people out there still willing to help those of us who are trying to learn the hard way. (no classes, on the job, limited resources). Have a great day!
              • 38783
              • 571 Posts
              You are welcome. I have received a lot of support on these forums myself and I know how it feels when you are new to something!

              Let me know how you get on. When testing the other .js files I would remove all of them first. If that resolves the problem I would put them back one at a time. You can 'remove' them by adding one character to their name which will break the link.
                If I help you out on these forums I would be very grateful if you would consider rating me on Trustpilot: https://uk.trustpilot.com/review/andytough.com

                email: [email protected] | website: https://andytough.com
                • 53452
                • 12 Posts
                Well, I can't even get the sample map to work. When I inspect the Locations Map page (where the map should be appearing) and click on the head tag, I found some Uncaught TypeErrors. But it's like reading Greek so I'm totally lost as to what I'm doing wrong now.
                  • 38783
                  • 571 Posts
                  I'm not sure either. I'm don't know much Javascript. Would you be willing to publish a link to the site here, or message me with a link. I might be able to see something from the source code. If you would prefer not to then I would suggest starting by looking at the content of usmap.js and seeing what is on line 15 as that is where the error is occurring. Posting the content of the two .js files might be helpful in case someone who knows a bit of Javascript spots this post.
                    If I help you out on these forums I would be very grateful if you would consider rating me on Trustpilot: https://uk.trustpilot.com/review/andytough.com

                    email: [email protected] | website: https://andytough.com
                    • 53452
                    • 12 Posts
                    Unfortunately, the page isn't published yet because the map doesn't work and I can't publish it until it's working and reviewed by my superiors. I opened the usmap.js file in codewriter so that I could maybe see the error and row 15 is one really long line of code. I can't imaging how you would even find an error in all that.

                    eval((function(x){var d="";var p=0;while(p<x.length){if(x.charAt(p)!="`")d+=x.charAt(p++);else{var l=x.charCodeAt(p+3)-28;if(l>4)d+=d.substr(d.length-x.charCodeAt(p+1)*96-x.charCodeAt(p+2)+3104-l,l);else d+="`";p+=4}}return d})("(function (plugin_name) {` .') ` \"(funcName, baseObj) {` ,$ = ` \"%|| \"docReady\";` E# =` N$ || window;var readyList = []` )&Fired = false` -&EventHandlersInstall` ='`!e%` H!() {if (!` h&) {` r)true;for (var i = 0; i <`!N&.length; i++` V$List[i].fn.call(`\"*\",` K&[i].ctx);}`\"1+}}`!U*StateChange`!f$document.` 7& === \"complete\"`!?$();}}`#P#[`#x$]`$%#`$O\"callback, context` ~#`\"e)setTimeout`%/*` U$(` T$;}, 1);return;} else`\"h'.push({fn:`!,'tx:` X#});}`!{B || !` >%attach`%5! && ` F5interactiv`\"~!`\"+'` E!`!v!`!m#`%L&`%{2`#{,add` D!Listener) {` #5(\"DOMContentLoaded\"`%S#,`' \");`%j\"` G/loa` <.`#`$`\"]0(\"on` I!statec`&$!` Y$`&1'`!)&` M*`!$(`'%$`(j5`(G!}};})(`*7&,`*&#);`%q'console, Object, Array`#N#typeof ` =#`$U\"undefined`%6!` 4*.log` 6,) {` W% {};` >)`'t') {}`&O\"` m#`!K\".create !== \"` F$\") {` 1*` ^(o`-'#` )!F` t!F.prototype = o`(0# new F;`!0#!`\"U!` ?&.forEach) {` #3`!))fn, scope) {`,8*, len = this`,9& < len; ++i) {`,7$` ]!,` F![i], i` &\")`$h!})`,X#.`$M%` )#`$U$` (#`$^\";})()`.k!helper =`04\"`#g%` $%delete_element(e) {e.parentNode.removeChild(e);`-O&clear_sets(arr`\"I-`\"A\"arr`.k+var set = arr[i];set`#M$`!X'`!B\"`!7\"();})` C!splice(0, se`/k$)`/ *placeAll(str, find,` .$`.l!`%8!str.` .#(new RegExp(` H\"\"g\")` J&`\"G'to_float(str`\"##num = parseF` 2%;if (isNaN(num)`!-&`2X\"`.g&`&c\"um`!v(`+f$(obj,`(!, fn`)N#obj`*p() {obj[\"e\" +` F! + fn`0v!n;obj[` &*`%4(` D0`&:$e` w!;};`! +(\"on` J$, ` r*`-6&` P!`-c,`\" $`-d&`\"H&linePath(startX, ` #!Y, endX, endY`%p$tart = {x:` D$y` $\"Y}`'h!end` 9\"` U\"y:endY}`*K$\"M\" +` _\".x + \" ` &&y` +!L\" + end` 4'end.y`'j)one(src`.O!n`&1!`,O'` .' != \"o`)Y!`-k!` /(=== null`&h'` 4&;}`&6!ew` E&` 3(`*]!tructor();`),'i` Z)) {` Y'[i] =`!l.[i]`0m!`-L$`!6*isMobi`/9\"Android:`%z)` Q$avigator.userAgent.match(/` P#/i);}, BlackBerry` 8L` P&` d#iOS` 4LiPhone|iPad|iPo`!M$Opera` <L` P!\\sMini` `#W`(Y!s` 9LIE`#^\"` _#an`\"e2`$#$.`#J#() ||` ,&`\"u&` *+iOS` #+`!u!` %+`!u#(`1(!`!6%isF` $#`.q%ToCheck`)J#getT`3R\"{`(}%` ;+ &&` ?$.toString`2J\"` b-=== \"[`(L\" `!2$]\"`)2'findPos(obj`1x(getStyle`-n\"styleProp`-j'curren` @\"`!u#y = ` +,[` S%]`,h$if `-P$getComputed` Y,` +3`!K\"`*D!` n)`#$#`+L(scrollDist(` q#html = document.getE`4@\"sByTagName(\"html\")[0]`11!html.` e\"Top &&` U&` `$` ]#` <&`&:&[` T'Left,`!?!` @&`\"h)` |+||` NY +` ?<`!=0` 4>`!f,` F%body`!D1` .0`!6\"` E3`$f&[0, 0]`-u\"body_posi`$y!=`&z&` Y), \"` <$\")`$]!` I+= \"relative\") {`!4+tyle.` z'\"static\"`!=\"`'S#` vC` K#top` #$left =` .# = 0, scr`(Q\", fixed = false;while ((` ;\"scr.parentNode) &&` U!!`'C'body) {` $-` O\"`%F'|| 0;`!5#` 1)`&G#0`#*!`\"1%scr`\"#)`#6!`!_!\") {`!e$true;}}if (` -\"&& !`)v#opera`)5#scrDist`\"%\"`)O%;`!f$+` 3!Dist[0]`!]$` *'1];}do`\"4&+`+e\"offsetLeft` I'` /&Top;} `#C#obj`,:#` 7\"P`#J!);`%#;`%r)`.k$[`!A#,`$e#]`+m'distance(xy0, xy1`\"[#x0 = xy0.x`%J!y` '$y` *!x1` *!1` 6$` '$` 8\"dx = x1 - x0` +\"y = y1 - y0`!M$Math.sqrt(dy * dy + dx * dx)`!U'rotate(point, transform`!^$ = ` 6![0]`!D\"` (%1` +\"str = Raphael.` W%Path(\"M\" + x + \",\" + y` u(`1e%(`(6\"re = /M(-?\\d+.?\\d*),(` \"'/` A!m = re.exec(str)`#z%m[1], m[2]`#r(bbox_union(arr`\"-$a = [`!y\"x2` \"'y2` /'y` %#for (var i = 0; i < arr.length; i++` q#bb = arr[i];xa.push(bb.x);x2` $'2);y` %&y);y` 3'y2)`+W\"x = helper.min(xa`# \"x2` -'ax(x2` 2#y` B*y` /$` A+y2a`#+%{x:x, x2:x2, y:y, y2:y2, width:x2 - x, height:y2 - y}`#R'mi`#Q!ay`/T&`&P!min.apply(Math, ` >\"` M(ax` C2ax` ;:`''\"_bbox(bbox`&.`$P!bbox.x,`%9!.y`$i\"b` /&2` ,*c` A.2` 4\"d` A/` 4#a2 =`(T$a`!;(`!'\"` 3'b` --c` 3'c` --d` 3'd` --x_`\"p! = [a2[0], b2` \"!c` (\"d2[0]`':#` >)1` E\"1` E\"1` E\"1` D#x_min =`$m!` {#`!'$max =`$M!` ,)y` G'`!\"#` 0%` I%` 0%`&F'_min`&I!` #\"x2:` !`&V\"` $\"`&X#` d!-`!V\"`&\\&` /#` Z!`&a(x_in`!)\"(x, `1 $i = a`)c$`/s#i--) {if (a[i] === x`&_&`1{#` '#`3w\"` &${min:`!I!max:`!g!addEvent:a` \"#, isMobile:i` \"#, linePath:l` \"#, clone:clone, isF`\"!#:i` \"%, findPos:f` \"\", replaceAll:r` \"%,`(+(:`(8'` 1$` -#`'<\"`-H\":`-O&,`1Z%:`1d$,`#C':`#O&, clear_sets:c` \"%, delete_element:d` \"), to_float:t` \"#};})`/o#mapdata = window[plugin_name + \"_` :#\"] ? ` \"=:`$J#` s#info` ]9info` [;` <#` k+` =!= ` E'.subs`2*\"0,` ,)`&X\" - 3).`$O#(\"simplemaps_\", \"\"`*U#emo =`&^\"`+C!randed =`!3'autoload`*4&`4\"#hared_paths = {rounded_box:\"m2.158.263h5.684c1.05 0 1.895.845` $\"` *\"v` =\"0 1.05-` 4&-` 9'h-` ?\"-` c\"` 5\"` G!` $#` d\"` ?#0` B!` 4&` d(z\"`#*!s:\"m4.8 1.5c-.111 0-.2.089-.2.2v3h-2.9` /(134-.2.3 0 .166.089.3.2.3h2.9v3c0 .111` 2!2.2.2h.2c` X\" .2-` 2\"-.2v-3h3.1` /(134.2-.3 0-.166` G!-.3-` 0!h-3.1v-3c0`!G!` 6#2` 8!2z\", min`\")!1.8 4.7h6.6` s&` v\"`!l%`!A\"3`\"#!h-6.6`\"6'`!C!`!.\"`!B#`!A#` .!\"`2z!ow:\"m7.07 8.721c2.874-1.335 2.01-5.762-2.35-5.661v-1.778l-3.445 2.694 ` $$843v-1.818c3.638-.076 3.472 2.802 2.35 3.721z\"}`&R!hooks_object = {over_s`+r!`'/!, ` -!region` &)loca`-.!` -$ut` J+ut` H,ut` F-click` K*` -\"` M*` .\"` K.ose_popup` +$zoomable_` f/` -+` s+omple` C&refresh_` (,zooming` '-back` R&ady`!m*x` )#`#q\"`+Z#`#y!`#h+[]`#f*` '%`\"T%` -!`#e%` &$` C(`#\\([]`#W*` &&` G'`#P+[], pre` G,` *%` O'` +%`!\"+`$/&[]`#3` &/`!G(`#X$[]`#z/` T$`#})[]`$ #` M\"ady`\"2'xy:[]`#x\"api`'h'`19#:`1A#,`13$:`0X#, load:load,`(J\":helper.clone(`(W()`0S%` 6/` .(), copy:function () {var new_` C\"`!P(` [)this.` 3#)`!e&` /1info)`!%n` z!copy`\"r'};`2.*.push(`\"&&);return`\"8';}, cre`)^!`\"CBwindow[`46' + \"_` 8#\"] ? `!p)` 0<) :`47\"`#>&` 96info` WH` J\"` x'`#%~`#NUmobile_device`!2$isM` 2!.any() ? true`\"%&loaded`,p$`$Y%trigger`!f!(name, args`$q#`1#+`)B&.` 5!`)\\!fn =` <)[name];if (fn) {fn.apply(null` x#;}`.'/` t'` .(`.Y(`#!! =` M)`!)#for (var i = 0; i <` I).length; i++`\"8#`!v!` 8([i`!W=}}`#3%load`'z$`,:)thi`!p\"`'4#`\".*` .#` 9$info` 0-info`!E!!` [$|| !`*|$ {console.log(\"The`!!%o` j&`!H#is missing or corrupted.\"`&5$`$&\"`$g@`$%Gback_image_url, ` &!s_directory, di` \"%`0~!_specific, main_settings, normalizing_factor`'6&pre`#$` X* =`\"l$.` +*;` q)` <'` +)`\" !scripts = document.getElementsByTagName(\"` C\"\")`$n\"ysrc =` V$[` _#`&Y# - 1].src`\"x+`!D!`!6'.` 0'!= \"no\" ?` )6`*A#;`#j*` Z7` :!` W>` B!` u$`$U,` n-` 0-!= \"default` t.` =-`! $` u(` 4-?`%{- :`#n\".substring(0,` ,#lastIndexOf(\"/usmap.js\") + 1) + \"map`\"D\"s/\"`),\"`\"N+&&`$;') {`#Q-`!>&+` ?';}`(r!ignore_pos, fly_in, rotat`2 !nual_zoom, responsive, div, initi` 6%` \"(_solo, tooltip_` a\", last_clicked` 4&up, regions`(L&get_`\"T!nfo() {div`$[-` /!== undefined ?`#)!\" :` 8.;`!T(`%E.` 0)` e+-1` `-` D(` m)`\"U!` b9` ;#= \"yes\" &&`#-) != -1`2m+;`$2\"` f-` 1\"_fr`!d-||` .9`(l$` y!`\",-` A';`%+&`!--width` h!` ;&\"`!j,`&$\"` K-` 0#`) ,` 0#`*%%f (` Y$= \"0\") {` h%` =\"}zooming_o`\"m.`$f#`\"=,true;`'O'` G-` /)`$@$`\"(,`'+\"`.w\"info.`+>#_` 2$&& `!Q'?` /5`\"A(`/a$` 5#) {` {)` 0(;}` E(labels) {` #\"` D'` +\";}`)>*`#7%`)G(` ,%`)P&` *%`*|&`#q&`07$ground`3@(` %-bbox,`\"k!_time` $#mobil` %$incr`1r!, custom_shapes, popup_centered` ($orientation, order_number` i#percentage`,2&back, link_text` D\"`$<\", fade`!W#hide_eastern_`#<\", `#D\",`-i$`$`$`#Z#var adjacent_opacity` 0!op` \"&`\";%al` +!` W!_size` $'color` %'` U(new_tab` '!`!8%oc`\"a!` <)hook`!O\"b`\"v\"` |%`#G#` |%` *\"max`*+!` ('` c(` ,\"shadow` Y)rner`!\"\"` ,\"nocs` $(font`/H*refreshable`/U%`%r0`)F-` 01&&` \"@!`*\\%` *?`)I$`'01`!4>` A!` h=` A!`!\"$`#c#` `8transparent`,((0 : 1;`%}&` R-` 0'`!D,` 0': 22` _#`%T!` P3` 6\"` R2` 6\": \"#ffffff\";`'%#` [-url_` 3%`.(3`'D4`!G.` 1,`!M-` 1,: 1;`(9!` [-js_` 2#`!?3`(`'`$:.` 1'`%--` 1': 1.5;`):'` Y-` 0(` Z,` 0(`#`(`-B-` _3` 6(` f2` 6(: \"auto` w$`.Z$`!Z4` 7$`!^3` 7$` g+`$b4` 0*`!V3`$k%0.9` i#`,?\"` X3` 6#> -1` \\3` ;#: 1`$<%`,!`$.5` 8\"`$14` 8\": `%+$`-[!` U3` 5#`&F3`.z*` L3` 6%`!:2` 6%` g*font` Z3` 6!` W2` 6!: \"12px/1.5 Verdana, Arial, Helvetica, sans-serif\";`2Z'`!$-`4U!out_` :'ly`\"o!`/:\"`!r! :`\"v!;`3`,` ^-` 0-`!z,` 0-: 0.3;`!B!tim`*5.` 0&` [,` 0&: 0.5` ^\"`!~%` S2` 5&` Y1` 5&: 2` k\"mobil`!@3` 4$`\"w2fade`!~2` 0&`!6,` 0&* 1000 : 200`0D\"`'@\"pdata`/}\"s;custom_shape`'S.` 0*` {,` 0*: {};initial_back` ]-` 0)&&` \"8!`\"h%` *7`(*$hide_eastern_`\">'` M(` /1`)`3link_tex`%0.` 0&`1c-` 1%: \"View Website\";`0d\"numbe`0H.` 0)` e,` 0)`!V$`%s!percentag`&!3` 5'`&r1` 5'`.d!9;}func`0^!is_onclick(`+1!s) {if ` &#`#1!on_` <!\") {return`'+\"} else ` ?+detect\" && touch` ?2` ,$`\"@\"}`!B*ff`!26ff`!03` b,var vml;var tough` %!ie` ,!ios` #!`\"3$` (!`1l#ff =` _#var reload` &)`\"3!` I&s;`!u%get_client_info() {vml = Raphael.typ`*[\"VML`&Z-ie = document.all` 0-os = helper.isM`+K!.iOS()` ;,`!_!` :/any` ;.`#Y$`0U._up`3'1` 3!:`1#0s;`#M$`#+%`#M(`$r*;`$B!map_outer`#O!map_inn` $&div` 0%hold` ='zoom`#t&create_dom_structure() {` ^\"`#P(getEl`/5!ById(div);` u&` ,: + \"` B#\") ?` Y8` =*`$]%f (`!#&`!W%.removeChild` 4(`&M\"t_to_del`!A7\"tt_sm_\" + `\",!if (` O%) {` #%.parentNode`!()` C&;}}`\"Y2`#]\"`!/#(\"div\"`#4\"`$[!` %Azoom` $A`%@!` sF.id = `#n$` .!\"`!(%` /*zoom` 6\"` !` /*` .!` 8\"`\"Z\"` 1*`$h#` 4(style.posi`&b!= \"relative` y(` &<`!\"` 4.absolut` ?#`\"(!` Y.` ,5zIndex = \"1` u.` -,div.append`&T.`\"E'` 3,zoom` $9`!/!` %9`\"~!`*h#transform_rotat`.N\"widt`.N\"height` &!scal` 9\"original_` >&` *%` F'initial_view` ,!normalizing_facto`+V\"ratio`!.&_to` ^$`+\\-imensions(res` d!`*(&`#`\"` ^! = \"`%b/` 1'if (responsive) {` 4$` f#offsetW`\";!if (` 9\"< 1` 9.`*5'` J(`*)'`!0+` \"\"+ \"px\"`3H%` k&`/Y(` /#== undefined ? 800`/~-`$%\"`\"V1`!\"*` (** 1`-[$info.calibrate) {`$T( = {};` &(.x = -1 * ` K-.x_adjust` C*y` 76y` <1x2 =`%y).x +` K/`\"V\"` ~*2 = (` ^,-` _+) /` \\/`&j\"`$1$`\"W+` G$`'P)}`($*`!e-`!(.;`(B+` C,y` B-y;`(/+ =`):+ /`)6-` A%` 9$`(r,`)A.` c01000`%b!!`),'`*k!` p'`*g+`#A! =`&9#`+W\") {var bbox_array = [];for (`+-! in`#Y%state_` B&` T%`#{'` 4,[i];` $&.push(bb`-$#path` G! = helper.` G!union(` ~'`,'!center_x = 0.5 * (` W%.x2 +` e&.x) *`-T'` S#y` F0y` L*y` P&`.Y,`1o!\" + ` (#+ \",\" +`!N&` \"+y`.&\"iv`\"4&` T\"`!%!`'~),`/e-)`&f&`':$riv`(r#`&y.riv.`%z#}` a&`%I$\"s\" +`\"0\"`!\\%` $&0,0\"`\"C& =`\"8$?`!J'` F$`\"c-:` 5,;}`$t#pe`0g\"everything` *!all_lines` %%visible_`%v!` 1\"location_label` A&externa` J4` C'`!M%` @!`!T,`'2!ackground` >!` %&_col`2b#` *'imag` S\"all_pil`!L'`!o'all_region` &&`\"&$`!S#op` #+bottom` &+` T!`\"*\"`3e,canvas() {`#a! = Raphael(map_inner,`*_\", `%O\");`\" & =`$7\".set(` -(`\"R\"` 6%rect`/!+ -`+z,* 2,`-G+` 9(`&y#` A!` I-5` )'` @%5)`,9!`#i,_url`+h#` *\"`+/#` 7-` 3!?`$H-` 2\":`!^)`\"O(` @!`\"R%` )!`!/1,`!4'.x,` \"(y` .*`0J!` 35` /+y`#|(`-^#`!/+);}` (7`$V!` X)`'j%(`'n+` 9)hide();`';&`%O+`)N.` ./`'i#` '/`'J%` -+`'w)`&a,`'+` c0`(3!` *+`+%+`!n7` (5`+Q*` ./`*R!`!=0` =/`-.&` B+` /&`$a\"`#s&,`+!*,`'<'` 4#`!u!` &\"`!_*`3K#trial_`.S&map_` /! = false`+<-` L\"text() {if (!demo) {return;}if (`!L$.hostname.match(\"simplemaps.com\")) {demo`!&%` Y(`!D%`*##parent =`!\\&.` -\"Node;` %\".removeChild` V';`\"'.}` '(document.`\"@\"Element(\"div\"` R'.style.cssText = \"display:inline !important\"` E-posi`#E!= \"absolute\"`,X\"randed`\"@#h = 20`$*!w = 140;} else` 5&3` 5&200`\" '`!$#left =`/N\" - w + \"px`!A.top =`/m# - h` 04zIndex = \"1` 7\"`0P!.append`#[-`&*'`0}+` 5!, w, h`/1#`\"M)t`#O\"` U'.`&D!w - 5, h * 0.5, \"S`%w+;text.attr({'text-anchor':\"end\", 'font-size':14` ($w`\"T!':\"bold\", cursor:\"pointer` O%family':\"a`!{!sans-serif\", title:\"Built with `!W\"Maps\"})`$N)`!iS Trial`!vL8`!\\f});}`!7!node.setAttribute(\"href\", \"http://`*0,`!n\"click(`+B%() {window.`*&ref =` P4;}`,J#`#1!_back`'}!back_arrow` *!zoom_in` \"&out` #&` M%` )!ab` 0)in_`!a!` O)` ,#`-4,nav_buttons(`'4#navig`0j\"`3W!`,A!in_settings.` 0-? ` \";: \"#f7f7f7\"`!P!` 6'border` h>` ;)` v7` ;): \"#636363`!'-opacity` w8` ;$` s7` ;$: 0.8` ~!`$]!`!x3` 0(` e,` 0(:`#s-` v!legac`!`.` O'`\"W#` a8` ;$` w)`#)(`!{'`#9` 0/`!!2`$#+`\" \"`$'$w`#e8size === undefined ? 40 :` 5:`!p.`$u4` =$x == \"yes\" ? 1 : 0;`!U#` \"!* 1`)Y&`0|#` 5\"` 2!m` >&0.` D\"s` +$/ 1`2;\"image_w,` \"#h;`):#`!>!()`)H-` 1# {`*n& =`+.\".set()`3.%`!?%h` %$`1J!ack_`!&\"url`*4#img = new Image;img.onload = `,g)`!h# = img.`3y!;`!s#` -#`\"b\";mak`!{&}` m!src =`#'\"`!8%`0T%` B*`!+%` +( {`!l1`-f&`3|+outer`#Q$`#X&`\"|\"`#5&`#7*` d!.` F!` |+, 0, 0` \\0`%2*`$a$` r,`20#`1L,}` Y#` >\"push`!2\"` O'` 5)`1#\"` ,!` &!_handler`3~&`\"Q<w, `\"^#fill`'z'`&~\"`'r'`\"g(path(shared_paths.rounded_box)`\"6#fill:`+K', 'stroke-`%f!':1, ` +\"` ?#`*Y(` C&`!L#'` 7*` /#, 'fill` ;&0, `#B/`\"!&attrs = {` w?`!_$.5`!;/1,`#-!`\"2+`!?*`#G(`!E/`!L'vect`-{!`#H9`%;\"`#Y\"`\"$'`%G(`*Q+`%~,`$g%,`!,)`\"|\"t = \"S\" + s + \",\" ` \"$0,0 T0,0\"` e(transform(t);}if (!initial`!{!`,*).hide();}`&R%.style.left = m + \"px\";` 0,top` 3(if (manual_zoom) {`-D#zoom_buttons();}}`+-&` -1`-&\"`-E2` D\"`(A.zoom,` >!,`/D$2 + m`#8\"` Q!in`$F! = \"m 64,13.787 0,100.426 m -50.213,` \"\"2001 ` 6#,0\"` e!plus` _$`%3)plus`0h\"in` ,3` 5!`,o\"ox` -1`)_'`!k)`*?\"`\"S%`&Y\"` ]$`*')`3@'`)y<` @'`);1`(M-` Q'`(J6`#n*`(^%`!x+`#I%`\" $`!b+0`!>/0`*:#`!i6`!a*1, ` %#:1`!T1`!^#`)S+` /#`)Y\"`$!',`\"&+`)9F` j$`)S)`\"}%out`$)~`$+|out`$s5`(2&`$+~`$n;out`$z0out`%$'`$*#`%)#`\"0&`$jC\" + (`,)!`,%!` x%`%1)`,V$`.()`.y!height + m`,g#`.]%` E'`.u,`!Y``.v%mov`.w\"ing_dimensions(dire` =!`/!'last_destin`$@!.sm.` I..w / ` V%`/S%` 6Ch` L-x` 3Fx + (`!=E- w) / 2`!!!y` \\Fy` [Gh - h` |&r = w / (original_`(1! * scale);return {x:x, y:y, w:w, h:h, r:r};`3O&`!&$allowed`#dj` =$`&A\"` 3% < 1 ? true : false;if (initial`&$! != -1 &&`\"o2type == \"manual\" || ` S(_solo)`!}#` 1$`# \"= region_array[` J(]`\"\"4`\")!outside_` K#`$ !>` n+- 1`\"&!`\"N(&&` K,`!O%` a+is_` .\"`\"C-,`!Z7)`#6#` `)`\"[1 {` '!to(` R8`%w#`$2\"}}}`!}/w >`!C*-1`##5 - 1) {if (!`!*E-1]);}`!<*` '#true`'2+_about`'/)`!*!`'C6) {` i\";}var `#_' = {sm:{type:`&7$, zp:1}}`$s%_tween) {`$9,` A:`(DB = current_viewbox` D1bbox = {x:` ?+.x /`*e\", y` ,-y` 3&`'/!` 0-w` 7&`0t\"` 1-h` :$}`#9\"new`!q*`/n>`#E!!` K*`$*'`\"`@` O*`1t\"to(` P');}` 1!in_click = `%o%(`&S$`%v\"` A#crement);}`2a%` :=1 /`&`\"` R)api_object`!y!_in =` ?$` m\"` 2-`-a\"`!**`!A\"in.` )!`!_$` 6\"`4C'` 3'` R%` 8#in.touchend` F5` 3*` W'}`${!cattr, la` \"!r` (\"`)i#map, label_attributes, loc`#~!s, set_state` %\"` G!, ela;`#I%set` S'() {` W% = mapdata.` +%;`!L! = [];`!P!` %\"`!H&` 3$`!H*` ?#` G&ela` #\"var`!?!`+|$` G(`%*)`+'\"faul` E$ = {};` &*.color =`,S#` .+hover_` &9opacity`\"W!in_settings.`!Y#` 7$? ` \"9: 1`!&2` `;` 7*` n3` 7*: 0.6` },url`\")4descrip`-k#` #<_mobile` 24inactiv` '5zoomab` [!`0X!` 0+popup`\"T4` 8!s`\"M4` 7#: ` #\"`%6-ascade` d4` 8#_all == \"yes\" ?`!_! :`!q6_percentage`+'$` (&` A,x`\"]4y`\"v4x2` :5` 0&if `4J#s) {for (var`*m# in` ##` 0)i = 0; i <` 6$[` \"\"].`*z!s.length; i++`)%#` 4! =` :3[i`*I([` 0!]` E%;}}}`!3&d`!H*`*a![id] = O`.^\"create(`\"G*`1c\"`!7$id].url` T(`&2(`\"v\"`!+&prop`!,'[id]) {` b+[prop] != \"`!4#\"` t(` 8#`\"Y&` +%;}` T2`&#$` Q1`'|!` >7no` B2`\"4#}}}`-d%`#j!`-Q7` ;%` ,)id`-x+` ;$`-{'` .!`-|%`(N*`!0\"` 7!` A+image_`+o\"` @0` 6&`)~,` 0,`)-,` t(siz`).` U(` <!` f8` <!: \"auto\"` o1posi`-T#` M6` <%` p8` <%: \"center` |2x` n9x` g9x : \"0` b2`0r.` N(`0k.` 0*` ^6`%@8` 6(` d8` <\"`$p8`2>\"`%r<` <&` r8` <&` p>`&#=` <'` r>`&.>` B\"`&1A` <+` |>`&:D` H\"`&J:` <$` t>`&X8` <\"`&\\:` <$` h>`&j8` <\"`&j>` <(` p>`&|8` p>` 7'`,j2ourc`2#&` 5*descrip`%K7` 7'` M+`(M6url`!;,nactiv`'s.all` =\"s_` :&`2I# ?`29!`\"b4id` R9hidden` BG_label`\"r3bord`#p5` 0)`% ,` 0): \"#ffffff`&1,` @#`$t8` 0/` v3`%v>` <)`,*1` 0.` p9`,.#` x0empha` }#`$'!` 1+zoom_percentage = ` #+` =/abl`%!9` :&`${Apopup`'73` 7!s`)q3` 6#: ` #\"` h+opacit`,\"4` 6$` d2` 6$: 1`*_1` ^:` 6*` l2` 6*` v.`*P'_mobi`#_/`*s-` A$? ` \"5`#z$var region_id =` $$map[id] ?` 5$` )$` P$if (` N&&& rattr[` *%].cascade) {` G!` .-olor) {`\"@*`),$` 92;}` V1`(~'` `-`)}*` ?8` f3`#1'` l-`/+*` ?8` f3url` d-`/L\"` 70` N3`/+$` Y-`/e'` <5`#;4i`$U!`/X1` 81;}}c` 3!id] = Object.create(` Z))`%w!mapnam`*t\"us\" && (id` *!GU\" || ` '#PR` \"(VI` \"(MP` \"(AS\")) {`!>%`!h$`-(\"`\"C!`!#0`11!eastern`18\"s)`!C(VT` y(NJ` \"(DE` 0(DC` =)H`!^)A` \"(C` g)R`\"'*D`!t/`2n%`\"&#for (var prop in`*B#specific[id]`)2#` '.[prop] != \"`$2#\"`!$(` 8#=` `/` 5\"`#E\"` _5`/d$` _1tru`&L#` C9no` I2`+v\"}` \\!`-s6`*G#= \"off` \\)`*`+` .&`*[#};`#P%id in mapinfo.paths) {se`'?#(id);}}`-{!set`$:\"_attributes = func`*v!() {var `'$`$d${}`/c%` .!.font_famil`0`.` {\"font`0X-` 0': \"arial,sans-serif\"` v+`\"U$` P0` 6\"` j2` 6\": \"white` f,`#K*` L0` 6(` l2` 6(:`# *`$:#` &*size = ` W\"size`!D,`*Z\"` }*`(d&s`'\"% ?`&t!`24%` Y*line`&S%`!3+ca`3}/`!J#` 7!`\"42` 6\"` y2` 7!_limit` i-` 0(` j,` 0(: 0.125` k+rotat`!W4` 6#`!Z2` 6#: 0`\"i/`$y9` 6'` e2` 6': \"#000000`&.,` @!`%(#` L5` ;!` j7` ;!: \"1` i1x`$l3` 8!y` &3parent_typ`1$!`*u!` n,` =#id` M3anch`#&5` 6#`\" 2` 6#: \"middl`!(.ill` ~3width`!#-pill_` 5\"`!\",` 0'`'!2`#(4`##4`4!\" \"Not Named`!n,displa` G4`#D'`.*-s`\"(-impor` 4&`0|\" ? {} :`/[%` V*` r!apply_`/(,`/O&id) {`/k,[id] = Object.create(` W))`0}&`4X$`!/*`4U'` '.`4J2`!20`3/%` M4`4%\"` j5`4`'` b9true` H?no` I=`$l\"}`3R#`#y\"mapdata`#g4if (!` a0`#dS}`$+-`$#-`#OY`#n2`#9_`#2^`\"Q%id`&b.) {`'|/(id`#'(` S\"` B+`$T)` K\"se`(V5` m4` S5;`%g\"` n!ocation`\"@'` t)) {`+!)` H# = {}`+W&` /#`3Ae06`3(` v$`23`!z$`2}3` 1*: \"#FF0067`-s'` y$hover`4%4` `$` 9(` t5` 9(`/m-`!'$borde` o7` 9#` l5` 9#: 1.`\"{/` 8\"`!n<` 9)` k;`#6)FFFF`#*5`!z<` 9)`#&;`\"=%2`&=/ize` l6siz`#c/descrip`'?#` D3` :'` E9_mobil`!)7` 9/? ` \"8`%U5url` m6url` @.inactiv`!L.all` =%s_` =&`-z# ?`-_!`!16typ`\"87typ` A/posi`#m#\"top`%h/puls` \\7` 8#`!<D` J!`%>!` T;` >\"`&L5` 9': 4` o5peed` h=` @!` j<` @!: 0.5`/ !` 0\"`)g;` :'`!J4` Z$` \"(&&` \")!= \"auto\" ?` +)`#K5image_sourc`#K7` 9)`\"E5` 9): \"`+H0id`',<` >!` t,` 0/: \"no\",`2'-.opacity =` *-_` 4#`2?3 =`&l!`-:4` n&`,p9` ?$`-5;` ?$`#{;`*v9` 9&`#u;url` i<`*2'` N9` ?%` t;` ?%: \"center`*|0opup`'y7opups`(t7` :\": ` #\"` n.x =`\">4y ` \"5displa`$n7` 9$`!@5` 9$: \"all`'OUden`-U5if (`/?3= undefined) {`/c4\"square\";}for (var id in`22%s) {lattr[id] = Object.create`!+-);` ^%prop` \\)[id]) {if (` 7!== \"overwrite`%i#` E$\"`!*(`'x)` b)[prop];continue;}` p)reg` Z-`$l&` 7$` O\"` d/`.\"!`\":#` X)` 8#`!62` U5`$[$` U1`+m!` >9no` D2`%B\"}` W!!`\">&`+R)`\"U)`,W,` 0&`-P$` V2`0^!` W/`1H$` .&`1y\"}}}`2S!set_line_attributes = func`*t!() {var`.|&ine = {}`(E&ine` n\"`):.in`24$`)5-` 1&: \"#cecece`)9'ine.siz`2</ine_` 5!` ^1` 5!: 1` \\*dash` T2` 5!` U1` 5!`2|!var lin`\"t!mapdata` >!`-/\"` $(:` '%borders`)&&`)p#ines) {ela`)S:ine`)Y0ine`)](` '%`'}2` #`('&` A*`'K#` U+`'~'` P,`'|'` B/`'}\"` D,`'y$}};set_`*0\"`&B'()` 3!stat`&X(` 0#label` $/`/<$` (.`'=*();}var currently_zooming`!Q%var max_width` )!` B&pann` <,` 3'inch` 3(`(L%`$g\"_tooltip`([$find_pos = helper.findPos(map_inner)` ~!x0_page =` J%[0]` 5!y` (.1` 4\"x0 = 0` >#` \"%h` ,%w` +%u`'J\"` P\"_mid` O\"_` \"$left = 5` (!tt, h;return {`\"2\":`*p)tt = documen`'?$Element(\"div\");tt.setA`$-$(\"id\", \"tt_sm_\" + div` @\"tyle.posi` z!= \"absolute\"` 5&`08'none\";`#5%.appendChild(tt)` /'onmousemove = this.pos;tt` \"4}, show`\"A'e`\"/\"`2{$opup_off) {`\"y\";}ignore`$|#`%M\"if (tt == null) {`%M#`*H$);}`\"%0block`\"I'zIndex = 2` *&maxWidt`,r\"`'9# + \"px` T!`\"S!HTML = `!t#.sm.content;`!@$updat`!o!`\"8%;}, reset_pos`\"V'x, y,` d$`\"`#`\"6\"undefined`\"+2` +#` k#(y0 + y, x0 + x` h&;}, `!E&`#e1` [,u, l` S*` K+, manual`!h#` $%u`#1!nual.u;l` #&l;} else` <\"ie ? ev`'T!lientY +`'b&`'m$`'g#.scrollTop : e.pageY` v!` U-X` D>Left` ^%X;}u = u -`*Y$` s!l -`+#$`&C!`&j% || `###_`\"2\" || `&s'` 5'up && on_click`'B'`#W0`#]!`%G.`#x*`#d\"!tt || !u || !l` n'`+o! =`%9\"0.5 * `.V\"`+~! = `%[!` 3\"height`\"9!l >`,I\" && u >`,L\") {quad = 4`$R$` G\"<` 093` ?*` m)<` =,2`%K%var ` .#1`0q#entered`({& &&`)$(`#R$ &&`$:$` J&`3c# || ` (/auto\" &&`\"y\" < 401) ?`4!! :`+V'` N$`.i!`*w#top = \"-100`*j#` 2\"`/W#` '.bottom`.O!uto` .'righ` N!` 2\"h = parseInt(tt.offsetH`$D!, 10);w` -1`,G!` ;\"var side =`\"4#- w > 0 ?`%0#(` .%) :`1p#bar`34!`!I!- h` C*` .&` L\"`\"Y+bar`-P'`\"])`!D!` ,,`\"E+`\"l5`%Q$`)4'rienta`1z\"= \"below\"`(.#`%v\"= 3`&3&1;}` .(4`&J)`&z'` h2above` n,1`'[)` .(2`(B)` .)1`%q(`%35`#H\"u + 5`#84l + ` &!` 00`#I+`\"5'`!W(` jZ` |$`%|$l`!R8`!/63`!41`&?%`!&2`)/#`!_+`\"h.3`\"SC` Zd`\"?Q}}, hide`/_'`&C#tt != undefin`+j*display = \"none\";}find`11!= helper.findPos(map_inner)`,b!` A$) {`20# = ` -$[0];`2V#` *(1];}}};}`!Z%getxy(lat, lng`!i#mapinfo.proj`(S!lambert\")`/N\"` 2\" ` /#`%B(` I-xy\") {alert(\"This map only supports x/y loc`)b!s.  These can be added to the mapdata.js file.\")`! 9robinson_pacific`!q+` /,` O9mercator` U+` /$`2G)` q+`2U\"initial = {lat:`#k$:lng};`$'%interse` (!(x0, y0, r0, x1, y1, r1`!:#a, dx, dy, d, h, rx, ry`/x!x2, y2` &!dx = x1 - x`03\"dy = y1 - y` *# = Math.sqrt(dy * dy + dx * dx`1:\"a = (r0 * r0 - r1 * r1 + d * d) / (2` %!`!9# = x0` ]$a / d` 4!y2 = y` 4!y` ,)h`!8)` &a * a` o\"rx = -` S\"(h /`!%$ry =`!\"\"` *(xi = x2 + rx` *#_prime` 1\"-` /$yi = y` C!`#6\"y` >&y` C!y;return {opt1:{x:xi, y:yi}, opt2` -\"` P\"` 3\"` &\"`(|)`(F#(lat`)#\"`!v!adian = 0.017453293`!@!pi`\"h$PI` +\"hi`)-!tlng.lat *` V#` 9!lam` 3'ng` 0*phi0 = 45` D-0 = 9`#g!` A)1 = 33` &-2` R/n`!`$log(` $!cos(phi1) * (1 /` 9\"` /#2)))` +$` I%tan(0.25 * pi + 0.` &!hi2` V*` /51))`%/\"F`!F$`!9(` ,!pow` n;1), n) / `\"3\"rho = F` T(`!'>` ^!` W$0` .N0` [\"`&H$x:rho` Z$sin(n * (lam -`$Y!)), y:`!&!-`!l!` D#cos` 9.`&a(`,2$`&`*earthRadius = 1`\"\"\"`&j4roundToNearest = `2L&` 4#, value) {`\")#`!W!floor(` 5! /` ^$) *` #$;}` z!getSign` k)` `+` ^\"< 0 ? -1 : 1` U#lng` U#` _#`\"@#.lng`$8\"la` v$` 2,at` ;#ng`&$$abs` M0` +0` U%ow`/{!`\"w((5,` R!- 1e-10);` ?\"` e!=`\" !0 : low`-J\"igh =` d!+ 5` m$Index` 0#/` 0#high` 0$` Q!` 1$ratio = (`!0\"low)` 3%AA = [0.8487, 0.84751182` &\"479598` &\"0213` %!3359314` '!257851` &!1475` Q\"0006949, 0.7821619` 3!7606049` T!7365867` l!7086645, 0.67777`!7#6447573` b!609875` 2\"5713448` b!5272973`!<!485626`!R\"45167814]`\"?!BB`\"?!, 0.0838426, 0.16768`!l\"251527`\"C!335370` _\"19`\"L#503055` Q!58689`!Z#718226`\"*\"533663`\"z#51804` j!915371`#U\"99339958, 1.06872269, 1.14066505, 1.2084152` ?!27035062, 1.31998003` '!523`\"3\"adj`$[!(AA[`%5%] - AA[`%]$]`(n!`%=!+` +)` Z$`\"y!(BB` T*BB` L2` ,(`,4'`!D\"*`(I!`0/$` )\"`(z!*`+G(, y:`!2\"*`)7%` 4)`,-0_pacific`,;*`)W\"`2D'- 150;if (lng < -180) {` A#ng + 360;}`!s#`-6%{lat:`)s&, lng:lng})`!A'mercator`!6*y`2H-tan(`*_' / 90 + `2c\"`4e# / 4))`21\"80`0($PI`/h(`\".&, y:y};}var calibrate = mapinfo.proj_coordinates;`!k%find_point(initial, pt1, pt2, pt3`!#` ]!` ;# =` *!` I$`,d\"pt1_proj` 5$pt1` 1$2` *+2` 1$3` *+3` 2#roj_r_pt1 = helper.distance(`!=(`!f!` _!` J+2` 6?`!P\"` S\"dist`!D$` G-` |#` ?1act` =2` I!` C\"scale =` z'/` T%`.Z\"`\"D#`\"M'/` P\"` 6%2` 3(2` 2)opts = interse`$q!(pt1.x`\"y!.y,` z\"`!L!` /\"2` -$`!Z#`!H!third`\"t?`$N\")`!T*emnan`!!`2A%` X,opts.o`!B#3) -`!,'`!A\"` _#2` B@`&t$` X*if (`!C%<` h%) {`(K&`!?%.x, y` $'y};} else` :0`#5!` D&2` I!`)*!rules`({,` 0!`!I\"ules) {for (var i in` O\"`(s#ru`%Y!` .![i`.Q\"condition_stri`,8!rule.` /%;try` Y\"` *% = eval`!-!` ?&);} catch (e) {console`,'!\"The` T'\" +`!&.+ \" is not valid JavaScript\");}if (`!!&`+##oin`&m!`!D!` (\"`,M$`+Z0`,G%[` F\"[0]]` #/1]` \"02]]);}}`/($` b:0` U)1` c)2])`-y\"tt_css_set = false`-c&set_` :\"() {if (` D&`&<%`0&'newStyle(str`\"v$a = document.getElementsByTagName(\"head\")[0`%F\"el` F(create` N#(\"style\");el.type = \"text/css\";el.media = \"screen\"`&o!el.` S!She`!s!` #).cssText = str`(*%el.appendChild(`!A+TextNod`\"C\");}pa` A)el`1n%el`\"u'getsupportedprop(proparray`(4$oot`\"R(`!/$`\"Y#;`(k'= 0; i < ` [%.length; i++`$H#` 3%[i]`)C!oot`\"V\"`!*#answer`.G\"` A%;` -%` #\".replace(\"borderRadius\", ` )#-r` +\")` ?6MozB` M+-moz-` 8EWebkit` S-w` 2!` =FboxShadow`!x\"x-s` (\"`![<` K'`!q#` 7@`!m$` R(`!i%` V'`%e#` Y\";}`.B#ound`\"3\"prop =`%m.[`$ -`#U/`#'/]`1:#cs`,S!` z+?`!*-+ \":`-k!popup_corners + \"px;\" : \"\"` l!min = width / 2 > 250 ?` '': 250;max_` .\"=` l#max` +\"?` }#` (%: min` y!`#)\"`\"P8`#]'`$F,`#{,`\"\\#s`\"]\"` p'?` |(`\"P%3 *`!R#` 8\"`\"V\"`\"o!3 ` \"54` %2rgba(0,0,0,.5)`#9$`)k!` A(< 0.01) {`!^#\"\"`/,\"m` (#.tt_mobile_sm{margin-top: 5px;} .tt_sm{\" +`%$\"+`\"H\"+ \"z-index: 1000000; backg`%2!-color`%!*lor + \"; padding: 7px; opacity:` A&` +#` G\"font` \\(font` 4\"` |#black`!b#nam`\"\"!float: left` \\\"-weight: bold` F\"custom_sm{overflow: hidden;}\";`\"z!+= \".btn_simplemaps{`!))text-decoration: none;`\"]&: #ffffff;display: inline-block;`\"a%5px`#k!`#z\": 0;`'i\"`#X!%; `*D)iz` O!`,H#box; `+E&` */` =4`!D!h`\"r#1.43`\"*\"align: center;white-space: nowrap;vertical` C$middle;-ms-touch-a`1e!: manipul`\"x!;to` \"5cursor: poi`!0!`\"G$user-select`#U#`\"D!` #0s` #/` 6.`\"Y\": 1px solid` +#`/n#: 4`'p!   `%)+:hover{  `%\"-underline;}`,Z\"xml_`&\\! = vml ? \"left`)\\!right`&2(xmark`'('\" +` V'`'c!`)M#left`)O\" `\",`$\\*0px;}\";newStyle(mcss);tt_css_set = true;}fun`$(! get_zooming_dimensions(element) {if ` &$.sm.` :.) {`18#` *9`+u\"bbox = helper.rotate_bbox` x(bbox, transform`.C\"gotoX =` ]!.x` *%Y` +$y` *%W` +$`(b!` .%H` /$`#'\"`1{\"atio` %!zp =`!t)p` 2!paperW`1##original`14#* scale` >&H` t!` =(`!%\"` A%`!|$` \"\"- (`!i\"/ zp -`!v\") * 0.5` F!Y` D#Y` C$H` ?(H` ?(W` D#` g\"` .!H` ,#` O\"`09!` :$` 1\">`+b\"_to`!a#) {`\"l!` a'`\"V&`!K#-= (`\"A(*`#>\"`!J&/ 2`!2)W /` x,;} else`! *H`!&$` s\"`#%#`!&%`#~\"`! *W`!$&`\"X$H *` |.`&x#{x:` p!, y` $!Y, w` $!W, h` $!H, r:` }!}`(8'reset_s`'&!attributes(region`(;#!` %%`!'\";}all` N\"s.stop();for (var i = 0; i < ` Q\".sm.` E#length; ++i) {var ` 4! =` \"\"_array[` G,[i]];` &!.attr(` %\"sm` )!`!j\");highlight_labels` @\", \"`\"<!\", false, \"` 3!\");}`\"T,las`\"b#(`\"Q#` -!destin`-O! && ` $,.sm.type ==` t$` /4`!d'`#Q#` 20ignore_`.r!) {` 2-`\"^!` `;;}`\"^-` B,, \"out`\"T0`#y\"`%\"G`$H$`%C\"` '#`!b!`$`&`!Q(`$k|`%\"E` X\"`\"T,`\"Y!or`(-#by_`(O!() {all`\"w#s.forEach(` P%`\"x*`!O&id == -1`#&'` 3*`0\\..r >`*f\"` P!`)E8`+d&`$>:;}})`*E-`\"&&` F(`!nW!`\"@%`!!Hshow_point(point, display, `'&'`%?#`)&\"` -(`):$`0 !` S#`)I!all\"`4V&true`#&$` :,out`)q!`* %`(6!` 6A`%}#` Q)`&0$`\"|\"Raphael.isPointInsideBBox(`!v+bbox, `\"^!.x,` \"#y)`!8,`!23`+r&`, +`!@#in`,v#`#\\$`#P'` l3`#k\"hreshold = helper.to_float`!8$)`#v!` ?&&&`2##<` T&` r-` '#`)G!;`%C%`!\\&t,`*D\"`%1#x = pt.x;var y` '\"y` (!potential = []` .!`#{\" =`*&$`+'\"`0O%` 0\"]`!q!`'D%`+{7item`,(&i++`!M#curren`)V#`!%%` I\"[i` z\"`%$6` Q)`%6&x, `%/!`\".%.push` <.id);}`$A%` ?+` 8*var `!x\" =`#%&`\")$`2E!` 8\"< `,=&`$3#`,H!` U$=` ;!if (` ]%[0] =`.n#`!*#`%r7pa`!?!mapinfo.paths`$.&id`\"y7Path(path`\"y&`%v7`/G'animate_transform(e, t, `0p$a = {` 4%:t}`!?!!vml && !touch` %!i) {e.` h#(a, zoom_time * 1000`.d&e`2Z\"a`0n)`1I!_corre` ,!`*T(, initial`.W#`1t\".hide(`3%)i` `$`'O!`!|#lbl =` ,(`&V$lbl.sm` b!) {continu`$n#`.L'` @#` (!0, ` (#`.Q1`!(&_set`!-%`0j!`!5!` V#id];` >#.show()`&$#` 9\"lin`*2$line_`%R#get_` '%(lbl);` F'`#O\"{path:` =%, `$Q'` \"$}`! *scal`!'$factor =`,<#>`\"F$` ?!_limit ?` 6#:` */`+\\!t = ` .\"`#8!,` n$*` 0\");`&C.` B!t`$~&`$4(pill`!X#pill =` \"!`#?.` d.pil` h+}}`&G(oc`$R!`&.D` H#`&P%` '*forEach(` v%(lct`*j#lct`&?'`)F\"`&6.` ?\"`&?%` )\"`&04` :!`%o(` I\"`$O:` 9'`$[.` ,-`$[.ct`$HAct`#f,);`#m&hide_and_`\"W!before`#`4`!=!`4M!`\"T(.sm.type;back_arrow`$,$`$KE;`+KB;`$f&update_`2\"\"s(`$t#helper.x_i`3C#(type, [\"`/5!\", \"` L\"\", \"out\"]`.w\"`*o!ll` h#_attributes`$i$`\"Q\"=` V%` M%` s!` E(`%N(`.=$` U)`!D\"` G6`!<$`(m!`#Y+` 6\"]` c2manual` t\"` ^!or` w#by_`&4!(`%9!(`#5/opacity`#@$` o!!=`\"~\" &&`%1\"!` x)all` y\"s.stop`)<#pill` $)` <#`-J\"'fill-`!&#':adjacent`!7$}` X(` *D`\"v)`!2\"` '(` R11` H,m.`2 #`+&/abel`+3$abel.sm &&`0h\"`-H'` #)`!B$` '*`!35}`!A+`4R${'stroke-width':`!e+border_hover_size * (` F! / original_` ,!) * normalizing_`+0%1.25}, zoom_time * 1000`&:%`$|(`!g5`$7;`\"<#`%C+`\"-3`\".#`!>m`,|3after`)i)`%%\"`+m#_` e!solo &&`,!$` 0!`(*!-1`(:!`-</`*+` g(back) {`-e'`0T$`#l#`1L$`*;'` j4`+H\" ||`!$< ||`!v%`!!<if (`*C\"`\"D\"`\"+3`*y$` U2`#g&zd_to_tween(bb`3k% {x:bb.x, y:bb.y, w:bb.w, h:bb.h};}var end_`!3'`2c!`$y\"wee` )\"current_viewbox;`!0&` C!o`0Y1, call`\"d#`*7\"st_`&o#d`*,!` %'`*'&` *' = false`0>\"`!?#ly_over && !`!-( ==`!a$` <#)) {out.call` O+);}`!%!click` ~'`\"^+`3|*;tooltip`3w$` (#_up` W%` |&zooming = true`->,` 7#_dimensions = get` O$` .'`2D*var to =`%()` \\=` R\"from` K+`\"`!` <?`2:!`\"`*` 52.r;`*R*before`%M1)`%&`3!\"Zoom`$A$`,a\") {`&N+ `$}%` <\";paper.setViewBox` S*.x,` B*.y,` \"+w` 2,h,`$h\"`,i(whenDone() {`,b;`\"5'`#O,`&!+`%Z0`&\"\"on`&u\"` (%`\"{\"`-h\"level();trigg`1[!ok(\"`$$$complete\", []);if (helper.isF`\"(#(`)R%) {` $$`+P!if (!vml && (!touch ||`*C\"mobile)`)5!`\";$ {`&$!able = new T` ($;`+<& = ` >%.`&T\"{from:from, to:to, du`&B!n:`0n,, easing:\"easeOutQuad\", step:`$:%`%i-`%|5;}, finish` S') {`$|%to`3L!`0H%`&R.to`&G.to.x, to.y, to.w` '!`&#&`%y&`/1(create_bbox`!X\"(auto) {var pri`!p!r`%V\"\"\"`*#!` B!` L\"array = {};for (` 6% in mapinfo.paths` j$ath_to_add =` 4*[` T!];` 5*Raphael._pathToAbsolute(` ;'`+X\"bt` C'pathBBox` 5.w = bt.x2 -` #!` 0!r`'\"!w < 10) {r = 10`4E& = 1`1g\"x = Math.round(bt.x * r) / r` e!y` 0-y` 2+2` 0.2` 5*x` 1.x` 8'`$()+= \"'\" +`#o#+` '#\":{x: \" + x + \",y:\" + y` '!x2` (!x2` 4\"` (\"y` )!},\";`$n,`$0#`#2!;}`%C+` #(.sub` $\"(0,` ,*length - 1)`!m.}\"`#y!!`&Q#console.log(\"The`*0!`&B-is: \\n\\n{\" +` ));}return` C-`.#'`'n#content(element`&|#` /# = ` 1#.sm.descrip`-r!var embedded_im`(5!data:image/svg+xml,%3Csvg%20`+r\"-backg`$m!%3D%22new%200%200%20256%20256%22%20height` C\"256px` 1\"i` U#Layer_1` /\"version` 4\"1.` .$`*p\"` 0\"` o3width` t-xml%3Aspace` 6\"preserve` 6%ns` 3\"http%3A%2F%2Fwww.w3.org%2F2000%2F`\"\\!` J'Axlink` =<1999%2F` F\"22%3E%3Cpath%20`\"Z#M137.051%2C128l75.475-7` \"!c2.5-2.5%2C2.5-6.5` C!0-9.051s` +\"-2.5` +\"%2C0L128%2C118.949L52.525%2C43.475%`#;!c` N!` i%` S*s`!*#`!$%%2C` 8!L` m#`!b#`!\\#%2C`!e#`!^'` K3`!7#1.`!M!1.` \"!2.88`!m!.8` i!4`!j#` +!s3.275-0.6`!\".525-` 5!`\"@$`#7\"`#0#`!C&` YG`!P\"` p6`#g:L`$R)z`%_!F`%\"\"`%o#3E`1'\"xmark_modern = \"<img id=\\\"xpic_sm`-*!_\" + div + \"\\\"src=\\\"\" +`)Y*` 7! style=\\\"`'w!: 18px;\\\" alt=\\\"Close\\\" border=\\\"0\\\" />`!?(vml`!C!a` a%line-`)k\": 1.5\\\"`!A<>X</a` j( = vml ?` y':`\"N)` 
                      • 53452
                      • 12 Posts
                      The mapdata.js file contains the latitude and longitude coordinates for our office locations so I've replaced the coordinates with just zeroes.

                      var simplemaps_usmap_mapdata={
                        main_settings: {
                         //General settings
                          width: "650", //'700' or 'responsive'
                          background_color: "#FFFFFF",
                          background_transparent: "yes",
                          
                          //Label defaults
                          label_color: "#fbfbfb",
                          hide_labels: "no",
                          border_color: "white",
                          state_description: "",
                          state_color: "#53565a",
                          state_hover_color: "#009fdf",
                          state_url: "http://simplemaps.com",
                          all_states_inactive: "no",
                          location_description: "",
                          location_color: "#ff46a2",
                          location_pulse: "yes",
                          location_pulse_size: "3",
                          location_opacity: ".8",
                          location_url: "http://simplemaps.com",
                          all_states_zoomable: "yes",
                          location_size: "40",
                          location_type: "marker",
                          all_locations_inactive: "no",
                          url_new_tab: "yes",
                          auto_load: "yes",
                         
                          //Zoom settings
                          zoom: "yes",
                          initial_zoom: "-1",
                          initial_zoom_solo: "yes",
                          
                          //Advanced settings
                          div: "map",
                          state_image_url: "",
                          state_image_position: "",
                          location_image_url: "",
                          label_hover_color: "",
                          label_size: "",
                          label_font: "",
                          popups: "detect"
                        },
                        state_specific: {
                          HI: {
                            name: "Hawaii",
                            hide: "no",
                            inactive: "yes"
                          },
                          AK: {
                            name: "Alaska",
                            hide: "no",
                            inactive: "yes"
                          },
                          FL: {
                            name: "Florida",
                            inactive: "yes",
                            hide: "no"
                          },
                          NH: {
                            name: "New Hampshire",
                            hide: "no",
                            inactive: "no"
                          },
                          VT: {
                            name: "Vermont",
                            hide: "no",
                            inactive: "no"
                          },
                          ME: {
                            name: "Maine",
                            hide: "no",
                            inactive: "yes"
                          },
                          RI: {
                            name: "Rhode Island",
                            hide: "no",
                            inactive: "no"
                          },
                          NY: {
                            name: "New York",
                            hide: "no",
                            inactive: "yes"
                          },
                          PA: {
                            name: "Pennsylvania",
                            hide: "no",
                            inactive: "yes"
                          },
                          NJ: {
                            name: "New Jersey",
                            hide: "no",
                            inactive: "no"
                          },
                          DE: {
                            name: "Delaware",
                            hide: "no",
                            inactive: "no"
                          },
                          MD: {
                            name: "Maryland",
                            hide: "no",
                            inactive: "no"
                          },
                          VA: {
                            name: "Virginia",
                            hide: "no",
                            inactive: "yes"
                          },
                          WV: {
                            name: "West Virginia",
                            hide: "no",
                            inactive: "yes"
                          },
                          OH: {
                            name: "Ohio",
                            hide: "no",
                            inactive: "yes"
                          },
                          IN: {
                            name: "Indiana",
                            hide: "no",
                            inactive: "yes"
                          },
                          IL: {
                            name: "Illinois",
                            hide: "no",
                            inactive: "yes"
                          },
                          CT: {
                            name: "Connecticut",
                            hide: "no",
                            inactive: "no"
                          },
                          WI: {
                            name: "Wisconsin",
                            hide: "no",
                            inactive: "yes"
                          },
                          NC: {
                            name: "North Carolina",
                            hide: "no",
                            inactive: "yes"
                          },
                          DC: {
                            name: "District of Columbia",
                            hide: "no",
                            inactive: "no"
                          },
                          MA: {
                            name: "Massachusetts",
                            hide: "no",
                            inactive: "no"
                          },
                          TN: {
                            name: "Tennessee",
                            hide: "no",
                            inactive: "yes"
                          },
                          AR: {
                            name: "Arkansas",
                            hide: "no",
                            inactive: "yes"
                          },
                          MO: {
                            name: "Missouri",
                            hide: "no",
                            inactive: "yes"
                          },
                          GA: {
                            name: "Georgia",
                            hide: "no",
                            inactive: "yes"
                          },
                          SC: {
                            name: "South Carolina",
                            hide: "no",
                            inactive: "yes"
                          },
                          KY: {
                            name: "Kentucky",
                            hide: "no",
                            inactive: "yes"
                          },
                          AL: {
                            name: "Alabama",
                            hide: "no",
                            inactive: "yes"
                          },
                          LA: {
                            name: "Louisiana",
                            hide: "no",
                            inactive: "no"
                          },
                          MS: {
                            name: "Mississippi",
                            hide: "no",
                            inactive: "no"
                          },
                          IA: {
                            name: "Iowa",
                            hide: "no",
                            inactive: "yes"
                          },
                          MN: {
                            name: "Minnesota",
                            hide: "no",
                            inactive: "yes"
                          },
                          OK: {
                            name: "Oklahoma",
                            hide: "no",
                            inactive: "no"
                          },
                          TX: {
                            name: "Texas",
                            hide: "no",
                            inactive: "no"
                          },
                          NM: {
                            name: "New Mexico",
                            hide: "no",
                            inactive: "yes"
                          },
                          KS: {
                            name: "Kansas",
                            hide: "no",
                            inactive: "yes"
                          },
                          NE: {
                            name: "Nebraska",
                            hide: "no",
                            inactive: "yes"
                          },
                          SD: {
                            name: "South Dakota",
                            hide: "no",
                            inactive: "yes"
                          },
                          ND: {
                            name: "North Dakota",
                            hide: "no",
                            inactive: "yes"
                          },
                          WY: {
                            name: "Wyoming",
                            hide: "no",
                            inactive: "yes"
                          },
                          MT: {
                            name: "Montana",
                            hide: "no",
                            inactive: "yes"
                          },
                          CO: {
                            name: "Colorado",
                            hide: "no",
                            inactive: "no"
                          },
                          UT: {
                            name: "Utah",
                            hide: "no",
                            inactive: "yes"
                          },
                          AZ: {
                            name: "Arizona",
                            hide: "no",
                            inactive: "yes"
                          },
                          NV: {
                            name: "Nevada",
                            hide: "no",
                            inactive: "yes"
                          },
                          OR: {
                            name: "Oregon",
                            hide: "no",
                            inactive: "yes"
                          },
                          WA: {
                            name: "Washington",
                            hide: "no",
                            inactive: "yes"
                          },
                          CA: {
                            name: "California",
                            hide: "no",
                            inactive: "yes"
                          },
                          MI: {
                            name: "Michigan",
                            hide: "no",
                            inactive: "no"
                          },
                          ID: {
                            name: "Idaho",
                            hide: "no",
                            inactive: "yes"
                          },
                          GU: {
                            name: "Guam",
                            hide: "yes",
                            inactive: "no"
                          },
                          VI: {
                            name: "Virgin Islands",
                            hide: "yes",
                            inactive: "no"
                          },
                          PR: {
                            name: "Puerto Rico",
                            hide: "yes",
                            inactive: "no"
                          },
                          MP: {
                            name: "Northern Mariana Islands",
                            hide: "yes",
                            inactive: "no"
                          }
                        },
                        locations: {
                          "0": {
                            lat: "00.000000",
                            lng: "-00.000000",
                            color: "#e60f00",
                            name: "company",
                            type: "star",
                            size: "30",
                            description: "HQ"
                          },
                          "1": {
                            lat: "00.000000",
                            lng: "-00.000000",
                            name: "company",
                            description: "office"
                          },
                          "2": {
                            lat: "00.000000",
                            lng: "-00.000000",
                            name: "company",
                            description: "office2"
                          },
                          regions: {},
                        labels: {}
                      };