Download - Design Studio Innovation Series - Topic 6_ Geo Maps

Transcript
  • 17/6/2015 DesignStudioInnovationSeriesTopic6:Geo...|SCN

    http://scn.sap.com/community/businessobjectsdesignstudio/blog/2015/06/01/designstudioinnovationseriestopic6geomapspartifeaturereview 1/16

    GettingStarted Newsletters Store

    Products Services&Support AboutSCN Downloads

    Industries Training&Education Partnership DeveloperCenter

    LinesofBusiness UniversityAlliances Events&Webinars Innovation

    LogOn JoinUsHi,Guest SearchtheCommunity

    Activity Communications Actions

    Browse

    SAPBusinessObjectsDesignStudio

    Tweet

    IntroductionOneoftheexcitingandlongawaitednewfeaturesintroducedinDesignStudio1.5istheGeoMapcomponent.AfterhavingtrieditoutIthoughtI'dsharemyexperiences.Imustsaythatforafirstversion,Ithinkit'sprettyimpressiveintermsofcapabilitiesandalsoquiteeasytouse.IthascertainlyexceededthestandardmappingcapabilitiesinXcelsius.ScenarioI'llbedescribingtheGeoMapfeaturesinthecontextofaBWBExexamplerelatedtoUSairlineontimeperformancedataincludingairportlocationsandstatisticssuchas%WeatherDelayand%DelayedFlights.ConfigurationTheGeoMapcomponentallowsinteractivemapstobeincludedinanapplication,consistingofshapesandmarkersoverlaidontoabasemap.I'lldescribetheprocessintermsofmyscenario.Afterdesigningtheapplication,myworkspacelookslikethis:

    StandardProperties

    ThemostimportantstandardpropertyistheBasemapURL.TheGeoMapcomponentdefaultstotheopensourceOpenStreetMaptileproviderasshownbelow.YouarefreetouseyourowntileproviderbutIfoundOpenStreetMapquitesufficientformypurposes.Otherpropertiesincludethebasemapcreditandlegendvisibility.Youcanalsotriggerinteractivitybasedonthe"OnSelect"eventofthemap.

    DesignStudioInnovationSeriesTopic6:GeoMapsPartIFeatureReviewPostedbyMustafaBensaninSAPBusinessObjectsDesignStudioonJun1,20156:26:20PM

    1Like

  • 17/6/2015 DesignStudioInnovationSeriesTopic6:Geo...|SCN

    http://scn.sap.com/community/businessobjectsdesignstudio/blog/2015/06/01/designstudioinnovationseriestopic6geomapspartifeaturereview 2/16

    AdditionalProperties:

    Thisisthefunpart!Intheadditionalpropertiesyoudefinethelayersforyourmap.Thereare3typesofGeoLayers:

    ShapesLayersforoverlayingshapesbasedonGeoJSONfilesPointsLayersforoverlayingmarkersforspecificgeolocationsChartsLayersforoverlayingbubblesbasedonaspecificmeasure

    Eachlayermustbeassignedadatasource.Datasourcescanbereusedacrosslayers.Inmyexample,Imanagedwithjusttwodatasourcesasshownbelow:

    Thefirstdatasourceincludesageodimensionwithlatitudeandlongitudeattributesaswellasmeasures.ItisusedinPointslayersandChartslayers.

    EachdatasourcemustcontainonlyonegeodimensionintherowssectionoftheInitialView.ForPointsandChartslayers,thegeodimensionshouldideallyincludethestandardBWlatitudeandlongitudeattributes,otherwisetheyneedtobedefinedasmeasuresinthecolumnssectionoftheInitialView.Inmyexample,IpreferredtousethestandardBWattributesasshownbelow:

  • 17/6/2015 DesignStudioInnovationSeriesTopic6:Geo...|SCN

    http://scn.sap.com/community/businessobjectsdesignstudio/blog/2015/06/01/designstudioinnovationseriestopic6geomapspartifeaturereview 3/16

    TheseconddatasourceisusedforShapeslayerstoassignUSFIPS(FederalInformationProcessingStandards)statecodestothecorrespondingpolygonrepresentingthestateintheGeoJSONfile.Longitudeandlatitudeattributesarenotrequired.

  • 17/6/2015 DesignStudioInnovationSeriesTopic6:Geo...|SCN

    http://scn.sap.com/community/businessobjectsdesignstudio/blog/2015/06/01/designstudioinnovationseriestopic6geomapspartifeaturereview 4/16

    ToillustratethedifferentusecasesfortheGeoMapfeaturesIhavedefined5differentlayersasfollows:

    1.USAirportLocationMarker

    ThislayerisoftypeMarker.Thereforeitrequireslatitudeandlongitudegeodimensionattributes.YouwillnoticethatthereisnofieldtoexplicitlyreferencethegeodimensionherebecauseonlyonecanbedefinedinthedatasourceInitialView.Forthisexample,thegeodimensionondatasourceDS_1istheOriginAirportwhichwillbeplottedwithamarkerbasedonthelongitudeandlatitudecoordinates.Finally,amarkercolourmustbeselected.2.USAirportLocationBubble

    ThislayerisoftypeChart.Atthemoment,theonlygeocharttypeavailableisabubblechart.Thesizeofabubbleisproportionaltothevalueoftheselectedmeasure,whichinthiscaseisthe%WeatherDelay.ThebubblesarecentredonthegeolocationoftheairportbasedontheassignedlatitudeandlongitudeindatasourceDS_1.InthiscaseaGeoJSONfileisnotspecifiedbecausewejustwanttodisplaybubblesatthegeolocationswithouttheneedforsuperimposingthemonshapes.ThereforetheMappingPropertyandMappingTypearenotrelevanteither.

    3.USStateBubble

  • 17/6/2015 DesignStudioInnovationSeriesTopic6:Geo...|SCN

    http://scn.sap.com/community/businessobjectsdesignstudio/blog/2015/06/01/designstudioinnovationseriestopic6geomapspartifeaturereview 5/16

    ThislayerisalsooftypeChart,likethepreviousone.Animportantdifferencehoweveristhatlatitudeandlongitudeisnotreferenced.Instead,acustomGeoJSONfileisspecifiedtodefineshapes(polygons)thatcorrespondtoUSstates.EachstatepolygonintheGeoJSONfileincludesproperties,oneofwhichcanbelinkedviatheMappingPropertyandMappingTypetosupportinteractivityviathe"OnSelect"eventoftheGeoMapcomponent.ThedimensionlinkedtothestateshapeisautomaticallyderivedfromdatasourceDS_2sinceitincludesonlyonegeodimension.

    Itisworthnotingherethatwhenthelatitudeandlongitudearenotspecified,thebubblewillbecentredinsideitscorrespondingshape,inthiscasethestate.4.USStateChoropleth

    ThislayerisoftypeShape.Intheexample,thespecifiedGeoJSONfiledefinestheUSstates(asbefore)withthecorrespondingdataassociationviatheMappingPropertyandMappingType.Additionally,inthiscase,theStartColorandEndColorpropertieshavebeendefinedsothattheresultingoutputisintheformofachoroplethmap,withthecolourgradientbeingbasedonthechosenmeasure,%WeatherDelayfromdatasourceDS_2.

    5.USStateAnalytic

    Thislayeristhesameasthepreviousonebutasinglecolourisspecifiedinsteadsothattheoutputisinthe

  • 17/6/2015 DesignStudioInnovationSeriesTopic6:Geo...|SCN

    http://scn.sap.com/community/businessobjectsdesignstudio/blog/2015/06/01/designstudioinnovationseriestopic6geomapspartifeaturereview 6/16

    formofan"analyticmap"(likethoseinXcelsius).Inthiscaseitmaybeappropriatetohidethelegend.Sincethereisnocolourgradient,theselectedmeasureisarbitrary.

    InteractivityviaScripting

    Todemonstratethedifferenttypesofeffectsthatcanbeachieved,Ihaveincludedaconfigurationsidebarthatallowsthevisibilityofthebasemaptobetoggledanddifferentcombinationsoflayerstobeselected,asshownbelow:

    The"OnSelect"eventscriptofthebasemapvisibilityradiogrouphasbeendefinedasfollows:

    HerethesetMapUrl()methodshowsthebasemapbysettingthemapURLtothedefaultURL(inthiscaseOpenStreetMap),orhidesthebasemapbyspecifyinganullURL.

    The"OnSelect"eventscriptofthelayerselectioncheckboxgrouphasbeendefinedasfollowstocontrolthedisplayofthelayers:

    Furthermore,todemonstrateanexampleofdrillingdowntoadditionalinformationbasedonselectionofanareaofthemap,thescriptbelowdisplaysachartrankingtheairportswithinthechosenstate:

    ItisrecommendedtoexecutethegetSelectedLayer()andgetSelectedMember()methodstogetherforbestresults.Intheaboveexample,thememberreturnedisthestatekeybasedonthelayer'sGeoJSONMappingProperty.

    CustomGeoJSON

    GeoJSONshapefilesareusuallyusedtooverlayregions.Theyarereadilyavailableontheinternet.Forthisexample,IobtainedaUSStatefilefromthelinkGeoJSONandKMLDatafortheUnitedStates(gz_2010_us_040_00_500k.json).Alternatively,theycanbecreatedfromothersourcessuchasNaturalEarthusingtoolssuchasthefollowing:

    MyGeoDatamapshapergeojson.io

    01. varbaseMapVisibility=me.getSelectedValue()02. if(baseMapVisibility=="showBasemap"){03. GEO_MAP.setMapUrl(basemapURL)04. }05. else{GEO_MAP.setMapUrl("")}

    01. varselectedMapLayers=me.getSelectedValues()02. varallMapLayers=mapLayers.split(",")//Convertmaplayerstringtoarray03. //Hideallmaplayers04. allMapLayers.forEach(function(mapLayerID,index){05. GEO_MAP.setLayerVisible(mapLayerID,false)06. })07. //Displayselectedmaplayers08. selectedMapLayers.forEach(function(mapLayerID,index){09. GEO_MAP.setLayerVisible(mapLayerID,true)10. })

    01. varselectedLayerID=GEO_MAP.getSelectedLayer()02. varselectedState=GEO_MAP.getSelectedMember("ZOSTFIPS")03. varselectedStateKey=selectedState.internalKey04. varselectedStateText=selectedState.text05. if(selectedLayerID=="US_STATE_BUBBLE"||selectedLayerID=="US_STATE_ANALYTIC"||selectedLayerID==06. DS_1.setFilter("ZOSTFIPS",selectedStateKey)07. DS_1.sortByMeasure("006EIC2OSTY2YB663A5R7IE8Y",false)08. FIORIAPPHEADER_PAGE_2.setTitle(selectedStateText+"%DelayedFlightsrankedbyAirport")09. PAGEBOOK_GEOMAP.setSelectedPageByName("CHART_PAGE")10. }

  • 17/6/2015 DesignStudioInnovationSeriesTopic6:Geo...|SCN

    http://scn.sap.com/community/businessobjectsdesignstudio/blog/2015/06/01/designstudioinnovationseriestopic6geomapspartifeaturereview 7/16

    LikeCSSfiles,GeoJSONfilesmustbeplacedintheapplicationrepositoryfoldertobeaccessiblewhendevelopinginlocalmode.

    Screenshots

    ThescreenshotsbelowillustratedthecapabilitiesofthenewGeoMapcomponent:

    ThedefaulttileproviderOpenStreetMapisquitesuitableformanyusecasesinmyopinion.

  • 17/6/2015 DesignStudioInnovationSeriesTopic6:Geo...|SCN

    http://scn.sap.com/community/businessobjectsdesignstudio/blog/2015/06/01/designstudioinnovationseriestopic6geomapspartifeaturereview 8/16

  • 17/6/2015 DesignStudioInnovationSeriesTopic6:Geo...|SCN

    http://scn.sap.com/community/businessobjectsdesignstudio/blog/2015/06/01/designstudioinnovationseriestopic6geomapspartifeaturereview 9/16

  • 17/6/2015 DesignStudioInnovationSeriesTopic6:Geo...|SCN

    http://scn.sap.com/community/businessobjectsdesignstudio/blog/2015/06/01/designstudioinnovationseriestopic6geomapspartifeaturereview 10/16

  • 17/6/2015 DesignStudioInnovationSeriesTopic6:Geo...|SCN

    http://scn.sap.com/community/businessobjectsdesignstudio/blog/2015/06/01/designstudioinnovationseriestopic6geomapspartifeaturereview 11/16

    AverageUserRating

    (9ratings)

    Tweet

    ConclusionHopefullythisbloghasprovidedausefuloverviewofthemainfeaturesavailablewiththenewGeoMapcomponent.Ithinkit'sacomprehensiveadditiontoDesignStudiothatcanmeettherequirementsofmanytypicalusecases.It'scertainlyaverysoliddebutforgeomapping.IplantofollowthisupwithPartII,whichwillexploretheuseoflayersforimplementingdrilldownfunctionalitythroughdifferentlevelsofmaps.Inthemeantime,I'dbeinterestedinyourthoughtsabouttheGeoMapcomponentandexamplesofusecasesyou'dliketoaddressforyourownbusinessrequirements.Commentsandquestionsaremostwelcome.BlogSeriesIndex: DesignStudioInnovationSeriesWelcome

    2043Views Categories:Scripting,BW,HANATags:xcelsius,dashboards,dashboard,dashboard_design,sapzen,business_objects_design_studio,design_studio,

    businessobjects_design_studio,designstudio,dashboard_design_xcelsius

    1Like

    31Comments

    MichaelHowlesJun1,20157:14PM

    Greatoverviewshowcasingallofthemappingcapabilitiesin1.5,Mustafa.ImustagreethatSAPexceededmyexpectationswhenitcametomapping.Notonlyaretheysupportingopenendedtileproviders(OSM,Mapbox,Stamen,Mapbox,MapQuest,etc)butalsomultiplelayersbasedonGeoJSON,they'vecoveredprobablynearlyeverythingofwhatmostcustomerswouldbelookingforforabaselinemap.

  • 17/6/2015 DesignStudioInnovationSeriesTopic6:Geo...|SCN

    http://scn.sap.com/community/businessobjectsdesignstudio/blog/2015/06/01/designstudioinnovationseriestopic6geomapspartifeaturereview 12/16

    Like(1)

    MyonewishlistitemisforlatitudeandlongitudetobesupportableasaDimensionratherthanaMeasure/Attribute.I'mpuzzledwhyitwasexcludedbutnevertheless,thisisquiteminor.Also,toreinforcemaptilevariety,belowisanexampleshowing2MapBoxtileset,andaStamentilesetonthebottom:EDIT:Lookslikeitwon'tletmeuploadpicsincommentsforsomereason...

    Like(0)

    BrentKastorJun1,20158:31PM

    Looksgreat!IamnewtoSAP,buthave17yearsexperienceinGISusingprimarilyEsriproducts.DoyouknowofanyEsriintegrationswithSAPDesignStudio?Thanks!Also,wehavemultipletypesofshapeswewouldliketodisplaywithinthemappoints,lines,andpolygonsdoyouknowifthesearesupportedIseepointsandpolygonsbeingsupported?IwouldsupposewiththesupportofGeoJSON,theGeoMapwouldbeabletodisplaylinetypedataaswell?

    Like(1)

    MichaelHowlesJun1,20158:41PM(inresponsetoBrentKastor)

    Brent,ESRIsupportseemslimitedtotheirslippymaptiles.Shapesarelimitedtodatadrivenplotmarkers,bubbles,andGeoJSONshapeoverlaysthatareshadedbasedonalinearcolorscalebasedonMeasurevalues.I'venotseenanabilitytoplotlinessuchasbetweenDepartureandArrivaldestinations,etc.

    Like(1)

    VincentDechandonJun1,201511:29PM(inresponsetoBrentKastor)

    HiBrent.ThecompanyIworkfor(Ican'tputthenamerightthereforSAPSCNrulesreasons,clickonmyprofiletoseethecompanyname)hasalreadyreleasedaLocationAnalyticsComponentthatfityourneeds.It'scompatiblewithEsriServer/Onlinev10.0ormore,aswellasGeoJSONandTopoJSON.Stillonmyprofile,you'llbeabletofindacompleteblogImadeabouttheextensionI'mtalkingabout.Ifyouareinterested,feelfreetosendmeaprivatemessageandIwillbeabletoprovideyouthelinktodownloadtheextension.Br,Vincent

    Like(0)

    MustafaBensanJun6,20153:31AM(inresponsetoBrentKastor)

    HiBrent,ApartfromtheESRItileproviderthatMikementioned,Idon'tbelievethereisaDesignStudioaddonlikethereisfortheDashboards(Xcelsius)product.Also,asMikehaspointedout,IwouldexpectanykindofshapesinGeoJSONformattobesupportedbutthereisn'tamechanismtodynamicallyplotshapesotherthanlocationmarkers.Inmyexampledataset,IhaveDepartureandArrivallocationinformation.Iwouldthinkthatitshouldbetechnicallyfeasibletointroduceanewlayertype,"line",whichacceptedtwogeodimensionsinsteadofoneforsuchapurpose.PerhapswemayseethisasanenhancementinafutureversionoftheGeoMapcomponent.Alternativelyyoucouldconsiderevaluatingamorespecialised3rdpartymapsaddonforDesignStudio.Youmentionedthatyou'renewtoSAP.I'dbeinterestedtoknowaboutthepotentialusecasesforgeomapsthatyouhaveinmindforDesignStudioifyou'reabletosharethem.Regards,Mustafa.

    Like(1)

    VincentDechandonJun1,201511:29PM

    Greatintroductiontothisnewfeature,itgivesagoodoverviewofwhatcanorcannotbedone.Br,Vincent

    Like(1)

    DeepuSasidharanJun2,20151:05AM

    HiMustafa,Greatintroandwellthoughtthrublogasusual!Lookingforwardtothenextpart.Deepu

  • 17/6/2015 DesignStudioInnovationSeriesTopic6:Geo...|SCN

    http://scn.sap.com/community/businessobjectsdesignstudio/blog/2015/06/01/designstudioinnovationseriestopic6geomapspartifeaturereview 13/16

    Like(1)

    JeroenvanderAJun2,20159:26AM

    ThanksMustafa,thatisagoodread.Jeroen

    Like(0)

    MustafaBensanJun8,20154:19AM(inresponsetoJeroenvanderA)

    Thanksforyourfeedback,Jeroen.

    Ifyouareabletoshare,I'dbeinterestedtoknowwhattypeofdemandandusecasesforgeomapsyouareseeingfromcustomersandyouropinionoftheextenttowhichsuchusecasescouldbemetwiththestandardfunctionalityofthenewGeoMapcomponentinDesignStudio?Also,whatenhancementstothiscomponentdoyouthinkareneededtofullyaddressgeomappingrequirementsfromcustomers?

    Regards,

    Mustafa.

    Like(0)

    RolandWeygoldJun5,201511:13AM

    HiMustafa,Thanksfortheclearintroduction!Onequestion:isitpossibletodeterminethevaluerangesandassociatedcolorsinthechoroplethmaps,ratherthanhavingadefaultscalefromlowesttohighestvalue?Thanks,Roland

    Like(0)

    MustafaBensanJun5,201511:35AM(inresponsetoRolandWeygold)

    HiRoland,Gladitwashelpful.Unfortunately,itdoesn'tlooklikethere'sanyoptiontodefinecustomvaluerangesforthecoloursinachoroplethmap.Ifso,IwouldhaveexpectedtoseethisintheLayerdefinitionoftheAdditionalPropertiesSheetbutit'snotthere.YoucouldsuggestitintheDesignStudioIdeaPlace.Regards,Mustafa.

    Like(0)

    RolandWeygoldJun6,201512:01AM(inresponsetoMustafaBensan)

    HiMustafa,Thanksforswiftreply.IwillcheckoutthecustomcomponentprovidedbyRyanbeforeaddingtothe"IdeaPlace".

    Like(0)

    MustafaBensanJun6,20151:47AM(inresponsetoRolandWeygold)

    HiRoland,Yes,definitelycheckout MikeHowles' ChoroplethMapcomponentasmentionedbyRyan,whichhadslippedmymind.Ithasquitecomprehensiveconfigurationoptionssoislikelytoaddressyourrequirementforcustomcolours.Regards,Mustafa.

    Like(1)

    RyanWJun5,201511:13PM(inresponsetoRolandWeygold)

    Isthishelpful?

    http://scn.sap.com/community/businessobjectsdesignstudio/blog/2015/03/20/sapdesignstudiosdkchoroplethmapsrefinedpart3

    Like(0)

    RolandWeygoldJun6,201512:02AM(inresponsetoRyanW)

    HiRyan,ThisappearstobejustwhatIwaslookingfor:)willcheckitout!Thanks,Roland

    AlexanderCrollJun9,201512:45AM

  • 17/6/2015 DesignStudioInnovationSeriesTopic6:Geo...|SCN

    http://scn.sap.com/community/businessobjectsdesignstudio/blog/2015/06/01/designstudioinnovationseriestopic6geomapspartifeaturereview 14/16

    Like(0)

    HiMustafa,thanksforyourblog,helpedmeoutagreatdealofunderstandingthisnewcomponent!Ihaven'tworkedmuchwithmapsyet,butIwouldliketohaveabasemapofEuropewhichIcanthenoverlaywithacorrespondinggeojson(choropleth)ofEurope'scountries.Ihavethegeojsonfile,butnoideahowtogetthemaptoonlyshowEuropeuponstartup.>CanIsetthezoomsomehow?>How/whereexactlycanIgetabasemapurltoreplacethedefaultone?(Ihavesearchedforthisbutcouldn'tfigureitoutbymyselfsofar)Thanksalot!CheersAlex

    Like(0)

    MustafaBensanJun9,20152:26AM(inresponsetoAlexanderCroll)

    HiAlex,I'mgladyoufoundthebloghelpful.Youaskaverygoodquestionandit'soneI'vebeenlookingintoformyfollowupblogpost.OneapproachwouldbetodynamicallysettheparametersofthedefaultbasemaptozoomtotheUS.AcustombasemapURLcanbesetwiththesetMapURL()method.ThedefaultOpenStreetMapbasemapURLfortheGeoMapcomponentisasfollows:

    http://otile1.mqcdn.com/tiles/1.0.0/map/{LOD}/{X}/{Y}.pngWeneedtoderivethebasemaptilenameattheappropriatezoomlevel(fortheUSinyourcase).However,itturnsoutit'snotassimpleasjustsettingthezoomlevel,latitudeandlongitude.There'saninterestingmathematicalcalculationtodeterminethetilename.AnalternativecouldbetofindaUSonlybasemapprovider(asyou'vesuggested).OneexampleI'vecomeacrossisTheNationalMapfromtheUSGS(USGeologicalSurvey).IfyoucanwaitalittleIplantopostablogonthesubjectwithmyfindingsthisweek.Regards,Mustafa.

    Like(0)

    AnthonyPattersonJun9,20156:06PM(inresponsetoAlexanderCroll)

    HiAlex,HaveyoutriedusingthecenterMap()scriptingfunction?Thiswillzoominonanareainthemap.E.g.ifyouhaveonlyEuropeancountriesinLAYER_1,youcouldcallthismethodonstartupanditwouldzoominonEurope.Anthony

    Like(1)

    MustafaBensanJun9,20157:11PM(inresponsetoAnthonyPatterson)

    HiAnthony,IhaveexperimentedwiththecenterMap()methodbutitdoesn'tseemtooptimisethezoomleveltotheshapelayerandalsoissuesintermittenterrorssuchas:"ThemapURLcouldnotberesolvedcheckvalidityofURLhttp://otile1.mqcdn.com/tiles/1.0.0/map/2/4/1.png"

    Regards,

    Mustafa.

    Like(0)

    AnthonyPattersonJun10,201510:24AM(inresponsetoMustafaBensan)

    HiMustafa,CentringonthewholeUSmaybedifficultbecausetheAleutianIslandsextendontotherighthandsideofthemap.Europeshouldworkbetter,especiallyifyoucanfindshapesthatexcludeoverseaspossessions.ItshouldbeokwithUSStatestoo,ifyouexcludeAlaska.Anthony

    AlexanderCrollJun10,20157:04PM(inresponsetoAnthonyPatterson)

    HiAnthony,Mustafa,thanksforyourreplies!

  • 17/6/2015 DesignStudioInnovationSeriesTopic6:Geo...|SCN

    http://scn.sap.com/community/businessobjectsdesignstudio/blog/2015/06/01/designstudioinnovationseriestopic6geomapspartifeaturereview 15/16

    Like(0)

    IdidtrythecenterMap()methodanditactuallydoesthetrick,butnotaseasilyasonemaywish.ItseemstocenterthemapbasedonthegivenvaluesfrommyLayer.SoforexampleifIhavevaluesforFrance,SpainandGermany,themapwillbecenteredbasedonthesecountriesandnotentireEurope(scandinaviancountriesareonlyhalfvisible,EasternEuropeancountriesalsolessvisible).Excludingoverseasterritoriesdoesalsohelp!However,themethodcauseserror(sameastheoneMustafadescribed)whentryingtozoomintocountriesthatareclosetotheedgeofthebasemap.ThishappensparticularlyforNorthAmerica,becauseAlaskaandCanadaaresoclosetotheedgeofthemap.SouthAmerica,AfricaorAsia(notsureaboutNZ/OZ)worksfine,becauseyouhavethe'buffer'oftheAntarctis...Doyouguysknowofabasemapthathaslargeredges(i.e.NorthAmericanotsoclosetotheedgeofthebasemap)?Thanks!Alex

    Like(0)

    MustafaBensanJun10,20158:26PM(inresponsetoAlexanderCroll)

    HiAlex,Ifmyunderstandingofworldbasemapsiscorrect,Isuspectthatalltileproviderswillhavethesame/similaredgessimplybecausethespacingisbasedontheactualgeographicdata.RegardingtheintermittentzoomingerrorwithcenterMap()(whichalsooccurswithnormalmapnavigationwhennotusingcenterMap()bytheway),I'minclinedtothinkthatthisisabugwiththeGeoMapcomponentitself.AsIunderstandit,theGeoMapcomponentpopulatesthethreebasemapURLparamatersdynamicallyforcenterMap()andnormalzooming.ItseemstomethattheerroroccursbecausetheGeoMapcomponentdoesnotalwayscorrectlycalculatetheparameters.Regards,Mustafa.

    Like(1)

    MichaelHowlesJun11,201512:17AM(inresponsetoMustafaBensan)

    It'salmostlikeasaworkaround,youcreatealayerthathasonGeoJSONfeaturethatisasinglesimpleboxthatrepresentstheboundsofyourintendedzoomedviewport,andusethatasthelayertodoyourcenterMapzooming,andreservetheotherlayer(s)fortheactualvisualizations.Maybeitwouldwork,I'llhavetotryitlater.

    Like(0)

    MustafaBensanJun11,20155:26AM(inresponsetoMichaelHowles)

    That'sagoodsuggestionwhichcertainlysoundslogical.Otherwiseyou'dhavetotrytogetfancybydynamicallysettingthethreeparametersofthebasemapURL,whichI'vebeenmeaningtoexperimentwithbutI'msurethatwillhaveitsownchallengesaswell.

    Like(0)

    AnthonyPattersonJun11,201510:50AM(inresponsetoMichaelHowles)

    Ifyouwanttomakealayerinvisible,butstilluseitwithcenterMap(),thetrickwouldbetotogglethevisibilityusingCSS.

    AnthonyPattersonJun11,20159:36AM(inresponsetoMustafaBensan)

    HiMustafa,You'recorrect.ThereisabugwithcertaintilecalculationswhichwillfixedinSP1.

  • 17/6/2015 DesignStudioInnovationSeriesTopic6:Geo...|SCN

    http://scn.sap.com/community/businessobjectsdesignstudio/blog/2015/06/01/designstudioinnovationseriestopic6geomapspartifeaturereview 16/16

    FollowSCNSiteIndex ContactUs SAPHelpPortalPrivacy TermsofUse LegalDisclosure Copyright

    Like(0)

    Anthony

    Like(0)

    MustafaBensanJun11,201510:17AM(inresponsetoAnthonyPatterson)

    HiAnthony,Thanksforconfirmingthat.It'sgoodtoknowtheissuewillbeaddressedinSP1 .Mustafa.

    Like(0)

    JeroenvanderAJun11,201511:01AM

    anotherthought:sinceHANASP9hasalltheGEOfunctionalities.WillwebeabletodirectlyconnecttoHANAviewsthatholdtheGEOdata?Jeroen

    Like(0)

    AnthonyPattersonJun11,201511:13AM(inresponsetoJeroenvanderA)

    Withsomelimitations.E.g.I'vebeenabletocreateaspatialjoininacalculationviewandseetheresultsinDesignStudio,butreturningthespecialspatialdatatypes(e.g.ST_Geometry)doesn'tworkwell.

    Like(1)

    RyanGoodmanJun12,201510:32AM

    AwesomearticleMustafa.Haveyoutriedthrowingabunchofdatapointsatittoseewhatkindofperformancecanbesqueezedoutinbrowserandmobile?

    Like(0)

    MustafaBensanJun12,20153:39PM(inresponsetoRyanGoodman)

    ThanksRyan.InmyexampleIhave300datapointswhichperformswellonthedesktopbrowser.Ihaven'ttriedonmobileyetbutwilldoso.