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;
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
|
show 3 more comments
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
Which version are you using forgoogle_maps_flutter
plugin ? is it the latest one ?^0.4.0
– cipli onat
Mar 24 at 16:45
I usedgoogle_maps_flutter: ^0.0.3
– Alex
Mar 24 at 16:47
the plugin change a lot, there is no anyMarkerOptions
, 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 theInfoWindowText
too.
– cipli onat
Mar 24 at 17:10
|
show 3 more comments
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
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
google-maps flutter
edited Mar 24 at 21:45
mirkancal
6321519
6321519
asked Mar 24 at 16:35
AlexAlex
539
539
Which version are you using forgoogle_maps_flutter
plugin ? is it the latest one ?^0.4.0
– cipli onat
Mar 24 at 16:45
I usedgoogle_maps_flutter: ^0.0.3
– Alex
Mar 24 at 16:47
the plugin change a lot, there is no anyMarkerOptions
, 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 theInfoWindowText
too.
– cipli onat
Mar 24 at 17:10
|
show 3 more comments
Which version are you using forgoogle_maps_flutter
plugin ? is it the latest one ?^0.4.0
– cipli onat
Mar 24 at 16:45
I usedgoogle_maps_flutter: ^0.0.3
– Alex
Mar 24 at 16:47
the plugin change a lot, there is no anyMarkerOptions
, 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 theInfoWindowText
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
|
show 3 more comments
1 Answer
1
active
oldest
votes
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
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
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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
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
add a comment |
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
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
add a comment |
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
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
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
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
edited Mar 24 at 17:16
answered Mar 24 at 17:08
cipli onatcipli onat
566313
566313
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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