This is an old post from my blog
To rotate your text labels do the following (using OpenLayers 2.11):
- Create a CustomSVG.js or modify the existing SVG.js and add the following lines to the Method drawText
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Map Panel</title> | |
<!-- ExtJS --> | |
<script type="text/javascript" src="http://cdn.sencha.com/ext/gpl/4.2.1/examples/shared/include-ext.js"></script> | |
<script type="text/javascript" src="http://cdn.sencha.com/ext/gpl/4.2.1/examples/shared/options-toolbar.js"></script> | |
<link rel="stylesheet" type="text/css" href="http://cdn.sencha.com/ext/gpl/4.2.1/examples/shared/example.css" /> | |
<!-- OpenLayers 3 stylesheet --> | |
<link rel="stylesheet" href="http://openlayers.org/en/v3.17.1/css/ol.css" type="text/css"> |
Unexpected end of input | |
{"_updated":1415694474515,"0":{"name":"0","dist-tags":{"latest":"0.0.0"},"maintainers":[{"name":"zolmeister","email":"zolikahan@gmail.com"}],"readmeFilename":"","license":"BSD-2-Clause","users":{"zolmeister":true},"time":{"modified":"2014-06-17T06:38:43.495Z"},"versions":{"0.0.0":"latest"}},"001":{"name":"001","description":"This is my first custom module","dist-tags":{"latest":"0.0.1"},"maintainers":[{"name":"skt","email":"shreekanttotala@gmail.com"}],"author":{"name":"Kanha"},"readmeFilename":"","time":{"modified":"2014-08-08T06:02:45.676Z"},"versions":{"0.0.1":"latest"}},"001_skt":{"name":"001_skt","description":"This is my first custom module","dist-tags":{"latest":"0.0.1"},"maintainers":[{"name":"skt","email":"shreekanttotala@gmail.com"}],"author":{"name":"Kanha"},"readmeFilename":"","time":{"modified":"2014-08-08T06:09:50.027Z"},"versions":{"0.0.1":"latest"}},"001_test":{"name":"001_test","description":"This is my first custom module","dist-tags":{"latest":"0.0.1"},"maintainers": |