How to use custom fonts in Google Maps marker's InfoWindowText?How to disable mouse scroll wheel scaling with Google Maps APIHow can I create numbered map markers in Google Maps V3?can't add a custom marker to Google maps ( JS )Google Maps JS API v3 - Simple Multiple Marker ExampleGoogle Maps - Combine marker options and click event?Google Map API V3: How to add Custom data to markersGoogle Maps custom marker's icon doesn't loadcustom property with google marker in type scriptGoogle Maps & JavaFX: Display marker on the map after clicking JavaFX buttonHow to detect tap on Google maps text window

Why did Intel abandon unified CPU cache?

Is Dumbledore a human lie detector?

Does putting salt first make it easier for attacker to bruteforce the hash?

How can one's career as a reviewer be ended?

Breaking changes to eieio in Emacs 27?

How many sets of dice do I need for D&D?

If there's something that implicates the president why is there then a national security issue? (John Dowd)

How (un)safe is it to ride barefoot?

What STL algorithm can determine if exactly one item in a container satisfies a predicate?

Command of files and size

How do you play "tenth" chords on the guitar?

Why are ambiguous grammars bad?

Extracting data from Plot

Was Self-modifying-code possible just using BASIC?

Diatonic chords of a pentatonic vs blues scale?

Do you need to let the DM know when you are multiclassing?

How can I remove material from this wood beam?

NUL delimited variable

Proving that a Russian cryptographic standard is too structured

Converting from CMYK to RGB (to work with it), then back to CMYK

Canada travel to US using Global Entry

Three questions

Multiband vertical antenna not working as expected

YA book about blind creatures that live underground and take kid's eyes



How to use custom fonts in Google Maps marker's InfoWindowText?


How to disable mouse scroll wheel scaling with Google Maps APIHow can I create numbered map markers in Google Maps V3?can't add a custom marker to Google maps ( JS )Google Maps JS API v3 - Simple Multiple Marker ExampleGoogle Maps - Combine marker options and click event?Google Map API V3: How to add Custom data to markersGoogle Maps custom marker's icon doesn't loadcustom property with google marker in type scriptGoogle Maps & JavaFX: Display marker on the map after clicking JavaFX buttonHow to detect tap on Google maps text window






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








0















How can I custom font of marker infoWindowText on google_maps_flutter?
Here is my add Marker code:



mapController.addMarker(MarkerOptions(
zIndex: list.id.toDouble(),
position: LatLng(double.parse(list.lat), double.parse(list.long)),
icon: BitmapDescriptor.fromAsset("assets/marker.png"),
infoWindowText:
InfoWindowText(list.name))









share|improve this question
























  • Which version are you using for google_maps_flutter plugin ? is it the latest one ?^0.4.0

    – cipli onat
    Mar 24 at 16:45











  • I used google_maps_flutter: ^0.0.3

    – Alex
    Mar 24 at 16:47











  • the plugin change a lot, there is no any MarkerOptions, some breaking change happend you can see the change log

    – cipli onat
    Mar 24 at 16:49











  • How can I set default font for app ? It's mean my app just only using one font.

    – Alex
    Mar 24 at 17:05











  • You can visit this page for default font for the whole app , It might affect the InfoWindowText too.

    – cipli onat
    Mar 24 at 17:10


















0















How can I custom font of marker infoWindowText on google_maps_flutter?
Here is my add Marker code:



mapController.addMarker(MarkerOptions(
zIndex: list.id.toDouble(),
position: LatLng(double.parse(list.lat), double.parse(list.long)),
icon: BitmapDescriptor.fromAsset("assets/marker.png"),
infoWindowText:
InfoWindowText(list.name))









share|improve this question
























  • Which version are you using for google_maps_flutter plugin ? is it the latest one ?^0.4.0

    – cipli onat
    Mar 24 at 16:45











  • I used google_maps_flutter: ^0.0.3

    – Alex
    Mar 24 at 16:47











  • the plugin change a lot, there is no any MarkerOptions, some breaking change happend you can see the change log

    – cipli onat
    Mar 24 at 16:49











  • How can I set default font for app ? It's mean my app just only using one font.

    – Alex
    Mar 24 at 17:05











  • You can visit this page for default font for the whole app , It might affect the InfoWindowText too.

    – cipli onat
    Mar 24 at 17:10














0












0








0








How can I custom font of marker infoWindowText on google_maps_flutter?
Here is my add Marker code:



mapController.addMarker(MarkerOptions(
zIndex: list.id.toDouble(),
position: LatLng(double.parse(list.lat), double.parse(list.long)),
icon: BitmapDescriptor.fromAsset("assets/marker.png"),
infoWindowText:
InfoWindowText(list.name))









share|improve this question
















How can I custom font of marker infoWindowText on google_maps_flutter?
Here is my add Marker code:



mapController.addMarker(MarkerOptions(
zIndex: list.id.toDouble(),
position: LatLng(double.parse(list.lat), double.parse(list.long)),
icon: BitmapDescriptor.fromAsset("assets/marker.png"),
infoWindowText:
InfoWindowText(list.name))






google-maps flutter






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 24 at 21:45









mirkancal

6321519




6321519










asked Mar 24 at 16:35









AlexAlex

539




539












  • Which version are you using for google_maps_flutter plugin ? is it the latest one ?^0.4.0

    – cipli onat
    Mar 24 at 16:45











  • I used google_maps_flutter: ^0.0.3

    – Alex
    Mar 24 at 16:47











  • the plugin change a lot, there is no any MarkerOptions, some breaking change happend you can see the change log

    – cipli onat
    Mar 24 at 16:49











  • How can I set default font for app ? It's mean my app just only using one font.

    – Alex
    Mar 24 at 17:05











  • You can visit this page for default font for the whole app , It might affect the InfoWindowText too.

    – cipli onat
    Mar 24 at 17:10


















  • Which version are you using for google_maps_flutter plugin ? is it the latest one ?^0.4.0

    – cipli onat
    Mar 24 at 16:45











  • I used google_maps_flutter: ^0.0.3

    – Alex
    Mar 24 at 16:47











  • the plugin change a lot, there is no any MarkerOptions, some breaking change happend you can see the change log

    – cipli onat
    Mar 24 at 16:49











  • How can I set default font for app ? It's mean my app just only using one font.

    – Alex
    Mar 24 at 17:05











  • You can visit this page for default font for the whole app , It might affect the InfoWindowText too.

    – cipli onat
    Mar 24 at 17:10

















Which version are you using for google_maps_flutter plugin ? is it the latest one ?^0.4.0

– cipli onat
Mar 24 at 16:45





Which version are you using for google_maps_flutter plugin ? is it the latest one ?^0.4.0

– cipli onat
Mar 24 at 16:45













I used google_maps_flutter: ^0.0.3

– Alex
Mar 24 at 16:47





I used google_maps_flutter: ^0.0.3

– Alex
Mar 24 at 16:47













the plugin change a lot, there is no any MarkerOptions, some breaking change happend you can see the change log

– cipli onat
Mar 24 at 16:49





the plugin change a lot, there is no any MarkerOptions, some breaking change happend you can see the change log

– cipli onat
Mar 24 at 16:49













How can I set default font for app ? It's mean my app just only using one font.

– Alex
Mar 24 at 17:05





How can I set default font for app ? It's mean my app just only using one font.

– Alex
Mar 24 at 17:05













You can visit this page for default font for the whole app , It might affect the InfoWindowText too.

– cipli onat
Mar 24 at 17:10






You can visit this page for default font for the whole app , It might affect the InfoWindowText too.

– cipli onat
Mar 24 at 17:10













1 Answer
1






active

oldest

votes


















1














I dont have that version but you can give a shot with DefaultTextStyle widget wrap your InfoWindowText widget with DefaultTextStyle



Edit 2 =>
or you can try to wrap the related class/page/scaffold which contains your map with DefaultTextStyple:



DefaultTextStyle(style: TextStyle(color: Colors.blue),
child: Column(children: <Widget>[
Text('default style 1'),
Text('default style 2')
],
));


on the other hand,



I would recommend to upgrade the latest version of the google_maps_flutter plugin which is ^0.4.0 right now, but you need to Migrate to AndroidX because of this breaking change



enter image description here



lastly in the last version of this plugin, you have a Marker and infoWindow property



 Marker(
markerId: MarkerId(stepIndex.toString()),
position: LatLng(latLng.latitude, latLng.longitude),
infoWindow:
InfoWindow(title: stepIndex.toString(), snippet: explanation));


InfoWindow accepts a string for title and snippet properties so I don't think we can change the text style.



edit :
as you think you can try to change whole app text font using custom fonts






share|improve this answer

























    Your Answer






    StackExchange.ifUsing("editor", function ()
    StackExchange.using("externalEditor", function ()
    StackExchange.using("snippets", function ()
    StackExchange.snippets.init();
    );
    );
    , "code-snippets");

    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "1"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55326024%2fhow-to-use-custom-fonts-in-google-maps-markers-infowindowtext%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    1














    I dont have that version but you can give a shot with DefaultTextStyle widget wrap your InfoWindowText widget with DefaultTextStyle



    Edit 2 =>
    or you can try to wrap the related class/page/scaffold which contains your map with DefaultTextStyple:



    DefaultTextStyle(style: TextStyle(color: Colors.blue),
    child: Column(children: <Widget>[
    Text('default style 1'),
    Text('default style 2')
    ],
    ));


    on the other hand,



    I would recommend to upgrade the latest version of the google_maps_flutter plugin which is ^0.4.0 right now, but you need to Migrate to AndroidX because of this breaking change



    enter image description here



    lastly in the last version of this plugin, you have a Marker and infoWindow property



     Marker(
    markerId: MarkerId(stepIndex.toString()),
    position: LatLng(latLng.latitude, latLng.longitude),
    infoWindow:
    InfoWindow(title: stepIndex.toString(), snippet: explanation));


    InfoWindow accepts a string for title and snippet properties so I don't think we can change the text style.



    edit :
    as you think you can try to change whole app text font using custom fonts






    share|improve this answer





























      1














      I dont have that version but you can give a shot with DefaultTextStyle widget wrap your InfoWindowText widget with DefaultTextStyle



      Edit 2 =>
      or you can try to wrap the related class/page/scaffold which contains your map with DefaultTextStyple:



      DefaultTextStyle(style: TextStyle(color: Colors.blue),
      child: Column(children: <Widget>[
      Text('default style 1'),
      Text('default style 2')
      ],
      ));


      on the other hand,



      I would recommend to upgrade the latest version of the google_maps_flutter plugin which is ^0.4.0 right now, but you need to Migrate to AndroidX because of this breaking change



      enter image description here



      lastly in the last version of this plugin, you have a Marker and infoWindow property



       Marker(
      markerId: MarkerId(stepIndex.toString()),
      position: LatLng(latLng.latitude, latLng.longitude),
      infoWindow:
      InfoWindow(title: stepIndex.toString(), snippet: explanation));


      InfoWindow accepts a string for title and snippet properties so I don't think we can change the text style.



      edit :
      as you think you can try to change whole app text font using custom fonts






      share|improve this answer



























        1












        1








        1







        I dont have that version but you can give a shot with DefaultTextStyle widget wrap your InfoWindowText widget with DefaultTextStyle



        Edit 2 =>
        or you can try to wrap the related class/page/scaffold which contains your map with DefaultTextStyple:



        DefaultTextStyle(style: TextStyle(color: Colors.blue),
        child: Column(children: <Widget>[
        Text('default style 1'),
        Text('default style 2')
        ],
        ));


        on the other hand,



        I would recommend to upgrade the latest version of the google_maps_flutter plugin which is ^0.4.0 right now, but you need to Migrate to AndroidX because of this breaking change



        enter image description here



        lastly in the last version of this plugin, you have a Marker and infoWindow property



         Marker(
        markerId: MarkerId(stepIndex.toString()),
        position: LatLng(latLng.latitude, latLng.longitude),
        infoWindow:
        InfoWindow(title: stepIndex.toString(), snippet: explanation));


        InfoWindow accepts a string for title and snippet properties so I don't think we can change the text style.



        edit :
        as you think you can try to change whole app text font using custom fonts






        share|improve this answer















        I dont have that version but you can give a shot with DefaultTextStyle widget wrap your InfoWindowText widget with DefaultTextStyle



        Edit 2 =>
        or you can try to wrap the related class/page/scaffold which contains your map with DefaultTextStyple:



        DefaultTextStyle(style: TextStyle(color: Colors.blue),
        child: Column(children: <Widget>[
        Text('default style 1'),
        Text('default style 2')
        ],
        ));


        on the other hand,



        I would recommend to upgrade the latest version of the google_maps_flutter plugin which is ^0.4.0 right now, but you need to Migrate to AndroidX because of this breaking change



        enter image description here



        lastly in the last version of this plugin, you have a Marker and infoWindow property



         Marker(
        markerId: MarkerId(stepIndex.toString()),
        position: LatLng(latLng.latitude, latLng.longitude),
        infoWindow:
        InfoWindow(title: stepIndex.toString(), snippet: explanation));


        InfoWindow accepts a string for title and snippet properties so I don't think we can change the text style.



        edit :
        as you think you can try to change whole app text font using custom fonts







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Mar 24 at 17:16

























        answered Mar 24 at 17:08









        cipli onatcipli onat

        566313




        566313





























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55326024%2fhow-to-use-custom-fonts-in-google-maps-markers-infowindowtext%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

            Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

            Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript