laptop and a wrench

Erro

CSS style in JavaScript API 2.7 has some invalid settings.

Última Publicação: August 25, 2014 ArcGIS API for JavaScript
Número de ID do Erro NIM079494
EnviadoMarch 29, 2012
Última ModificaçãoJune 5, 2024
Aplica-se àArcGIS API for JavaScript
Versão encontrada2.7
StatusNon-Reproducible

Informações Adicionais

No Public Explanation

Solução Provisória

Since the default position of scale bar is absolute, it is independent from the position of a map. However, it is possible to customize the location of a scale bar. After customization, it can be placed at anywhere in a webpage. The following workaround is adjusted from a sample "Map with external scalebar" (<a href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples_start.htm#jssamples/widget_scalebarExt.html" target="_blank">http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples_start.htm#jssamples/widget_scalebarExt.html</a>)1. Move the scalebar div up so it is located within the map div <div id="map" style="position: relative; width: 900px; height: 500px; border: 1px solid #000;"> <div id="scalebar" style="position:absolute;left:100px;top:530px;"> </div> </div> 2. Make changes on the style of the scalebar div. Use "relative" position. Change the attached position. <div id="map" style="position: relative; width: 900px; height: 500px; border: 1px solid #000;"> <div id="scalebar" style="position:relative;left:20px;top:460px;"> </div> </div> 3. Now the scale bar is anchored at a specific position with the map.

Etapas para Reproduzir

ID do Erro: NIM079494

Software:

  • ArcGIS API for JavaScript

Seja notificado quando o status de um erro mudar

Baixe o Aplicativo de Suporte da Esri

Descubra mais sobre este tema

Obtenha ajuda de especialistas do ArcGIS

Entre em contato com Suporte Técnico

Baixe o Aplicativo de Suporte da Esri

Ir para as opções de download