-
Notifications
You must be signed in to change notification settings - Fork 118
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
stylefunction.js use ol.js #78
Comments
|
Most users will use the default ol.geom.LineString.prototype.getFlatMidpoint = function() {
return this.getCoordinateAt(0.5);
}; You can do this in your application before using any of ol-mapbox-style's functions. |
OK.Thank you. |
I saw some code in
![image](https://user-images.githubusercontent.com/29563916/38725260-569ddc40-3f39-11e8-8f93-f13b22247c8a.png)
![image](https://user-images.githubusercontent.com/29563916/38727354-5bdc8552-3f3f-11e8-8ecf-da07691ec04c.png)
stylefunction.js
which must useol-debug.js
becausegetFlatMidpoint
is not an api function.In
ol/geom/LineString
If possible i want to use
getCoordinateAt(0,5)
instead ofgetFlatMidpoint()
becausegetCoordinateAt
is an api function.The text was updated successfully, but these errors were encountered: