(function(w,d,s,l,i))(window,document,'script','dataLayer','GTM-5THFFP');









// mapSettings is included in map

var mapSettings =

partnerData:


themeColor: '',




;
body
margin: 0;





var HittaMarkerData = HittaMarkerData || false;

// Select map type depending on if the page is in an iframe
var mapType = !Hitta.utils.inIframe() ? 'partnerFull' : '' ? '' : 'partner';
var customControlGroups = [];


// Save since the hash is rewritten by the map-client.
var incomingHref = location.href;

var mapSettings = mapSettings || ;

// Badge ads without blocket bostad
var timedBadgeAds =
noMoveDuration: 2000,

ads: [

implementingClass: 'Match',
prio: 1,
maxZoom: 20,
minZoom: 11
,

implementingClass: 'Postkoden',
prio: 1,
url: '//api.hitta.se/partnerintegration/v1/postkodlotteriet/dividend/nearby/',
maxZoom: 20,
minZoom: 14
,

implementingClass: 'Housing',
prio: 1,
url: '//api.hitta.se/housing/v1/badge/within/',
maxZoom: 20,
minZoom: 14
,

implementingClass: 'Monster',
prio: 1,
maxZoom: 20,
minZoom: 14
,

implementingClass: 'MonsterMunicipality',
prio: 1,
maxZoom: 14,
minZoom: 9
,

implementingClass: 'Comfort',
prio: 1,
url: '//api.hitta.se/maplayer/v1/realestate/buildingpermits/within/',
maxZoom: 20,
minZoom: 16
,

implementingClass: 'Audi',
prio: 1,
maxZoom: 20,
minZoom: 10,
autoCloseEnabled: true
,

implementingClass: 'LO',
prio: 1,
maxZoom: 20,
minZoom: 10,
autoCloseEnabled: true
,

implementingClass: 'SamtryggA',
prio: 1,
maxZoom: 20,
minZoom: 10,
autoCloseEnabled: true
,

implementingClass: 'SamtryggB',
prio: 1,
maxZoom: 20,
minZoom: 10,
autoCloseEnabled: true
,

implementingClass: 'Verisure',
prio: 1,
maxZoom: 20,
minZoom: 15,
autoCloseEnabled: true

]

;
var blocketBostadAd = _.findWhere(timedBadgeAds.ads, implementingClass: 'BlocketBostad');
timedBadgeAds.ads = _.without(timedBadgeAds.ads, blocketBostadAd);


hitta.PartnerMap.init();

hitta.createMap(

mapType: mapType,

customControlGroups: customControlGroups,

settings: _.extend(

giveMapFrameworkOption: false,

forcePopupInMap: Hitta.utils.inIframe(),

allowTextOverlay: true,


enableGoogleAnalytics: true,

allowModal: !Hitta.utils.inIframe(),
fullscreen: !Hitta.utils.inIframe(),

allowDroneview: false,

allowNotifications: !Hitta.utils.inIframe(),
allowLifestyle: true,
allowBadges: !Hitta.utils.inIframe(),

timedBadgeAdsPosition: 'topRight',
enablePublicTransportDepartures: true,
enableGoogleAds: false,

badgeAdHandler: mapType === 'partnerFull' ? timedBadgeAds : false,

// Debug prints debug info to console
'mapDebug': 'false',

// Don't allow map state from web storage of viewed in iframe
readWriteStateFromStorage: false,

readStateFromHash: false,

clearQueryParams: false,

// Only show big map when viewed in iframe
showBigMapLink: Hitta.utils.inIframe(),

// Don't allow context menu when viewed in iframe
contextMenu: !Hitta.utils.inIframe(),

// Revision time stamp
'revision': '190411-1255',

// Tile layer settings
'baseMaxZoom': '20',
'satelliteMaxZoom': '20',

// End points
'printUrl': '/kartan/print',
'serviceAutocompleteUrl': '//api.hitta.se/autocomplete/v3/',
'serviceSearchUrl': '//api.hitta.se/search/v7/',
'serviceGeoUrl': '//api.hitta.se/geo/v1/',
'serviceRouteUrl': '//api.hitta.se/route/v4/',
'serviceQStarUrl': '//api.hitta.se/partnerintegration/v1/qstar/stations/',
'servicePublicRouteUrl': '//api.hitta.se/routepublictransport/v1/route/',
'serviceTileUrl': '//static.hitta.se/tile/v3/',
'serviceStreetviewTileUrl': '//www.hitta.se/streetview/v4/',
'serviceStreetviewCoverageUrl': '//api.hitta.se/streetview/v1/map/coverage/within/',
'serviceStreetviewWaysUrl': '//api.hitta.se/streetview/v1/map/ways/within/',
serviceStreeviewExists: '//api.hitta.se/streetview/v1/map/exists/within/',
serviceStreetviewPanoramasNearby: '//api.hitta.se/streetview/v1/map/panoramas/nearby/',
serviceStreetviewPointsUrl: '//api.hitta.se/streetview/v1/map/panoramas/within/',
'streetviewScriptUrl': '/assets/javascripts/vendor-streetview-client-20.min.js?v=7d70ec0f59497106899faf8859d2921d',
'streetviewSwfUrl': '/public/swf/streetview/viewer_cubemap.swf',
'streetviewClientBaseUrl': '/assets/thirdparty/streetview-client-2.0',
streetviewViewerEnv: 'prod',
serviceRealEstateBorderUrl: '//api.hitta.se/maplayer/v1/realestate/borders/',
serviceRealEstateAreaUrl: '//api.hitta.se/maplayer/v1/realestate/borders/within/',
serviceRealEstateFind: '//api.hitta.se/maplayer/v1/realestate/borders/at/',
serviceRealEstateFindNearby: '//api.hitta.se/maplayer/v1/realestate/borders/nearby/',
serviceRealEstateExists: '//api.hitta.se/maplayer/v1/realestate/exists/within/',
serviceTokenUrl: '//api.hitta.se/maplayer/v1/t/',
serviceStateSave: '//api.hitta.se/mapstate/v1/state/save/',
serviceStateLoad: '//api.hitta.se/mapstate/v1/state/',
serviceLifestyle: '//api.hitta.se/maplayer/v1/lifestyle/',
'serviceMatchLifestyle': '//api.hitta.se/partnerintegration/v1/match/userbadgead/',
serviceDrone: '//api.hitta.se/maplayer/v1/drone/',
serviceFastoutXML: '//api.fastout.com/v1/panorama/staticxml',
servicePublicTransport: '//api.hitta.se/departures/v1/',
serviceTileSatelliteTextOverlayUrl: '//api.hitta.se/maplayer/v1/text/',
servicePostkoden: '//api.hitta.se/partnerintegration/v1/postkodlotteriet/dividend/nearby/',
serviceIntrumBankruptcy: '//api.hitta.se/partnerintegration/v1/intrum/bankruptcy/nearby/',
serviceHittaMaklareBrokers: '//api.hitta.se/partnerintegration/v1/hittamaklare/brokers/nearby/',
serviceHousingNearby: '//api.hitta.se/housing/v1/nearby/',
serviceHousingProjects: '//api.hitta.se/housing/v1/project/',
serviceNeighborhoodReport: '//api.hitta.se/mosaicreport/v1',
serviceLeovegasUrl: '//api.hitta.se/partnerintegration/v1/leovegas',
serviceSthlmStadService: '//api.hitta.se/partnerintegration/v1/stockholmsstad/parking/serviceday/v2/',
mbStyleStreetviewUrl: '//api.hitta.se/mapstyle/v1/style/streetview?v=190122',
mbStyleDroneUrl: '//api.hitta.se/mapstyle/v1/style/drone?v=190122',
mbStyleSatelliteUrl: '//api.hitta.se/mapstyle/v1/style/hybrid?v=190122',
mbStyleMapUrl: '//api.hitta.se/mapstyle/v1/style/map?v=190122',
mbStyleHikingUrl: '//api.hitta.se/mapstyle/v1/style/hiking?v=190122',
mbStyleRealEstateUrl: '//api.hitta.se/mapstyle/v1/style/estate?v=190122',
mbStyleRouteUrl: '//api.hitta.se/mapstyle/v1/style/route?v=190122',
mbStyleOverlaysUrl: '//api.hitta.se/mapstyle/v1/style/overlays?v=190122',
mbStyleBackgroundMarkersUrl: '',
serviceWhiteGuideWithin: '//api.hitta.se/partnerintegration/v1/whiteguide/poi/within/',
serviceWhiteGuide: '//api.hitta.se/partnerintegration/v1/whiteguide/',
serviceComfort: '//api.hitta.se/partnerintegration/v1/comfort/nearest/',


serviceCuriousPerson: '//api.hitta.se/creepy/v3/person',
serviceCuriousLocation: '//api.hitta.se/creepy/v3/location',
serviceCuriousNearby: '//api.hitta.se/creepy/v3/nearby/',
serviceCuriousAreaNearby: '//api.hitta.se/creepy/v3/area/nearby/',

serviceAudiUrl: '//api.hitta.se/partnerintegration/v1/audi/retailer',

serviceHoodsData: '//api.hitta.se/hoods/v1/',

droneplayerBasePath: '/public/lib/fastout/',
droneplayerScriptUrl: '/public/lib/fastout/droneplayer-fastout-min.js',

initialMapState: ,

mapFrameworkSettings:
scrollWheelZoom: !Hitta.utils.inIframe(),
zoomControl: false,
attributionControl: false


, mapSettings)

);

window.mapPointsJson = null;
var mapPointsXML = null;

var isPostRequest = '';

hitta.onMapLoad(function()
hitta.PartnerMap.parseData();
);

var addZoom = function(queryString)
return (queryString ? queryString + '&' : '') + 'zoom=' + hitta.mapAPI.getZoom();
;

var addView = function(queryString)
var center = hitta.mapAPI.getCenter();
var centerStr = center.lat + ':' + center.lng;
return addZoom(queryString) + '&center=' + centerStr;
;

var openWindow = function(location, customQueryParam) ;

/**
* Adds a query param to the href.
*/
var addQueryParam = function(href, param)
if(!param)
return href;


var index = href.indexOf('?');
var newHref;

if(index > 0)
newHref = href.slice(0, index + 1) + param + '&' + href.slice(index + 1);
else
index = href.indexOf('#');

if(index > 0)
newHref = href.slice(0, index) + '?' + param + href.slice(index);
else
newHref = href + '?' + param;



return newHref;

;

// Go to big map when the link control has been clicked (notification from map client)
hitta.pubsub.subscribe(['control/bigMapLink/click'], function(location)
openWindow(location.href, addView());
);

hitta.pubsub.subscribe(['control/routeTrigger/click'], function(location)
openWindow(location.href, addView('rsh=1'));
);
hitta.pubsub.subscribe(['control/droneviewbutton/click'], function(location)
openWindow(location.href, addView('dm=1'));
);
hitta.pubsub.subscribe(['control/lifestyle/click'], function(location)
openWindow(location.href, addZoom('lsc=' + hitta.gisUtils.stringifyLatLng(hitta.mapAPI.getCenter())));
);
hitta.pubsub.subscribe(['control/tileLayer/click'], function(location)
openWindow(location.href, addView('tl=1'));
);

hitta.pubsub.subscribe(['control/hikingMiniMap/click'], function(location)
openWindow(location.href, addView('tl=2'));
);

hitta.pubsub.subscribe(['control/streetview/click'], function(location)
var param = '';

if(hitta.PartnerMap.data.mp)

var asJson = JSON.parse(hitta.PartnerMap.data.mp);

if(asJson.length > 0)
var el = asJson[0];
var latlng = grid_to_geodetic(el.x, el.y);
param = 'strc=' + latlng[1] + ':' + latlng[0];



if(!param)
param = addView(param);
param = 'strumc=1';


openWindow(location.href, param);
);

hitta.pubsub.subscribe(['control/realestate/click'], function(location)
openWindow(location.href, addView('re=1'));
);



hitta.pubsub.subscribe('control/button/click', function()
backLink();
);



hitta.onMapLoad(function()
// Delay execution because of popup-width calulcation-bug on ios safari
setTimeout(function()
var markersBounds = hitta.plugin.urlbasedcustommarkers.setup();

var plugin = new hitta.plugin.SearchGeoJson();

plugin.search('',
drawStyles:
color:'',
,
popup:
content: '',
options:

,
typeCodes: ['stadsdel','postort','postnr','kommun','blocket'],
partnerId: ''
, function(searchBounds)

// set map view with the bounds from both of the plugins
new hitta.plugin.MapViewSetter().setMapView([markersBounds, searchBounds] );

);
, 100);

);


var Hitta = window.Hitta || ;
Hitta.GlobalVars = Hitta.GlobalVars || ;
Hitta.GlobalVars.serviceImage = "//api.hitta.se/image/v2/";

var Hitta = window.Hitta || ;
Hitta.GlobalVars = Hitta.GlobalVars || ;
Hitta.GlobalVars.serviceStreetviewSnapshots = "//s3-eu-west-1.amazonaws.com/streetview-snapshots/default";

var Hitta = window.Hitta || ;
Hitta.GlobalVars = Hitta.GlobalVars || ;
Hitta.GlobalVars.searchGeoCookieName = "hitta.geolocation";

var Hitta = window.Hitta || ;
Hitta.GlobalVars = Hitta.GlobalVars || ;
Hitta.GlobalVars.autocompleteInterval = 150;

var Hitta = window.Hitta || ;
Hitta.GlobalVars = Hitta.GlobalVars || ;
Hitta.GlobalVars.searchGeoCookieLifetime = 1800000;

var Hitta = window.Hitta || ;
Hitta.GlobalVars = Hitta.GlobalVars || ;
Hitta.GlobalVars.serviceAutocompleteUrl = "//api.hitta.se/autocomplete/v3/";

var Hitta = window.Hitta || ;
Hitta.GlobalVars = Hitta.GlobalVars || ;
Hitta.GlobalVars.serviceCompanyInfoUrl = "//api.hitta.se/info/v3/";

var Hitta = window.Hitta || ;
Hitta.GlobalVars = Hitta.GlobalVars || ;
Hitta.GlobalVars.serviceSearchUrl = "//api.hitta.se/search/v7/";

var Hitta = window.Hitta || ;
Hitta.GlobalVars = Hitta.GlobalVars || ;
Hitta.GlobalVars.recaptchaScriptUrl = "https://www.google.com/recaptcha/api.js";

var Hitta = window.Hitta || ;
Hitta.GlobalVars = Hitta.GlobalVars || ;
Hitta.GlobalVars.recaptchaSitekey = "6LciXgsTAAAAACq9cDO1Us60FYnaXD8Nr0eeVJ4B";

var Hitta = window.Hitta || ;
Hitta.GlobalVars = Hitta.GlobalVars || ;
Hitta.GlobalVars.bankIdEndpoint = "https://api.hitta.se/auth/v1/";

var Hitta = window.Hitta || ;
Hitta.GlobalVars = Hitta.GlobalVars || ;
Hitta.GlobalVars.intrumSolidityUrl = "//api.hitta.se/partnerintegration/v1/intrum/solidity/nearby/";

var Hitta = window.Hitta || ;
Hitta.GlobalVars = Hitta.GlobalVars || ;
Hitta.GlobalVars.orderSystemPricePerYear = 995;

var Hitta = window.Hitta || ;
Hitta.GlobalVars = Hitta.GlobalVars || ;
Hitta.GlobalVars.serviceChangeRequestPerson = "//api.hitta.se/changerequest/v1/person/";

var Hitta = Hitta || ;

(function()
Hitta.endpoints =
zeroHits:
comments: '//api.hitta.se/zerohits/v1/comments',
,
statistics:
send: '//api.hitta.se/statistics2/v1/event/save'
,
lifestyle:
latlng: '//api.hitta.se/maplayer/v1/lifestyle/'
,
token:
getToken: '//api.hitta.se/maplayer/v1/t/'
,
financialInfo:
company: '/financial-info/company/description/',
person: '/financial-info/person/description/'

;
());

var Hitta = Hitta || ;

Hitta.conf =
getFacebookId: function()
return '236182316554456';

;

isMobile = isMobileSifo();
if (isMobile)
ga('set', 'dimension2', 'Mobile');
else
ga('set', 'dimension2', 'Desktop');


var abTestVersion = 'GONZALES_MAP=A';
if (abTestVersion)
ga('set', 'dimension7', abTestVersion);



function isMobileSifo()




Popular posts from this blog

تاکاشی میزونوما جستارهای وابسته منابع پیوند به بیرون منوی ناوبری“Players List (A-Z)”日本代表 試合別出場記録گسترش آن

Leheküljed, mis viitavad lehele "Corse du Sudi departemangu haldusüksuste loend" Navigeerimismenüü

What flight has the highest ratio of timezone difference to flight time? The Next CEO of Stack OverflowWhich mountain has the highest death ratio of hikers?Is there a tourist destination where the new year starts first and at the same time the old year ends last?What time is used on board a cruise ship?Does the flight departure time take Daylight Savings Time into account?When a flights departs in the middle of the winter daylight saving time switch, what is the actual departure time?Does the direction of travel matter for jet lag, when the time difference is 12 hours?What is the most expensive regularly scheduled flight?Does the flight time when booking a holiday online show the time you arrive in that country and its time zone?When is 1st of February 24:00 (EST) time in GMT time in the UK?Flight time has been changed - Ryanair refuses to cancel