add getScaleArray() method test two dimension scale icons test two dimension scale text add example of icon and label scaling use smaller icon and larger interval test two dimensional scale icons test two dimensional scale icons
17 lines
739 B
HTML
17 lines
739 B
HTML
---
|
|
layout: example.html
|
|
title: Icon Scale
|
|
shortdesc: Example of scaling icons and labels.
|
|
docs: >
|
|
Icons and labels can be scaled in both dimensions if required. A negative value will flip the image
|
|
or text around its anchor point (reversed text is <b>not</b> suitable for line placement). A newline
|
|
character inserted in label text is interpreted in a <b>vector layer</b>, but will not be shown in
|
|
a <b>vector context</b>.
|
|
tags: "vector, style, icon, label, scale"
|
|
resources:
|
|
- https://code.jquery.com/jquery-2.2.3.min.js
|
|
- https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css
|
|
- https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js
|
|
---
|
|
<div id="map" class="map"><div id="popup"></div></div>
|