org.gwtopenmaps.openlayers.client.MarkerImpl Maven / Gradle / Ivy
package org.gwtopenmaps.openlayers.client;
import org.gwtopenmaps.openlayers.client.util.JSObject;
/**
*
* @author Erdem Gunay
* @author Michel Vitor - Intec
*/
class MarkerImpl {
public static native JSObject create(JSObject lonlat)/*-{
return new $wnd.OpenLayers.Marker(lonlat);
}-*/;
public static native void setIcon(JSObject self,JSObject icon)/*-{
self.icon = icon;
self.events= new $wnd.OpenLayers.Events(self,self.icon.imageDiv,null);
}-*/;
public static native void setLonLat(JSObject self,JSObject lonlat)/*-{
self.lonlat = lonlat;
}-*/;
public static native JSObject create(JSObject lonlat, JSObject icon)/*-{
return new $wnd.OpenLayers.Marker(lonlat, icon);
}-*/;
public static native JSObject getLonLat(JSObject self)/*-{
return self.lonlat;
}-*/;
public static native void setImageUrl(JSObject self, String imageUrl)/*-{
self.icon.url = imageUrl;
}-*/;
public static native JSObject getIcon(JSObject self)/*-{
return self.icon;
}-*/;
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy