Select to view content in your preferred language

Remove "Zoom to" link

1381
5
Jump to solution
07-26-2013 06:25 AM
RayJulich
Emerging Contributor
Ever since I upgrade the code on my web page to use API 3.5, I have a "Zoom to" link at the bottom of all of the infoWindows on my map. [ATTACH=CONFIG]26245[/ATTACH] Can I remove this "Zoom to" link?
0 Kudos
1 Solution

Accepted Solutions
SteveCole
Honored Contributor
Try adding the period before "action":

<style type="text/css"> .action.zoomTo{  display: none; } </style>

View solution in original post

0 Kudos
5 Replies
JasonZou
Frequent Contributor
Add the below css rule to your css file.
.action.zoomTo {
    display: none;
}
0 Kudos
RayJulich
Emerging Contributor
Jason,

I added the following to my page:

<style type="text/css">
action.zoomTo{
 display: none;
}
</style>


but I still have the Zoom to link in my infoWindows. Do I need something else in front of the word action? Like dijit.action.zoomTo. I know that's not correct, but it's just an example.

Ray
0 Kudos
SteveCole
Honored Contributor
Try adding the period before "action":

<style type="text/css"> .action.zoomTo{  display: none; } </style>
0 Kudos
RayJulich
Emerging Contributor
Yes, thank you. That did it. The "Zoom to" link doesn't show up anymore.
0 Kudos
JohnGravois
Deactivated User
perhaps it would be appropriate to mark one of these responses as the "answer"?
0 Kudos